Skip to content

Commit ef2abce

Browse files
committed
use nanoseconds to calculate dataframe times
1 parent e437da7 commit ef2abce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sliderule/icesat2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def __todataframe(columns, delta_time_key="delta_time", lon_key="lon", lat_key="
291291
return __emptyframe()
292292

293293
# Generate Time Column
294-
delta_time = (columns[delta_time_key]*1000000.0).astype('timedelta64[us]')
294+
delta_time = (columns[delta_time_key]*1e9).astype('timedelta64[ns]')
295295
atlas_sdp_epoch = numpy.datetime64(ATLAS_SDP_EPOCH)
296296
columns['time'] = geopandas.pd.to_datetime(atlas_sdp_epoch + delta_time)
297297

0 commit comments

Comments
 (0)