Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Right-click on get_t and choose Save Result to save the GRIB data as a file called my_t.grib in the current directory. There is normally no need to do this unless you plan to use the data outside of this Metview session.

Putting it into a script

Right-click somewhere on the Metview desktop and select Create New Python Script. Edit the new icon to bring up Metview's code editor. You may have to re-arrange your windows slightly, but drop the get_t icon into the code editor. The Python equivalent code is generated, and the result is stored in a variable with the same name as the icon (get_t). Use the mv.write() command as shown in the screenshot, then run the script using the Run button in the editor. Your new GRIB file should appear! You should also be able to run this from the command line the same as any Python script.

Image Modified

If you have extra time...

Look at the North pole

Create your first Metview icon! Right-click somewhere on the Metview desktop and select Create New Icon. From the list, select Geographical View and click OK.. Right-click the new icon and choose Edit. Set the following parameter:

...