1.6.2.3. showgrid.py – Show and display a netcdf grid

Usage:
showgrid.py [options] ncfile
Description:

Show grid (rectangular or curvilinear) info of a netcdf file.

Options:
-h, --help

show this help message and exit

-v VNAME, --var=VNAME

Name of the variable from which to get grid

-p, --plot

Plot the grid on a map [default: False]

-o OUT, --out=OUT

Name of an output file where to store the plot

-z ZOOM, --zoom=ZOOM

Plot zoom [default: 0.8]

-f FIGSIZE, --figsize=FIGSIZE

Size of figure in inches, like “5,6” or simply “5”

-s SHORELINE, --shoreline=SHORELINE

GSHHS shoreline as one of ‘c’, ‘l’, ‘i’, ‘h’, ‘f’ [default: auto]

--xmin=XMIN

Min longitude of the map

--xmax=XMAX

Max longitude of the map

--ymin=YMIN

Min latitude of the map

--ymax=YMAX

Max latitude of the map

--proj=PROJ

Map projection [default: merc]

Example:
$> showgrid.py --plot --figsize=12 -s f --xmin=-5 ../data/mars3d.xy.nc
Dimensions           : nx=227 ny=261
Axes                 : lon="longitude" lat="latitude"
Zonal extent         : -6.56181 -> -4.10829  [06°33'43''W -> 04°06'30''W]
Meridional extent    : 47.4916 -> 49.3615  [47°29'30''N -> 49°21'41''N]
Zonal resolution     : 0.0108562° / 0.801031km
Meridional resolution: 0.0071907° / 0.799714km
See also:

showres.py – Display the resolution of a netcdf grid, resol(), get_xy(), map2(), add_grid().