Default and specialized CF specs#
This appendix refers to the searching and formatting specifications
for data variables and coordinates, and related tools,
available in the xoa.cf module.
Their usage is introduced in the Naming conventions with xoa.cf section.
Specialized configurations#
A few configurations are made available internally for decoding specialized datasets. You can use them at your own risk.
For instance, load the croco specs with directly:
import xoa.cf
xoa.cf.set_cf_specs("croco")
Register it with:
xoa.cf.register_cf_specs("croco")
You can access the associated .cfg file with xoa.cf_congs.get_cf_conf_file().
The default configuration#
Note
You can define you own specifications for each of your datasets. Have a look to the Naming conventions with xoa.cf section and to the Examples.
As a .cfg file#
Data variables (data_vars)#
Potential temperature |
|
Conservative temperature |
|
Sea water in situ temperature |
|
Absolute salinity |
|
Preformed salinity |
|
Practical salinity |
|
Salinity |
|
Sea surface temperature |
|
Sea surface salinity |
|
Sea water density minus 1000 |
|
Sea water neutral density |
|
Sea water potential density minus 1000 |
|
Sea water potential density |
|
Sea water potential density |
|
Sea water potential density with ref at 1000 dbar |
|
Sea water potential density with ref at 2000 dbar |
|
Sea water potential density with ref at 3000 dbar |
|
Sea water potential density with ref at 4000 dbar |
|
Sea water density |
|
Sea water pressure |
|
Sea surface density |
|
Sea water electrial conductivity |
|
Speed of sound in water |
|
Mixed layer depth |
|
Potential energy deficit |
|
Ocean heat content |
|
Ocean salt content |
|
Specific heat capacity |
|
Sea surface height |
|
Sea water velocity along X |
|
Sea water velocity along Y |
|
Sea water velocity along Z at W location |
|
Sea water barotropic velocity along X |
|
Sea water barotropic velocity along Y |
|
Sea water baroclinic velocity along X |
|
Sea water baroclinic velocity along Y |
|
Sea surface velocity along X |
|
Sea surface velocity along Y |
|
Sea water barotropic geostrophic velocity along X |
|
Sea water barotropic geostrophic velocity along Y |
|
Sea water speed |
|
Sea water speed |
|
Direction of sea water velocity |
|
Kinetic energy |
|
Eddy kinetic energy |
|
Turbulent kinetic energy |
|
Mke |
|
Vertical diffusivity |
|
Vertical heat diffusivity |
|
Brunt Vaisala frequency |
|
Bathymetry |
|
Mean Sea Level |
|
Mesh size along x |
|
Mesh size along y |
|
Inverse of mesh size along x |
|
Inverse of mesh size along y |
|
Ocean layer thickness |
|
Mesh size along x |
|
Mesh step along y |
|
Angle between x-axis and east |
|
Land binary mask |
|
Volume of the cell |
|
Volume of the sea water |
|
Coriolis parameter |
|
Meridional derivative of coriolis parameter |
|
Orography for SLEVE vertical coordinates |
|
Smoothed orography for SLEVE vertical coordinates |
|
Net radiation |
|
Net longwave radiation (positive when directed downward) |
|
Net shortwave radiation (positive when directed downward) |
|
Ground heat flux (SW + LW - LE - H) |
|
Longwave radiation (positive when directed upward) |
|
Shortwave radiation (positive when directed upward) |
|
Longwave radiation (positive when directed downward) |
|
Shortwave radiation (positive when directed downward) |
|
Latent heat flux (positive when directed downward) |
|
Latent heat flux (positive when directed upward) |
|
Sensible heat flux (positive when directed downward) |
|
Sensible heat flux (positive when directed upward) |
|
evaporation (positive when directed downward) |
|
Precipitation [Downward (positive when it is raining)] |
|
T2m |
|
2 m specific humidity |
|
2 m specific humidity |
|
Air roughness length |
|
Averaged drag momentum coefficient |
|
Averaged drag thermal coefficient |
|
Averaged latent heat flux coefficient |
|
Wind speed |
|
Wind direction |
|
Wind from direction |
|
Wind to direction |
|
Zonal wind speed (westerly) |
|
Meridional wind speed (northerly) |
|
Upward wind speed |
|
Temperature |
|
Absolute pressure |
|
Surface air pressure |
|
Air pressure |
|
Air pressure at top of model |
|
Turbulent Kinetic Energy |
|
10-m zonal wind speed (westerly) |
|
10-m meridional wind speed (northerly) |
|
10-m meridional wind speed (northerly) |
|
10-m wind speed along X |
|
10-m wind speed along Y |
|
Surface eastward wind stress |
|
Surface northward wind stress |
|
Surface wind stress along X |
|
Surface wind stress along Y |
|
Height of the top level |
|
Depth of planetary boundary layer |
|
Significant wave height |
|
Eastward mean square slope |
|
Northward mean square slope |
|
mean square slope |
|
Mean wave length |
|
Mean wave period |
|
Peak direction |
|
Peak period |
|
Peak frequency |
|
Mean wave direction |
|
Charnock coefficient for surface roughness length for momentum in air |
|
Near bottom rms velocities |
|
Rms of near bottom zonal velocities |
|
Rms of near bottom meridional velocities |
|
Radiation pressure (Bernoulli head) |
|
Wave mixing kinetic turbulent energy due to surface breaking wave |
|
Zonal component of the surface wave-ocean momentum flux |
|
Meridional component of the surface wave-ocean momentum flux |
|
Eastward wave supported wind stress |
|
Northward wave supported wind stress |
|
Wave dissipation in bottom boundary layer |
|
Zonal component of the bottom wave-ocean momentum flux |
|
Meridional component of the bottom wave-ocean momentum flux |
|
Eastward surface stokes drift |
|
Northward surface stokes drift |
|
Eastward stokes transport |
|
Northward stokes transport |
|
Status map |
|
Wlv |
|
Sigma level |
|
S-coordinate stretching curves |
|
Sigma-coordinate critical depth |
|
Ocean s coordinate surface control |
|
Ocean s coordinate bottom control |
|
Depth |
|
Altitude |
|
Station number |
|
Calendar day |
|
Echo intensity |
Coordinates (coords)#
Dimensions (dims)#
|
|
|
|
|
|
|
|
|
|
Other sections#
The configuration syntax specifications#
The syntax of all configurations are validated with these specifications.
See configobj.
Details#
- exclude_names#
- default:
Nonetype:stringsExclude these names from all parsings
- [accessors]#
Accessor configuration
- [vertical]#
Vertical coordinate system
- positive#
- default:
Nonepossible choices:up, down, None
- type#
- default:
Nonepossible choices:sigma, z, layer, dz, auto, NoneLayer=dz, auto=none
- [data_vars]#
Data variables
- [[__many__]]#
Section names are pivot names
- name#
- default:
Nonetype:stringEncoding name
- alt_names#
- default:type:
stringsAlternative names for decoding
- cmap#
- default:
Nonetype:stringColor map name
- inherit#
- default:
Nonetype:string
- squeeze#
- default:
Nonetype:strings
- search_order#
- default:
sntype:string
- loc#
- default:
Nonetype:string
- add_loc#
- default:
Falsetype:boolean
- exclude#
- default:
Falsetype:boolean
File#
exclude_names=strings(default=None) # Exclude these names from all parsings
[register] # Registration
name=string(default="")
[[attrs]] # Search within attributes for matching purpose
__many__=strings(default=None)
[sglocator] # Staggered grid localisation
name_format=boolstr(default=False)
valid_locations=strings(default=None)
[accessors] # Accessor configuration
[[properties]] # Shortcut accessor properties
coords=strings(default=list(lon,lat,depth,sig,level,altitude,time,forecast)) # coord names that are added as shortcut properties
data_vars=strings(default=list(temp,sal,u,v,bathy,ssh)) # data_var names that are added as shortcut properties
[vertical] # Vertical coordinate system
positive=option('up','down',None,default=None)
type=option('sigma','z','layer','dz','auto',None,default=None) # layer=dz, auto=None
[data_vars] # Data variables
[[__many__]] # Section names are pivot names
name=string(default=None) # Encoding name
alt_names=strings(default=list()) # Alternative names for decoding
cmap=string(default=None) # Color map name
inherit=string(default=None)
squeeze=strings(default=None)
search_order=string(default=sn)
loc=string(default=None)
add_loc=boolean(default=False)
exclude=boolean(default=False)
[[[add_coords_loc]]]
__many__=boolstr(default=True)
# [[[add_loc_sec]]]
# data_var=boolean(default=False)
#
# [[[[coords]]]]
# __many__=boolstr(default=None)
[[[attrs]]]
long_name=strings(default=list())
standard_name=strings(default=list())
units=strings(default=list())
[[[select]]]
__many__=eval(default=None)
[coords] # Coordinates
[[__many__]]
name=string(default=None)
alt_names=strings(default=list())
inherit=string(default=None)
search_order=string(default=ns)
loc=string(default=None)
add_loc=boolean(default=None)
exclude=boolean(default=False)
[[[add_coords_loc]]]
__many__=boolstr(default=True)
# [[[add_loc_sec]]]
# coord=boolean(default=None)
#
# [[[[coords]]]]
# __many__=boolean(default=None)
[[[attrs]]]
long_name=strings(default=list())
standard_name=strings(default=list())
units=strings(default=list())
axis=string(default=None)
[dims] # Dimensions
x=strings(default=list())
y=strings(default=list())
z=strings(default=list())
t=strings(default=list())
f=strings(default=list())