|
MapGenerator provides a huge set of options to plot maps from netCDF file(s) or from multi-dimensional arrays already retrieved and loaded in memory. It can be used basically in two ways:
|
|
*MapGenerator* provides a huge set of options to plot maps from netCDF file(s) or from multi-dimensional arrays already retrieved and loaded in memory. It can be used mainly in two ways:
|
|
|
|
|
|
1. by **command line** (needs netCDF to read):
|
|
1. by **command line** (needs netCDF to read):
|
|
|
|
|
|
```
|
|
```
|
|
mg --help
|
|
mg --help # shows help
|
|
|
|
|
|
|
|
# call style without "="
|
|
mg --option1 value1 ... --optionN valueN
|
|
mg --option1 value1 ... --optionN valueN
|
|
|
|
|
|
|
|
# or, call style with "="
|
|
mg --option1=value1 ... --optionN=valueN
|
|
mg --option1=value1 ... --optionN=valueN
|
|
```
|
|
```
|
|
|
|
|
... | @@ -31,9 +33,9 @@ plotmap <- import("mapgenerator.plotting.plotmap") |
... | @@ -31,9 +33,9 @@ plotmap <- import("mapgenerator.plotting.plotmap") |
|
|
|
|
|
pm <- plotmap$PlotMap()
|
|
pm <- plotmap$PlotMap()
|
|
|
|
|
|
pm$plot(option1=value1, ..., optionN=valueN)
|
|
pm$plot(option1=value1, ..., optionN=valueN) (reads from netCDF)
|
|
|
|
|
|
pm$aplot(option1=value1, ..., optionN=valueN)
|
|
pm$aplot(option1=value1, ..., optionN=valueN) (reads from array)
|
|
|
|
|
|
```
|
|
```
|
|
|
|
|
... | @@ -47,7 +49,7 @@ option1 = value1 |
... | @@ -47,7 +49,7 @@ option1 = value1 |
|
optionN = valueN
|
|
optionN = valueN
|
|
```
|
|
```
|
|
|
|
|
|
If options are passed both directly and through configuration file, direct ones have priorities. This can be very useful if you have a set of plots to draw with some options in common and others that change, the constant ones can be stored into one or more configuration files and the others passed directly.
|
|
If options are passed **both** directly and through configuration file, direct ones have priorities. This is very useful if you have a set of plots to draw with some options in common and others that change, the constant ones can be stored into one or more configuration files and the others passed directly.
|
|
|
|
|
|
To use a configuration file you have to write, through command line:
|
|
To use a configuration file you have to write, through command line:
|
|
|
|
|
... | | ... | |