Metview's documentation is now on readthedocs!

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

You have seen already how to visualise outputs

Output formats

All graphical output formats are generated through Magics. Detailed descriptions of the output formats and their settings can be found in the Magics reference documentation.

The table below gives

FormatparameterHow to visualiseWhat to use for
Qt Metview display windowInteractive usage
PostScriptps/epsokular, ghostscript/gvPrinting, publications
PDFpdfokular, acroreadWeb, archiving
PNGpngweb browsers, display, xvWeb, presentations -> animations
SVGsvgweb browsers, inkscapeWeb HTML5, editing with inkscape
KML/KMZkmlGoogle Earth, Google Maps, OpenLayersInteractive publications

Exporting from the plot window

Whenever you have a plot window open you are able to export the plot into other file formats. You can either select the export button in the menu (looks like a disk)

  , by selecting File > Export  or by using the Ctrl+s keyboard shortcut.

 

You will get a dialogue as shown below

 

Exercises

  1. Try to save your plot as a PDF.
  2. Try to save your plot as a SVG without and with fixed dimensions.
    1. Open both files in Firefox and see how the plots behave when you resize the browser window.
    2. Open one of the SVGs in inkscape and edit the images (for example add some text) and save it as a PDF.

Setting output formats in macro code

 

Seeting multiple outputs in Metview Macro
output_common = ( 
      output_name            : "/tmp/myOutputTest",
      output_width           : 1000,
      output_title           : "Map of Z500",
      output_debug           : "ON",
      output_filelist        : "ON",
      output_filelist_name   : "/tmp/filelist.txt"
)

ps = ps_output(
      output_common,
      output_ps_scale        : 0.9,
      output_ps_colour_model : "CMYK"
)

png = png_output(
      output_common,
      output_cairo_transparent_background : "ON"
)

svg = svg_output(
      output_common,
      output_svg_fix_size : "ON",
      output_svg_meta     : "Metview map of Z500",
      output_svg_desc     : "This file was generated for the Training course"
)

kml = kml_output(
      output_common,
      kml_description : "This file was generated for the Training course",
      kml_author      : "Stephan Siemen",
      kml_link        : "http://www.ecmwf.int",
      kml_latitude    : 30,
      kml_longitude   : 120,
      kml_coastlines  : "ON"
)

output_drivers = [ps, png, svg, kml]

setoutput(output_drivers)

data = read("z500.grib")

plot(data)

 

KML as output format

KML is a very special output format. It contains the    it has no notion of output size.

 

Be careful

KML can only be generated if the Cylindrical projections is selected!

 

 

Converting Geopoints to KML

Metview allows

Importing graphical layers through OGC Web Map Services (WMS)

Metview provides a WMS (Web Map Service) module which can be used to query an OGC-compliant WMS server, retrieve maps from it and overlay them with other data. The following material describes the use of WMS within Metview.

 

  • No labels