Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cosipy/spacecraftfile/spacecraft_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ def _open_ori(cls, file, tstart:Time = None, tstop:Time = None) -> "SpacecraftHi
df = pd.read_csv(file, sep=r"\s+", skiprows=1,
usecols=tuple(range(1,10)),
header = None, comment = '#')
vals = df.values[:-1].transpose()
#if there is EN at the end of the ori file, then the last line will
#contain NaN values.
vals = df.dropna().values.transpose()

# assign units to read values
time_stamps = Time(vals[0], format="unix", copy=False)
Expand Down
Loading