Skip to content

Commit

Permalink
change the saving format
Browse files Browse the repository at this point in the history
  • Loading branch information
xhuang-jpl committed Jan 30, 2024
1 parent 82393e1 commit 2b7837c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyaps3/ecmwfml2pl.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,6 @@ def ECMWFml2pl(input_fname, output_fname, plevels):
all_interpolated_var_fields = all_interpolated_var_fields.rename({'gph':'z'})
all_interpolated_var_fields['pressure'].attrs = {'units' : 'Pa','long_name':'pressure',
'standard_name':'air_pressure','positive':'down'}
all_interpolated_var_fields.to_netcdf(output_fname,format='NETCDF', engine='netcdf4',
all_interpolated_var_fields.to_netcdf(output_fname,format='NETCDF4', engine='netcdf4',
encoding={'z': {'zlib': True, 'complevel': 4}})
all_interpolated_var_fields.close()

0 comments on commit 2b7837c

Please sign in to comment.