1.5.1.1.6.1.1. polar2grid.grids.config_helper module

Helper script for creating valid grid configuration entries.

The user provides a center longitude and latitude, along with other grid parameters, and a configuration line is printed to stdout that can be added to a user’s own grid configuration file.

polar2grid.grids.config_helper._create_legacy_line(grid_name: str, crs: CRS, clon: float, clat: float, grid_width: int, grid_height: int, pixel_size_x: float, pixel_size_y: float) str[source]
polar2grid.grids.config_helper._create_yaml_entry(grid_name: str, crs: CRS, clon: float, clat: float, grid_width: int, grid_height: int, pixel_size_x: float, pixel_size_y: float)[source]
polar2grid.grids.config_helper.determine_projection(center_lon: float, center_lat: float, proj4_str: Optional[str] = None) CRS[source]

Get the ‘best’ projection to be used based on the center longitude and latitude provided.

polar2grid.grids.config_helper.get_parser()[source]
polar2grid.grids.config_helper.main(argv=None)[source]