|
|
|
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:
|
|
|
|
|
|
|
|
1. by command line (needs netCDF to read):
|
|
|
|
|
|
|
|
```
|
|
|
|
mg --help
|
|
|
|
|
|
|
|
mg --option1 value1 ... --optionN valueN
|
|
|
|
|
|
|
|
mg --option1=value1 ... --optionN=valueN
|
|
|
|
```
|
|
|
|
|
|
|
|
2. as python library:
|
|
|
|
|
|
|
|
```
|
|
|
|
from mapgenerator.plotting import plotmap
|
|
|
|
|
|
|
|
pm = plotmap.PlotMap()
|
|
|
|
|
|
|
|
pm.plot(option1=value1, ..., optionN=valueN) (reads from netCDF)
|
|
|
|
|
|
|
|
pm.aplot(option1=value1, ..., optionN=valueN) (reads from array)
|
|
|
|
```
|
|
|
|
|
|
|
|
Additionally, it can be used as an R library:
|
|
|
|
|
|
|
|
```
|
|
|
|
library(reticulate)
|
|
|
|
|
|
|
|
plotmap <- import("mapgenerator.plotting.plotmap")
|
|
|
|
|
|
|
|
pm$plot(option1=value1, ..., optionN=valueN)
|
|
|
|
|
|
|
|
pm$aplot(option1=value1, ..., optionN=valueN)
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
All available options can be found [here](options) |