epygram.args_catalog — Catalog of command-line arguments

Contains a catalog of reusable command-line arguments for argparse, with a function add_arg_to_parser to import them to an argparse parser.

The arguments are classified by categories, each category being a dict.

Each argument is a list composed as follows: [‘name’, ‘alternate_name1’, ‘alternate_name2’, ..., dict(kw1, kw2, kw3, ...)] where the keywords ‘kwi’ are argparse.ArgumentParser.add_argument() optional arguments.


Functions

epygram.args_catalog.add_arg_to_parser(parser, arg, **flychanges)[source]

Wrapper to add one item arg of the following dictionaries to a parser.

flychanges enable to change argument options on the fly.


Catalogs

epygram.args_catalog.files_management = {u'replace_by_product': [u'-m', u'--multiply', {'default': False, 'dest': u'replace_op', 'const': u'multiply', 'help': u'replaces the fields by the product fields (filename * source).', 'action': u'store_const'}], u'source_file': [u'-s', u'--source', {'dest': u'refname', 'required': True, 'type': <type 'str'>, 'help': u'name of the 2nd file from which to extract the fields.'}], u'replace_by_reversediff': [u'-r', u'--reversediff', {'default': False, 'dest': u'replace_op', 'const': u'reversediff', 'help': u'replaces the fields by the reverse difference fields (source - filename).', 'action': u'store_const'}], u'replace_by_diff': [u'-d', u'--diff', {'default': False, 'dest': u'replace_op', 'const': u'diff', 'help': u'replaces the fields by the difference fields (filename - source).', 'action': u'store_const'}], u'in_place': [u'-i', u'--in_place', {'default': False, 'action': u'store_true', 'help': u'the operation on fields is done "in place" on the file, not on a new file.'}], u'several_files': [u'filenames', {'nargs': u'+', 'type': <type 'str'>, 'help': u'names of the files to be processed.'}], u'replace_by_addition': [u'-a', u'--add', {'default': False, 'dest': u'replace_op', 'const': u'add', 'help': u'replaces the fields by the addition fields (filename + source).', 'action': u'store_const'}], u'file_to_refer_in_diff': [u'-d', u'--diff', {'dest': u'refname', 'type': <type 'str'>, 'help': u'name of the 2nd (reference) file to be processed, to which comparison is done.'}], u'principal_file': [u'filename', {'type': <type 'str'>, 'help': u'name of the file to be processed.'}], u'file_to_refer_in_diffonly': [u'-D', u'--diffonly', {'dest': u'Drefname', 'type': <type 'str'>, 'help': u'same as -d/--diff, but only fields difference is processed.'}]}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
epygram.args_catalog.fields_management = {u'netCDF_compression': [u'--nc_comp', {'default': '4', 'type': <type 'int'>, 'help': u'compression level to compress fields in netCDF. Ranges from 0 to 9. 0 is no compression, 1 is low-but-fast compression, 9 is high-but-slow compression. Default to 4', 'choices': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]}], u'GRIB_sort': [u'-k', u'--sortbykey', {'default': False, 'dest': u'sortfields', 'help': u"GRIB only: sort fields with regards to the given fid key. Only for *mode* == 'one+list' or 'fid_list'."}], u'2fields_mode': [u'-y', u'--2fields_mode', {'default': None, 'help': u"mode for 2-fields joining: - 'vectorize': sets a vector with each field as a component - 'superpose': superpose second field over the first with contourlines - '-': computes and plots the difference field - '+': computes and plots the sum field - '*': computes and plots the product field - '/': computes and plots the division field"}], u'DDHLFA_multiple_fields': [u'-f', u'-F', u'--field', {'default': None, 'help': u"name of the field to be processed. Regular expressions can be used, such as 'F*FLUVERTDYN' or 'VKK[0-1]'. In case this option is not used, no more than '-l' option, all fields present in file are processed. Fields not found in file are ignored. To obtain the list of fields in file, use the 'ddhlfa_what' tool."}], u'vertical_field': [u'-F', u'-f', u'--field', {'default': None, 'required': True, 'help': u"designation of the fields from which to extract profile. Syntax depends on format: GRIB: handgrip designing the parameter and the type of levels. FA: name of the upper-air field to be processed, with a * for level. To obtain the list of fields in file, use the 'epy_what' tool."}], u'sort_fields': [u'-s', u'--sortfields', {'default': False, 'action': u'store_true', 'help': u'not for GRIB: sort fields with regards to their name and type.'}], u'field': [u'-f', u'-F', u'--field', {'default': None, 'help': u"*fid* = *field identifier* of of the field(s) to be processed. Syntax depends on format: GRIB: handgrip, e.g. 'shortName:t,level:850'. FA: name, e.g. 'S050TEMPERATURE'; regular expressions may be used, such as 'S00[2-6]WIND.[U-V].PHYS', 'SURFALBEDO*' or 'SURF?.OF.OZONE'. To obtain the list of fields in file, use the 'epy_what' tool."}], u'windfieldU': [u'--wU', u'--Ucomponentofwind', {'default': None, 'dest': u'Ucomponentofwind', 'help': u'to process wind as a vector. U component of wind. (same syntax as -f). Not implemented in difference mode.'}], u'windfieldV': [u'--wV', u'--Vcomponentofwind', {'default': None, 'dest': u'Vcomponentofwind', 'help': u'to process wind as a vector. V component of wind. (same syntax as -f). Not implemented in difference mode.'}], u'FA_multiple_fields': [u'-f', u'-F', u'--field', {'default': None, 'help': u"name of the field to be processed. Regular expressions can be used, such as 'S00[2-6]WIND.[U-V].PHYS' to process meridian and zonal winds of levels 2 to 6, 'SURFALBEDO*' to process all kinds of albedo, 'SURF?.OF.OZONE' to process all kinds of ozone (A,B,C). In case this option is not used, no more than '-l' option, all fields present in file are processed. Fields not found in file are ignored. To obtain the list of fields in file, use the 'fa_what' tool."}], u'GRIB2_packing': [u'--GRIB2_packing', {'default': None, 'help': u'packing for writing GRIB2s. Defaults to undefined.'}], u'windfield': [u'-w', u'--computewind', {'default': None, 'help': u"to process wind as a vector. Syntax depends on format: FA: 'S*WIND' or 'P*VENT', 'H*VENT', 'V*VENT', 'CLSVENT.*', or 'CLS*.RAF'; * designing the level: combination of (*, ?, digits). GRIB: handgrip, e.g. 'shortName:u+v,level:850' or 'indicatorOfParameter:33+34,level:850' or 'parameterCategory:2,parameterNumber:2+3,level:850'. Not implemented in difference mode."}], u'FA_windfield': [u'-w', u'--computewind', {'default': None, 'help': u"to process wind module, using the following syntax: 'S*WIND' or 'P*VENT', 'H*VENT', 'V*VENT', 'CLSVENT.*', 'CLS*.RAF', * designing the level: combination of (*, ?, digits). Not implemented in difference mode."}], u'GRIB_field': [u'-F', u'-f', u'--field', {'default': None, 'help': u"(possibly partial) handgrip of the field to be processed. To obtain the list of fields in file (and their handgrip), use EPyGrAM's 'grib_what' tool or GRIB_API's 'grib_dump'. Ex: -f 'shortName:t,level:850'."}], u'FA_field': [u'-f', u'-F', u'--field', {'default': None, 'help': u"name of the field to be processed. To obtain the list of fields in file, use the 'fa_what' tool."}], u'GRIB_secondfield': [u'-2', u'--secondfield', {'default': None, 'help': u"(possibly partial) handgrip of the second field to be processed. To obtain the list of fields in file (and their handgrip), use EPyGrAM's 'grib_what' tool or GRIB_API's 'grib_dump'. Ex: -f 'shortName:t,level:850'."}], u'GRIB_what_mode': [u'-m', u'--mode', {'default': u'one+list', 'help': u"information display mode (GRIB only): 'one+list' gives the validity/geometry of the first field in GRIB, plus the list of fid; 'fid_list' gives only the fid of each field in GRIB; 'what' gives the values of the keys from each GRIB message that are used to generate an **epygram** field from the message (slower); 'ls' gives the values of the 'ls' keys from each GRIB message; 'mars' gives the values of the 'mars' keys from each GRIB message.", 'choices': (u'one+list', u'fid_list', u'what', u'ls', u'mars')}], u'list_of_fields': [u'-l', u'--listoffields', {'default': None, 'help': u'name of an external file containing the list of fields to be processed, with the same specifications as for -f argument.'}], u'DDHLFA_domain': [u'-n', u'--domain_number', {'required': True, 'help': u"number of the domain to plot. Multiple domains must be given within quotes, separated by comma. To obtain the list of domains in file, use the 'ddhlfa_what' tool."}], u'FA_vertical_field': [u'-F', u'-f', u'--field', {'default': None, 'required': True, 'help': u"name of the upper-air field to be processed, with a * for level. To obtain the list of fields in file, use the 'fa_what' tool."}], u'reverse_fields_selection': [u'-r', u'--reverse', {'default': False, 'action': u'store_true', 'help': u'reverse fields selection: all but those requested.'}], u'FA_set_compression': [u'-k', u'--kompression', {'default': None, 'type': <type 'int'>, 'help': u'bits number for FA gridpoint compression : KNBITS/KNBPDG. Defaults to 16.'}]}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
epygram.args_catalog.output_options = {u'only_maxdiff': [u'--oxd', u'--only_maxdiff', {'default': False, 'dest': u'only_maxdiff', 'help': u'if diffonly and activated, only print the maximum absolute difference (and min/max values of fields for magnitude', 'action': u'store_true'}], u'noplot': [u'-n', u'--noplot', {'default': False, 'action': u'store_true', 'help': u'disable plot. Profile/spectrum will be computed and written as text output but not plotted.'}], u'stdout': [u'-o', u'--stdout', {'default': False, 'action': u'store_true', 'help': u'redirects output to standard output (rather than file).'}], u'GeoPoints_llv': [u'--llv', {'default': False, 'action': u'store_true', 'help': u'simplify GeoPoints format to LAT, LON, VALUE only.'}], u'GeoPoints_precision': [u'-e', u'--precision', {'default': 6, 'help': u"precision on GeoPoints' values (number of decimals in scientific format). Default = 6."}], u'output_format': [u'-o', u'--output_format', {'required': True, 'help': u"format of conversion output, among: 'grb' (GRIB2), 'geo' (GeoPoints), 'nc' (netCDF4).", 'choices': [u'grb', u'geo', u'nc']}], u'GRIB_short_fid': [u'-s', u'--grib_short_fid', {'default': False, 'action': u'store_true', 'help': u'condense GRIB fid.'}], u'GRIB_other_options': [u'--GRIB_other_options', {'default': None, 'help': u"a set of key:value pairs, separated by commas, to be given to the GRIB message when writing. Ex: 'typeOfGeneratingProcess:12,productionStatusOfProcessedData:2'."}], u'precision': [u'-e', u'--precision', {'default': 4, 'help': u'precision on values (number of decimals in scientific format). Default = 4.'}], u'outputfilename': [u'-O', u'--outputfilename', {'default': False, 'help': u'store output in the specified filename (without format for graphical output, to be completed by -o/--output).'}], u'GeoPoints_lonlat_precision': [u'-E', u'--lonlat_precision', {'default': 6, 'help': u"precision on GeoPoints' longitudes/latitudes (number of decimals). Default = 4."}], u'one_pdf': [u'-p', u'--pdf', {'default': False, 'action': u'store_true', 'help': u'store output (eventually multiple plots) in one .pdf file.'}], u'reproject_wind': [u'--rw', u'--reproject_wind', {'default': False, 'dest': u'reproject_wind', 'help': u'reprojects a wind vector (u, v) onto true zonal/meridian axes (assuming it is projected onto grid axes in fields).', 'action': u'store_true'}], u'get_field_details': [u'-d', u'--details', {'default': None, 'help': u"get some details about each field. E.g. 'spectral' to inquire the spectralness of fields, or 'compression' to inquire compression parameters, 'grid' or 'comment' for LFI."}], u'output': [u'-o', u'--output', {'default': False, 'help': u"store graphical output in file in with specified format, among ('png', pdf). Pdf is kind of disadvised, for it is very slow and produces much too big files...", 'choices': [u'png', u'pdf']}], u'get_field_compression': [u'-c', u'--compression', {'default': False, 'action': u'store_true', 'help': u'get compression options of each field.'}], u'lonlat_precision': [u'-E', u'--lonlat_precision', {'default': 4, 'help': u'precision on longitudes/latitudes (number of decimals). Default = 4.'}]}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
epygram.args_catalog.misc_options = {u'femars.diff_to_avg': [u'--avg', u'--diff_to_avg', {'dest': u'diff_to_avg', 'default': False, 'action': u'store_true', 'help': u'instead of computing member to member differences, compute member-to-average-of-members differences.'}], u'operation_on_field': [u'-x', u'--operation', {'default': None, 'help': u"do the requested operation on field right after reading it. Syntax: '-,273.15' (e.g. for K => C) or 'exp' to take the exponential of the field. The operand must be among (+,-,*,/) or 'normalize' or any numpy function. For '-' operand, use short-name option -x without spacetab between option and argument."}], u'mask_threshold': [u'--mt', u'--mask_threshold', {'dest': u'mask_threshold', 'default': None, 'help': u"set a threshold to mask values. E.g. 'min=0.0' will mask negative values. 'min=0.0,max=1e8' will mask values outside these boundaries."}], u'pressure_unit_hpa': [u'-u', u'--pressure_unit_hpa', {'default': False, 'action': u'store_true', 'help': u'converts pressure in Pa to hPa.'}], u'diffoperation_on_field': [u'-X', u'--diffoperation', {'default': None, 'help': u"do the requested operation on difference field right after computing it. Syntax: '-,273.15' (e.g. for K => C) or 'exp' to take the exponential of the field. The operand must be among (+,-,*,/) or 'normalize' or any numpy function. For '-' operand, use short-name option -X without spacetab between option and argument."}], u'array_flattening_order': [u'--order', {'default': u'C', 'help': u"for LAM arrays, whether to flatten in C (row-major) or Fortran (column-major) order 2D arrays. Default = 'C'."}], u'flatten_horizontal_grids': [u'--flatten', {'default': False, 'action': u'store_true', 'help': u'for netCDF, flatten 2D horizontal grids to 1D.'}], u'composition_with_field': [u'--compose_with', {'default': None, 'help': u"compose a transformed field with another field. Syntax: 'otherfield, composition, [file=otherfile], [preset='norm'|'ceil']'. The *composition* must be among (+,-,*,/). If *file* is filled (optional), the *otherfield* is read in it. If *preset* is filled (optional), one or several operation can be done on the *otherfield* before operation. Ex: 'SFX.FRAC_WATER, *, file=mypgd.fa, preset=ceil' will set non-water points of the plotted field (e.g. SFX.TS_WATER) to 0."}], u'LAMzone': [u'-z', u'--zone', {'default': u'CI', 'help': u"zone of the domain, in LAM case: 'C' for zone C, 'CI' for zone C+I, 'CIE' for zone C+I+E. Default is 'CI'.", 'choices': [u'C', u'CI', u'CIE']}]}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
epygram.args_catalog.graphical_options = {u'vector_symbol': [u'--vs', u'--vector_symbol', {'default': u'barbs', 'dest': u'vector_symbol', 'help': u"symbol to be used for vectors, among ('barbs', 'arrows', 'stream')."}], u'colormap': [u'-c', u'--colormap', {'default': u'jet', 'help': u"name of the **matplotlib** colormap to use. Default is 'jet' (Cf. http://matplotlib.org/examples/color/colormaps_reference.html for standard matplotlib colormaps, or epygram.config.epygram_colormaps.keys() in a python interpreter for epygram's own colormaps). Custom colormaps can be defined (http://colormap.org or manually) and added in userconfig, in usercolormaps = {'my_cmap':'path_to_my_cmap'}."}], u'french_departments': [u'--depts', {'default': False, 'action': u'store_true', 'help': u'draw french departments on map (instead of countries boundaries).'}], u'lonlat_zoom': [u'--zoom', {'default': None, 'help': u"optional zoom on the specified region of the plot. Forces to 'cyl' projection. Syntax: 'lonmin=-5, lonmax=1.2, latmin=40.8, latmax=51'. Overwrites 'projection' option."}], u'diff_center_hist_on_0': [u'-T', u'--diffcenter_hist_on_0', {'default': True, 'action': u'store_false', 'help': u'NOT to center the histogram of diff on the value 0. May be useful for fluxes decumulation.'}], u'diff_center_cmap_on_0': [u'-T', u'--diffcenter_cmap_on_0', {'default': True, 'action': u'store_false', 'help': u'NOT to center the colormap of diff plots on the value 0. May be useful for fluxes decumulation.'}], u'background': [u'--background', {'default': False, 'action': u'store_true', 'help': u'sets a background color to continents and oceans.'}], u'bluemarble': [u'--bluemarble', {'default': 0.0, 'type': <type 'float'>, 'help': u'displays NASA\'s "blue marble" as background, with a transparency set to the given value [0.0, 1.0].'}], u'graphicmode': [u'-g', u'--graphicmode', {'default': u'colorshades', 'help': u"graphical mode for plots, among ('colorshades', 'contourlines', 'points'). Default is 'colorshades'. There is a known bug (yet unsolved) with Arpege & contourlines.", 'choices': [u'colorshades', u'contourlines', u'points']}], u'vertical_zoom': [u'--zoom', {'default': None, 'help': u"optional zoom (vertical reduction) on the profile plot. Ex: 'ymax=150, ymin=850'. The unit must be that of the vertical coordinate requested (hPa, m, level number)."}], u'points_size': [u'-p', u'--pointsize', {'default': 20, 'type': <type 'int'>, 'help': u"size of points for *graphicmode* == 'points'. Defaults to 20."}], u'superpose_spectra_plots': [u'-s', u'--superposeplots', {'default': False, 'action': u'store_true', 'help': u'for superposing spectra of all requested fields in one plot.'}], u'figures_dpi': [u'--fd', u'--figures_dpi', {'default': 150, 'dest': u'figures_dpi', 'type': <type 'int'>, 'help': u'quality of saved figures.'}], u'spectra_zoom': [u'--zoom', {'default': None, 'help': u"optional zoom on the spectra plot. Ex: 'xmax=10, ymin=1.0'."}], u'quiverkey': [u'--qk', u'--quiverkey', {'default': None, 'dest': u'quiverkey', 'help': u"arguments to be passed to pyplot.quiverkey(), in case *vector_symbol* == 'arrows'. E.g. X=1.05,Y=1.05,U=10.,label='10m/s'."}], u'vectors_subsampling': [u'-s', u'--vectors_subsampling', {'default': 20, 'type': <type 'int'>, 'help': u'Subsampling factor for plotting vectors barbs (-w: computewind option). Defaults to 20.'}], u'minmax': [u'-m', u'--minmax', {'default': None, 'help': u"min and max values for the plot. Syntax: 'min, max'. '0.0, max' also works. Default is the field min/max values. In diff mode, this is valuable for resource and reference only, (min, max) for difference plot should be defined with --diffminmax option. For negative values, use short-name option -m without spacetab between option and argument."}], u'spectra_slopes': [u'-k', u'--kindofslopes', {'default': u'-3 1.0 -3, -5./3. 1e-2 -5/3', 'help': u"optional kind of slopes to be plotted, with syntax: sequence of (exp offset label) between simple quotes ('), with slope = offset * k**exp. offset is optional, with default = 1.0. Label is optional and denotes how do the exp appears in legend (by default, exp=0.5 will appear 1/2 => add a label 0.5 for it to appear unchanged.). If label is provided, offset must be provided as well. Ex: 'exp1, exp2 offset2 label2, exp3 offset3'. or '-3 1.0, -5./3. 1e-2 -5/3' (default)."}], u'legend': [u'-L', u'--legend', {'default': None, 'help': u'legend to be written over field plot.'}], u'parallels': [u'--parallels', {'default': u'auto', 'type': <type 'str'>, 'help': u"*meridians* and *parallels* enable to fine-tune the choice of lines to plot, with either: - 'auto': automatic scaling to the basemap extents (default) - 'default': range(0,360,10) and range(-90,90,10) - a list of values - a grid step, e.g. 5 to plot each 5 degree - None: no one is plot - 'equator' // 'polarcircles' // 'tropics' or any combination (,) will plot only these."}], u'diff_levels_number': [u'-N', u'--difflevelsnumber', {'default': 50, 'type': <type 'int'>, 'help': u'number of levels for difference contours and shades. Default is 50.'}], u'gis_quality': [u'-q', u'--gisquality', {'default': u'i', 'help': u"quality of the GIS used to draw coastlines, rivers and countries; among ('c', 'l', 'i', 'h', 'f'), by increasing quality.", 'choices': [u'c', u'l', u'i', u'h', u'f']}], u'meridians': [u'--meridians', {'default': u'auto', 'type': <type 'str'>, 'help': u"Same as parallels, cf. parallels doc. Preset values are 'greenwich' and 'datechange'."}], u'levels_number': [u'-n', u'--levelsnumber', {'default': 50, 'type': <type 'int'>, 'help': u'number of levels for contours and shades. Default is 50.'}], u'section_abscissa': [u'--section_abscissa', u'--sa', {'default': u'distance', 'help': u"abscissa of section, among ('distance', 'lon', 'lat')."}], u'diffbins': [u'-B', u'--diffbins', {'default': u'50', 'type': <type 'str'>, 'help': u"number of bins or bins edges (separated by commas) for diff plot. 'range(0,100,12.5)' also works. Default is 50."}], u'center_hist_on_0': [u'-t', u'--center_hist_on_0', {'default': False, 'action': u'store_true', 'help': u'to center the histogram on the value 0. Can be useful for wind plots for instance.'}], u'scientifical_unit': [u'-u', u'--unit', {'default': u'SI', 'help': u"optional unit for labeling plot axis. Defaults to 'SI'."}], u'diffminmax': [u'-M', u'--diffminmax', {'default': None, 'help': u"min and max values for the difference plot. Syntax: 'min, max'. '0.0, max' also works. Default is the difference field min/max values. For negative values, use short-name option -M without spacetab between option and argument."}], u'emagram_like_profiles': [u'-e', u'--emagramlike', {'default': False, 'action': u'store_true', 'help': u'plots profiles in a emagram-like style (only with -P/--hybridP2pressure). Should not be used for other than Temperature profiles.'}], u'specific_map_projection': [u'-j', u'--projection', {'default': None, 'help': u"specific graphical projection of plots, among ('kav7', 'ortho', 'cyl', 'moll', 'nsper[,sat_height=3000,lon=15.0,lat=55]'). Default depend on the actual projection of fields, or 'moll' (Mollweide projection) for Gauss geometry. For 'nsper', the additional parameters are optional: *sat_height* defines the satellite height in km, with a defaults value of 3000; *lon* and *lat* define the satellite nadir position, with default values to the field centre. Overwritten by 'zoom' option."}], u'draw_rivers': [u'-r', u'--drawrivers', {'default': False, 'action': u'store_true', 'help': u'draw rivers on map. (Much more slow)'}], u'vertical_logscale': [u'-s', u'--logscale', {'default': False, 'action': u'store_true', 'help': u'plots with vertical logscale.'}], u'center_cmap_on_0': [u'-t', u'--center_cmap_on_0', {'default': False, 'action': u'store_true', 'help': u'to center the colormap on the value 0. Can be useful for wind plots for instance.'}], u'global_shift_center': [u'--global_shift_center', u'--gsc', {'default': None, 'type': <type 'float'>, 'help': u'for global lon/lat grids, shift the center by the requested angle (in degrees). Enables a [0,360] grid to be shifted to a [-180,180] grid, for instance (with -180 argument).'}], u'diffcolormap': [u'-C', u'--diffcolormap', {'default': u'RdBu_r', 'help': u"name of the **matplotlib** colormap to use for diff. Default is 'RdBu_r' (Cf. http://matplotlib.org/examples/color/colormaps_reference.html for standard matplotlib colormaps, or epygram.config.epygram_colormaps.keys() in a python interpreter for epygram's own colormaps). Custom colormaps can be defined (http://colormap.org or manually) and added in userconfig, in usercolormaps = {'my_cmap':'path_to_my_cmap'}."}], u'bins': [u'-b', u'--bins', {'default': u'50', 'type': <type 'str'>, 'help': u"number of bins or bins edges (separated by commas). 'range(0,100,12.5)' also works. Default is 50."}]}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
epygram.args_catalog.extraction_options = {u'section_transect_points_number': [u'-p', u'--points_number', {'default': None, 'type': <type 'int'>, 'help': u'number of points from starting point to ending point (included). Defaults to the number of points computed from the fields resolution, or from the resolution given via option -r.'}], u'verticalcoord2height': [u'-H', u'--verticalcoord2height', {'default': None, 'dest': u'Yconvert', 'const': u'height', 'help': u'compute height as vertical coordinate, if possible.', 'action': u'store_const'}], u'no_cheap_height_conversion': [u'--no_cheap_height', {'default': True, 'dest': u'cheap_height', 'help': u'for the computation of heights (-A/-H) to be done taking hydrometeors into account (in R computation) and NH Pressure departure (Non-Hydrostatic data). Slower but more accurate.', 'action': u'store_false'}], u'section_transect_resolution': [u'-r', u'--resolution', {'default': None, 'type': <type 'float'>, 'help': u'resolution of the section. Defaults to the fields resolution, or computed from the number of points given via option -p.'}], u'section_ending_point': [u'-e', u'--ending_point', {'default': None, 'required': True, 'help': u"lon/lat coordinate of ending point of the section. Syntax: 'lon, lat'."}], u'horizontal_interpolation': [u'-i', u'--interpolation', {'default': u'nearest', 'help': u"interpolation mode from field grid to point/section coordinates. Among ('nearest', 'linear', 'cubic'). Defaults to 'nearest'.", 'choices': [u'nearest', u'linear', u'cubic']}], u'external_distance': [u'-z', u'--external_distance', {'default': None, 'help': u"for 'nearest' interpolation mode, the nearest is chosen among the 4 nearest points regarding the point whose value of field *EXT* is the closest to *VALUE*, with syntax: *external_distance* = 'VALUE; EXT'. EXT being a fid."}], u'verticalcoord2altitude': [u'-A', u'--verticalcoord2altitude', {'default': None, 'dest': u'Yconvert', 'const': u'altitude', 'help': u'compute altitude as vertical coordinate, if possible.', 'action': u'store_const'}], u'point_coordinates': [u'-c', u'--coordinates', {'default': None, 'required': True, 'help': u"lon/lat coordinates of the point. Syntax: 'lon, lat'."}], u'section_starting_point': [u'-s', u'--starting_point', {'default': None, 'required': True, 'help': u"lon/lat coordinate of starting point of the section. Syntax: 'lon, lat'."}], u'verticalcoord2pressure': [u'-P', u'--verticalcoord2pressure', {'default': None, 'dest': u'Yconvert', 'const': u'pressure', 'help': u'compute pressure as vertical coordinate, if possible.', 'action': u'store_const'}]}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
epygram.args_catalog.runtime_options = {u'percentage': [u'-p', u'--percentage', {'default': False, 'action': u'store_true', 'help': u'display the percentage done on the run.'}], u'threads_number': [u'-t', u'--threads_number', {'default': 2, 'type': <type 'int'>, 'help': u'number of threads to be run in parallel.'}], u'verbose': [u'-v', u'--verbose', {'default': False, 'action': u'store_true', 'help': u'run verbosely. Else, only messages of level Error will be displayed.'}]}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
epygram.args_catalog.operational_options = {u'suite': [u'-S', u'--suite', {'default': u'research', 'help': u"name of the suite, among (oper, dble, research, test). Defaults to research. Used to build GRIB's *productionStatusOfProcessedData*."}], u'numod': [u'-N', u'--NUMOD', {'default': None, 'dest': u'numod', 'type': <type 'int'>, 'help': u"model identifier (known as NUMOD at Meteo-France). A.k.a. 'generatingProcessIdentifier' in GRIB_API. Default is 255."}], u'typeOfGeneratingProcess': [u'-g', u'--typeOfGeneratingProcess', {'default': u'Forecast', 'help': u"GRIB's type of generating process.", 'choices': [u'Post-processed analysis', u'Probability forecast', u'Observation', u'Hindcast', u'Ensemble forecast', u'Initialization', u'Forecast error', u'Probability-weighted forecast', u'Analysis', u'Forecast', u'Bias corrected forecast', u'Post-processed forecast', u'unknown', u'Climatological', u'Nowcast', u'Analysis error', u'Bias-corrected ensemble forecast']}]}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
epygram.args_catalog.domain_maker_options = {u'no_display': [u'-n', u'--no_display', {'default': False, 'action': u'store_true', 'help': u'run without displaying the domain.'}], u'mode': [u'-l', {'default': u'center_dims', 'action': u'store_const', 'const': u'lonlat_included', 'help': u'mode: define domain by specifying a lon/lat domain that must be included inside.', 'dest': u'mode'}], u'maximize_CI_in_E': [u'-m', u'--maximize_CI_in_E', {'default': False, 'action': u'store_true', 'help': u'forces the C+I zone to be the greatest possible inside a given (discrete) C+I+E size. In other words, with a given (discrete) C+I+E size, forces the E-zone to be the smallest possible.'}]}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs
dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v
dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)