|
|
**Description**: monthly mean global (res:292x362) sea surface temperature
|
|
|
|
|
|
Configuration file:
|
|
|
```
|
|
|
[test]
|
|
|
srcfiles = "tos_a1da-oras4_final.nc"
|
|
|
srcvars = "tos"
|
|
|
indir = "/esarchive/scratch/Earth/fbeninca/mg/"
|
|
|
outdir = "/esarchive/scratch/Earth/fbeninca/mg/"
|
|
|
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
|
|
|
smooth = "True" # contour filled instead of pixels
|
|
|
extend = "both" # extend colorbar with extremes (values <-1.5 and >1.7)
|
|
|
countropts = "0,w" # make countries not visible (0 width, white color)
|
|
|
lat = "m90-90,30" # latitudes from -90 to 90 every 30
|
|
|
lon = "m180-180,30" # longitudes from -180 to 180 every 30
|
|
|
```
|
|
|
|
|
|
Following solutions are equivalent:
|
|
|
|
|
|
1. bash command line with configuration file
|
|
|
```
|
|
|
mg --config="/esarchive/scratch/Earth/fbeninca/mg/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/" \
|
|
|
--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')
|
|
|
```
|
|
|
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", \
|
|
|
smooth="True", extend="both", countropts="0,w", lat="m90-90,30", lon="m180-180,30")
|
|
|
```
|
|
|
Output:
|
|
|
|
|
|

|
|
|
|
|
|
Go [Home](home)
|
|
|
Back to [Examples](examples)
|
|
|
Forward to [Example 2](example2) |