Skip to content

Commit

Permalink
remove time conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustinMortier committed Sep 25, 2024
1 parent c14be71 commit bff79f8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions aprofiles/io/write_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ def write(profiles, base_dir, verbose):
verbose (bool): Verbose mode.
"""

def _fix_time_units(ds):
ds["time"].attrs['units'] = 'days since 1970-01-01T00:00:00'
return ds

def _classify_scene(ds):
lowest_clouds = profiles._get_lowest_clouds()
scene = []
Expand Down Expand Up @@ -127,9 +123,6 @@ def _classify_retrieval_scene(ds):
for nodim_var in nodim_variables:
ds_towrite.attrs[nodim_var] = ds_towrite[nodim_var].data
ds_towrite = ds_towrite.drop(nodim_var)

# converts time
ds_towrite = _fix_time_units(ds_towrite)

# add altitude direction
ds_towrite["altitude"] = ds_towrite["altitude"].assign_attrs({
Expand Down

0 comments on commit bff79f8

Please sign in to comment.