Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
titleObjectives of the tutorial
Section
Column
width50%

At the end of this tutorial, you will be able to:

  • write and run small Magics python programs.
  • create meteorological maps using different projections, or Cartesian projections
  • load grib, netcdf, or simple ascii data

  • use the different action routines contour, wind, graph to visualise them
  • add text and legend
  • create a complex layout to get organise your plots
  • find your way in the documentation

 

 

Info

In short, once you  have realised this plot, you will have understood and used the main concepts of Magic

Column
width50%

 

 

 

Before you start ...

During this tutorial, you will use python and magics++ on a linux workstation.

Here is a list of basic commands you may need to use

Basic unix commands:

  • ls : list the files in the current directory
  • mkdir my_exercise : create a directory called my_excercise
  • cd my_exercise :  go to the directory my_excercise. my_excercise becomes the current directory

Using an editor:

There are several editors available

  • vi :
  • emacs
  • kate
  • nedit
Run the python interpretor :

In this tutorial we are expecting you to create a python script using your favourite editor and run python to interpret it. Your system have been set-up already and you can use Magics and python by typing the single command:

  • python magics.py 

Visualise your result:

Magics will generate a postscript or a png output.

  • gv magics.ps : visualise a postscript file called magics.ps
  • xv magics.png : visualise a postscript file called magics.png
  • display magics.png : visualise a postscript file called magics.png

First Step - warming up : the "Hello World" example 

...