diff --git a/aprofiles/cli/utils/json_map.py b/aprofiles/cli/utils/json_map.py index e0613b5..8e0a1a1 100644 --- a/aprofiles/cli/utils/json_map.py +++ b/aprofiles/cli/utils/json_map.py @@ -23,7 +23,7 @@ def add_to_map(fn, base_dir, yyyy, mm, dd, mapname): # calculate the max extinction and determine the scene for each hour of the day # need to convert time (from int to datetime) in order to use the resample method from xarray - ds = ds.assign_coords(time = ds.time.data.astype("datetime64[ms]")) + ds = ds.assign_coords(time = ds.time.data.astype("datetime64[ns]")) # in order to prevent some monotony issue, sort by time ds = ds.sortby('time')