Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • mapgenerator mapgenerator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 30
    • Issues 30
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • mapgeneratormapgenerator
  • Wiki
  • example1

example1 · Changes

Page history
Update example1 monthly mean global (res:292x362) sea surface temperature authored Jan 30, 2019 by Francesco's avatar Francesco
Show whitespace changes
Inline Side-by-side
example1.md 0 → 100644
View page @ e50c2843
**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:
![tos_a1da-oras4_final_00](/uploads/a7881b2f5fefc40d472f412536f55a7e/tos_a1da-oras4_final_00.png)
Go [Home](home)
Back to [Examples](examples)
Forward to [Example 2](example2)
Clone repository
  • Reports
  • configure
  • example1
  • example2
  • example3
  • examples
  • Home
  • how to use
  • options