gcpy.examples.grids.display_gcclassic_grid_info
Prints information about a GEOS-Chem Classic horizontal grid.
Examples
Run the following commands:
$ conda activate gcpy_env
(gcpy_env) $ python -m gcpy.examples.grids/display_gcclassic_grid_info
And select your desired grid from the menu.
Functions
|
Creates a grid object and prints its metadata. |
Displays a menu of grids to choose from. |
|
|
Returns metadata about a given grid. |
|
Main program |
|
Prints a list of numbers 8 columns wide with 5 decimal places. |
- gcpy.examples.grids.display_gcclassic_grid_info.print_vals(values)[source]
Prints a list of numbers 8 columns wide with 5 decimal places.
- Parameters:
values (
list-like) – Values to be displayed
- gcpy.examples.grids.display_gcclassic_grid_info.create_grid_and_print_info(grid_params)[source]
Creates a grid object and prints its metadata.
- Parameters:
grid_params (
tuple) – Resolution, lon range, lat range
- gcpy.examples.grids.display_gcclassic_grid_info.get_grid_parameters(selection)[source]
Returns metadata about a given grid.
Displays a menu of grids to choose from.
- Returns:
selection – Number of the grid selected by the user
- Return type: