Skip to content

Commit

Permalink
Fix units for CF compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Aug 5, 2024
1 parent 6464610 commit 4eb269d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compass/ocean/tests/global_ocean/init/remap_ice_shelf_melt.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ def remap_paolo(in_filename, base_mesh_filename, culled_mesh_filename,

field = 'dataLandIceFreshwaterFlux'
ds_remap[field] = area_ratio * sphere_fwf
ds_remap[field].attrs['units'] = 'kg m^-2 s^-1'
ds_remap[field].attrs['units'] = 'kg m-2 s-1'
field = 'dataLandIceHeatFlux'
ds_remap[field] = area_ratio * ds_remap[field]
ds_remap[field].attrs['units'] = 'W m^-2'
ds_remap[field].attrs['units'] = 'W m-2'

mpas_flux = (ds_remap.dataLandIceFreshwaterFlux *
mpas_area_cell).sum().values
Expand Down

0 comments on commit 4eb269d

Please sign in to comment.