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, reference_lat=None, force_projection=None, maximize_CI_in_E=False, interactive=False)[source]¶ Build an ad hoc geometry from the input given parameters. Beware only secant projection are available here.
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)
- reference_lat – (disadvised use) reference latitude of the projection; beware of consistency with force_projection
- 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={'lon/lat': '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. Beware only secant projection are available here.
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