... | ... | @@ -7,8 +7,8 @@ Configuration file: |
|
|
[test]
|
|
|
srcfiles = "tos_a1da-oras4_final.nc"
|
|
|
srcvars = "tos"
|
|
|
indir = "/esarchive/scratch/Earth/fbeninca/mg/"
|
|
|
outdir = "/esarchive/scratch/Earth/fbeninca/mg/"
|
|
|
indir = "/esarchive/scratch/Earth/fbeninca/mg/example1/"
|
|
|
outdir = "/esarchive/scratch/Earth/fbeninca/mg/example1/"
|
|
|
ysize = 0.7 # modify aspect ratio decreasing y size
|
|
|
colors = "bwr" # using colormap "bwr"
|
|
|
bounds = "m1.5-1.7,0.2" # from -1.5 to 1.7 (the last not included), every 0.2
|
... | ... | @@ -23,23 +23,23 @@ Following solutions are equivalent: |
|
|
|
|
|
1. bash command line with configuration file
|
|
|
```
|
|
|
mg --config="/esarchive/scratch/Earth/fbeninca/mg/test.conf" --section='test'
|
|
|
mg --config="/esarchive/scratch/Earth/fbeninca/mg/example1/test.conf" --section='test'
|
|
|
```
|
|
|
2. bash command line without configuration file
|
|
|
```
|
|
|
mg --srcfiles="tos_a1da-oras4_final.nc" --srcvars="tos" \
|
|
|
--indir="/esarchive/scratch/Earth/fbeninca/mg/" --outdir="/esarchive/scratch/Earth/fbeninca/mg/" \
|
|
|
--indir="/esarchive/scratch/Earth/fbeninca/mg/example1/" --outdir="/esarchive/scratch/Earth/fbeninca/mg/example1/" \
|
|
|
--ysize=0.7 --colors="bwr" --bounds="m1.5-1.7,0.2" --smooth="True" --extend="both" \
|
|
|
--countropts="0,w" --lat="m90-90,30" --lon="m180-180,30"
|
|
|
```
|
|
|
3. Python with configuration file
|
|
|
```
|
|
|
pm.plot(config="/esarchive/scratch/Earth/fbeninca/mg/test.conf", section='test')
|
|
|
pm.plot(config="/esarchive/scratch/Earth/fbeninca/mg/example1/test.conf", section='test')
|
|
|
```
|
|
|
4. Python without configuration file
|
|
|
```
|
|
|
pm.plot(srcfiles="tos_a1da-oras4_final.nc", srcvars="tos", indir="/esarchive/scratch/Earth/fbeninca/mg/", \
|
|
|
outdir="/esarchive/scratch/Earth/fbeninca/mg/", ysize=0.7, colors="bwr", bounds="m1.5-1.7,0.2", \
|
|
|
pm.plot(srcfiles="tos_a1da-oras4_final.nc", srcvars="tos", indir="/esarchive/scratch/Earth/fbeninca/mg/example1/", \
|
|
|
outdir="/esarchive/scratch/Earth/fbeninca/mg/example1/", ysize=0.7, colors="bwr", bounds="m1.5-1.7,0.2", \
|
|
|
smooth="True", extend="both", countropts="0,w", lat="m90-90,30", lon="m180-180,30")
|
|
|
```
|
|
|
Output:
|
... | ... | |