Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
Section
Column
width50%

Objectives of the tutorial


 

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 gribGRIB, netcdfnetCDF, or simple ascii 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

The slides of the course can be found here [PDF].



Quick Links


Hello World

A Geographical Map

A Cross Section

Vertical Profile and time series

More on Symbol Plotting

A Complex Layout

 

 

Column
width50%

Image Added

 

Info

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

 

 

width
Column

50%

Image Removed

 

 

 

Before you start ...

During this tutorial, you will use python Python and magicsMagics++ on a linux Linux workstation.

Here is a list of basic commands you may need want 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

...

There are several editors available

  • vi :
  • emacs
  • kate
  • nedit
  • geany ( python Python syntax highlighted..)
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 Postscript or a png PNG output. To visualise the results, you can use one of the following commands:

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

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

Panel
titleObjectives
Section
Column
width50%
  • get Get familiar with the environment

  • find Find your favourite editor to edit your python Python script

  • create Create your first Magics script

  • learn Learn how to:

Column
width400px

...

Panel
titleObjectives
Section
Column
width50%
  • Setup Set-up a geographical area

  • Learn how  to

    • load grib Load GRIB data and apply nice contouring to them
    • Draw a curve on a map.
    • Draw a symbol
    • Setup Set-up a text
    • taylor Taylor the legend

      Go to the tutorial ...

Column
width300px

...

Panel
titleObjectives
Section
Column
width50%
  • Setup Set-up a cartesian Cartesian projection

  • Learn how  to

Column
width300px

Fourth Step - a vertical profile and a Time

...

series

Panel
titleObjectives
Section
Column
width50%
  • Setup Set-up a date coordnate coordinate system.

  • Learn how  to

    • Load a CSV file
    • Use arrays of data
    • Draw a curve or bars
  • Create a more complex layout

Go to Tutorial...

Column
width300px

Fifth Step - More on Symbol Plotting

Panel
titleObjectives
Section
Column
width50%

  • Learn how  to

    • create Create a long list of visualisation
    • Load and use CSV files

Go to Tutorial...

Column
width300px

 Finally - a complex layout

Panel
titleObjectives
Section
Column
width50%
  • Create a complex layout to put all these maps together
  • Understand the notion of page and sub page

Go to Tutorial...

Column
width300px

Image Added

Download the full solution ...