1.5.1.1.2.1.1. polar2grid.core.containers module¶
Classes for metadata operations in polar2grid.
- class polar2grid.core.containers.GridDefinition(*args, **kwargs)[source]¶
Bases:
dict
Projected grid defined by a PROJ.4 projection string and other grid parameters.
- Required Information:
grid_name: Identifying name for the grid
proj4_definition (string): PROJ.4 projection definition
height: Height of the grid in number of pixels
width: Width of the grid in number of pixels
cell_height: Grid cell height in the projection domain (usually in meters or degrees)
cell_width: Grid cell width in the projection domain (usually in meters or degrees)
origin_x: X-coordinate of the upper-left corner of the grid in the projection domain
origin_y: Y-coordinate of the upper-left corner of the grid in the projection domain
- property gdal_geotransform¶
- get_geolocation_arrays()[source]¶
Calculate longitude and latitude arrays for the grid.
- Returns:
(longitude array, latitude array)
- property is_static¶
- property ll_extent¶
- property ll_extent_lonlat¶
- property lonlat_center¶
- property lonlat_lowerleft¶
- property lonlat_lowerright¶
- property lonlat_upperleft¶
- property lonlat_upperright¶
- property proj¶
- property proj4_dict¶
- required_kwargs = ('grid_name', 'proj4_definition', 'height', 'width', 'cell_height', 'cell_width', 'origin_x', 'origin_y')¶
- property ur_extent¶
- property ur_extent_lonlat¶
- property xy_lowerleft¶
- property xy_lowerright¶
- property xy_upperright¶