epygram.geometries.domain_making.build — Build geometries

Contains functions for building a LAM domain.


epygram.geometries.domain_making.build.build_geometry(center_lon, center_lat, Xpoints_CI, Ypoints_CI, resolution, Iwidth=None, tilting=0.0, force_projection=None, maximize_CI_in_E=False, interactive=False)[source]

Build an ad hoc geometry from the input given parameters.

Parameters:
  • center_lon – longitude of the domain center
  • center_lat – latitude of the domain center
  • Xpoints_CI – number of gridpoints in C+I zone, zonal dimension X
  • Ypoints_CI – number of gridpoints in C+I zone, meridian dimension Y
  • resolution – resolution of the grid in m
  • Iwidth – width of the I-zone
  • tilting – optional inclination of the grid, in degrees (only for ‘polar_stereographic’ and ‘lambert’ projections)
  • force_projection – force projection among (‘polar_stereographic’, ‘lambert’, ‘mercator’)
  • maximize_CI_in_E – extend the C+I zone inside the C+I+E zone, in order to have a E-zone width of 11 points
  • interactive – interactive mode, to fine-tune the projection
epygram.geometries.domain_making.build.build_CIE_field(geometry)[source]

Build a field according to geometry, with constant values for each of the C,I,E zones.

epygram.geometries.domain_making.build.build_lonlat_geometry(ll_boundaries, resolution=None)[source]

Build a lonlat geometry given lon/lat boundaries and optionally resolution in degrees.

epygram.geometries.domain_making.build.build_lonlat_field(ll_boundaries, fid={u'lon/lat': u'template'}, resolution=None)[source]

Build a lonlat field empty except on the border, given lon/lat boundaries and optionally resolution in degrees.

epygram.geometries.domain_making.build.build_geometry_fromlonlat(lonmin, lonmax, latmin, latmax, resolution, Iwidth=None, force_projection=None, maximize_CI_in_E=False, interactive=False)[source]

Build an ad hoc geometry from the input given parameters.

Parameters:
  • lonmin – minimum longitude of the domain
  • lonmax – maximum longitude of the domain
  • latmin – minimum latitude of the domain
  • latmax – maximum latitude of the domain
  • resolution – resolution of the grid in m
  • Iwidth – width of the I-zone
  • force_projection – force projection among (‘polar_stereographic’, ‘lambert’, ‘mercator’)
  • maximize_CI_in_E – extend the C+I zone inside the C+I+E zone, in order to have a E-zone width of 11 points
  • interactive – interactive mode, to fine-tune the projection
epygram.geometries.domain_making.build.build_geom_from_e923nam(nam)[source]

Build geometry and spectral geometry objects, given e923-like namelist blocks.

epygram.geometries.domain_making.build.compute_lonlat_included(geometry)[source]

Computes a lon/lat domain included in the C zone of the model domain, with a 1 gridpoint margin.