plot_AIS_grid_4maps.py

  • Creates 4 GMT-like plots for the Antarctic Ice Sheet on a polar stereographic south (3031) projection

Source code

Calling Sequence

usage: plot_AIS_grid_4maps.py [-h] [--directory DIRECTORY]
                              [--format {ascii,netCDF4,HDF5} [{ascii,netCDF4,HDF5} ...]]
                              [--variables VARIABLES [VARIABLES ...]]
                              [--mask MASK] [--spacing dlon [dlat ...]]
                              [--interval {1,2}]
                              [--interpolation {nearest,bilinear,cubic}]
                              [--scale-factor SCALE_FACTOR]
                              [--plot-range MIN MAX STEP]
                              [--boundary BOUNDARY [BOUNDARY ...]]
                              [--colormap COLORMAP] [--cpt-file CPT_FILE]
                              [--alpha ALPHA] [--plot-contours]
                              [--contour-range MIN MAX STEP] [--mean-contour]
                              [--plot-title PLOT_TITLE PLOT_TITLE PLOT_TITLE PLOT_TITLE]
                              [--plot-label PLOT_LABEL PLOT_LABEL PLOT_LABEL PLOT_LABEL]
                              [--cbextend {neither,both,min,max}]
                              [--cbtitle CBTITLE] [--cbunits CBUNITS]
                              [--cbformat CBFORMAT] [--basemap]
                              [--basin-type BASIN_TYPE] [--draw-grid-lines]
                              [--grid-lines GRID_LINES [GRID_LINES ...]]
                              [--draw-scale] [--figure-file FIGURE_FILE]
                              [--figure-format {pdf,png,jpg,svg}]
                              [--figure-dpi FIGURE_DPI] [--verbose]
                              [--mode MODE]
                              infile infile infile infile

Positional Arguments

infile

Input grid files

Named Arguments

--directory, -D

Working data directory

--format, -F

Possible choices: ascii, netCDF4, HDF5

Input data format

--variables, -v

Variable names of data in input file

--mask

Land-sea mask

--spacing

Spatial resolution of input data

--interval

Possible choices: 1, 2

Input grid interval (1: global, 2: centered global)

--interpolation, -I

Possible choices: nearest, bilinear, cubic

Interpolation method

--scale-factor, -s

Multiplicative scale factor for converting to plot units

--plot-range, -R

Plot range and step size for normalization

--boundary, -B

Plot boundary for normalization

--colormap, -m

Possible choices: Accent, Blues, BrBG, BuGn, BuPu, CMRmap, Dark2, GnBu, Greens, Greys, OrRd, Oranges, PRGn, Paired, Pastel1, Pastel2, PiYG, PuBu, PuBuGn, PuOr, PuRd, Purples, RdBu, RdGy, RdPu, RdYlBu, RdYlGn, Reds, Set1, Set2, Set3, Spectral, Wistia, YlGn, YlGnBu, YlOrBr, YlOrRd, afmhot, autumn, berlin, binary, bone, brg, bwr, cividis, cool, coolwarm, copper, cubehelix, flag, gist_earth, gist_gray, gist_heat, gist_ncar, gist_rainbow, gist_stern, gist_yarg, gnuplot, gnuplot2, gray, hot, hsv, inferno, jet, magma, managua, nipy_spectral, ocean, pink, plasma, prism, rainbow, seismic, spring, summer, tab10, tab20, tab20b, tab20c, terrain, turbo, twilight, twilight_shifted, vanimo, viridis, winter

Named Matplotlib colormap

--cpt-file, -c

Input Color Palette Table (.cpt) file

--alpha, -a

Named Matplotlib colormap

--plot-contours

Plot contours

--contour-range

Contour range and step size

--mean-contour

Plot contours for mean of dataset

--plot-title

Plot title

--plot-label

Plot label

--cbextend

Possible choices: neither, both, min, max

Add extension triangles to colorbar

--cbtitle

Title label for colorbar

--cbunits

Units label for colorbar

--cbformat

Tick format for colorbar

--basemap

Add background basemap image

--basin-type

Add delineations for glacier drainage basins

--draw-grid-lines

Add map grid lines

--grid-lines

Input grid spacing for meridians and parallels

--draw-scale

Add map scale bar

--figure-file, -O

Output figure file

--figure-format, -f

Possible choices: pdf, png, jpg, svg

Output figure format

--figure-dpi, -d

Output figure resolution in dots per inch (dpi)

--verbose, -V

Verbose output of run

--mode, -M

Permissions mode of output files