Versions Compared

Key

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

...

Also, inspect the two input GRIB icons (right-click on it and choose examine) to analyse their contents,

...

View / Data Modules

...

Metview uses a netCDF format internally for the results of some computations (this format will be covered at session: Data Part 2). In particular, most of the previous Views (i.e. Cross Section, Vertical Profile, Average, Hovmøller and Thermo) do this, but their result data is not available to the user. Therefore, each of these Views has a corresponding Data Module view icon. If the intention is to simply plot the result, then the View icons are more useful. But to store the result data, the Data Module icon is required.

...

All of this can also be put into a macro, where the resulting netCDF variable can be further manipulated before being written to a file (or visualised).

Write a short macro, named save_vp, which computes a vertical profile from the data (use the Vertical Profile Data icon that you already set up) and writes the result to a file. To write a netcdf netCDF variable to a file, the syntax is the same as for any other data type:

...