Versions Compared

Key

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

...

Code Block
netcdf_auto_translate_times(0)  # 1 means 'on', 0 means 'off'

...

ASCII Data

ASCII Table Data

Metview incorporates functionality to read, process and visualise data stored in ASCII table files, including the commonly-used CSV (comma-separated value) format.

...

Although Metview has some functionality for handling this type of data in Macro, it can do much more with the geopoints format. Therefore, if the data points are in geographic coordinates, one useful exercise is to read one of these files and convert it to geopoints.

...

There are many more string functions available.

 

Now do the reverse: write this list of parameters into another text file. The new file should look exactly like the original. Here are some hints:

...

There is a dedicated tutorial for handling ODB data in Metview on the Tutorials page.

Extra Work

NetCDF

Modify your first netCDF macro which plots the t2m variable and make it compute the temperature in degrees Celcius by subtracting 273.15 from it before plotting.

Optimisations to file writing

...

See if you can write a macro which extracts lat, lon and value columns into vectors and creates a new geopoints variable from the data.

NetCDF

Modify your first netCDF macro which plots the t2m variable and make it compute the temperature in degrees Celcius by subtracting 273.15 from it before plotting.