Metadata manipulations¶
add missing Lambert projection information to netcdf file¶
Script scripts/metadata/add_missing_projection_data.py
help:
usage: add_missing_projection_data.py [-h] [--xname XNAME] [--yname YNAME]
inputnc outputnc
Add missing Lambert93 projection information to netcdf file.
positional arguments:
inputnc Input NetCDF file
outputnc Output NetCDF file
options:
-h, --help show this help message and exit
--xname XNAME variable name containing x coordinate
--yname YNAME variable name containing y coordinate
Generate the Massifs section of METADATA.xml file¶
Script scripts/metadata/gen_metadata_massif_file.py
help:
usage: gen_metadata_massif_file.py [-h] [-i INPUTXML] [-o OUTPUTXML] inputshp
Generate the Massifs section of METADATA.xml file from a shapefile describing
massifs (massifs.shp). NB: It is possible to use the same file as input and
output but the Massifs tag will be overwritten with no way of undoing changes.
positional arguments:
inputshp Input shapefile (shp file)
options:
-h, --help show this help message and exit
-i INPUTXML, --input INPUTXML
Input filename (to overwrite <Massifs> tag of an
existing file)
-o OUTPUTXML, --output OUTPUTXML
Output filename (default to standard output)
Todo
document other stuff in scrips/metadata…