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 authored Jan 31, 2019 by Francesco's avatar Francesco
Hide whitespace changes
Inline Side-by-side
example1.md
View page @ 714a6462
...@@ -7,8 +7,8 @@ Configuration file: ...@@ -7,8 +7,8 @@ Configuration file:
[test] [test]
srcfiles = "tos_a1da-oras4_final.nc" srcfiles = "tos_a1da-oras4_final.nc"
srcvars = "tos" srcvars = "tos"
indir = "/esarchive/scratch/Earth/fbeninca/mg/" indir = "/esarchive/scratch/Earth/fbeninca/mg/example1/"
outdir = "/esarchive/scratch/Earth/fbeninca/mg/" outdir = "/esarchive/scratch/Earth/fbeninca/mg/example1/"
ysize = 0.7 # modify aspect ratio decreasing y size ysize = 0.7 # modify aspect ratio decreasing y size
colors = "bwr" # using colormap "bwr" 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 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: ...@@ -23,23 +23,23 @@ Following solutions are equivalent:
1. bash command line with configuration file 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 2. bash command line without configuration file
``` ```
mg --srcfiles="tos_a1da-oras4_final.nc" --srcvars="tos" \ 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" \ --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" --countropts="0,w" --lat="m90-90,30" --lon="m180-180,30"
``` ```
3. Python with configuration file 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 4. Python without configuration file
``` ```
pm.plot(srcfiles="tos_a1da-oras4_final.nc", srcvars="tos", indir="/esarchive/scratch/Earth/fbeninca/mg/", \ pm.plot(srcfiles="tos_a1da-oras4_final.nc", srcvars="tos", indir="/esarchive/scratch/Earth/fbeninca/mg/example1/", \
outdir="/esarchive/scratch/Earth/fbeninca/mg/", ysize=0.7, colors="bwr", bounds="m1.5-1.7,0.2", \ 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") smooth="True", extend="both", countropts="0,w", lat="m90-90,30", lon="m180-180,30")
``` ```
Output: Output:
......
Clone repository
  • Reports
  • configure
  • example1
  • example2
  • example3
  • examples
  • Home
  • how to use
  • options