Opened 8 years ago

Closed 8 years ago

#68 closed enhancement (fixed)

Add area attribute for domain

Reported by: ymipsl Owned by: rlacroix
Priority: major Component: XIOS
Version: 1.0 Keywords:


Create a new optional "area" attribute for domain. It must be a double array with the dimension of the numbers of cell of the domain (ie same dimensionnality of the domain mask attribute).

If present, it must be writen in the netcdf file according to the CF convention :

A new variable must be created related to the name of the domain similarely to the lon or lat coordinate (ie a simplified name when a single horizontal domain is included) array that contains the area of the cell :

[ float areas(cell) or float areas(x,y) or float areas_grid_T(x,y) ]
cell_area:long_name = "area of grid cell" ;
cell_area:units = "m2"

For all field living on a grid composed of the domain the metadata attribute "cell_measures" must be added in the netcdf file with the area specification :
ex :
float sosstsst(time_counter, y, x) ;

sosstsst:long_name = "sea surface temperature" ;
sosstsst:units = "degC" ;
sosstsst:online_operation = "average" ;
sosstsst:interval_operation = "5760s" ;
sosstsst:interval_write = "1mo" ;
sosstsst:_FillValue = 1.e+20f ;
sosstsst:missing_value = 1.e+20f ;
sosstsst:cell_measures = "area: areas_grid_T"

Change History (2)

comment:1 Changed 8 years ago by ymipsl

  • Owner changed from ymipsl to rlacroix
  • Type changed from defect to enhancement

comment:2 Changed 8 years ago by rlacroix

  • Resolution set to fixed
  • Status changed from new to closed

Implemented in r611.

Note: See TracTickets for help on using tickets.