Meteorological Analyses Reading and Visualising code

This webpage contains code written by Dave Sproson, while working here at UEA. Firstly there are a set of perl scripts, which can be run from unix machine (e.g. escluster/cluster1) to download data from BADC. Secondly a couple of simple Matlab scripts which plot a spatial plot and a timeseries plot of a netCDF file. Thirdly a copy of Dave's ncdfView Matlab gui - this allows easy point-and-click plotting of netCDF gridded data. It is probably worth checking Dave's website to get the latest version of this utility here.

Code

Description

Comments

badc.tar Tar file containing scripts to download various data sets from BADC. Download the file then extract scripts (using tar). Currently there are scripts to get ECMWF ERA-15, ERA-40 and ERA-interim and UKMO global and North Atlantic/Europe (NAE) data. Also included is a script to run the resultant data through convsh to convert to netcdf. You can also get all of the scripts from Dave's website here or alternatively copy the following text into your console to get everything you need, including a copy of xconv (linux x86_64 only):
wget http://www.dajs.org.uk/code/badc/badc_setup
chmod +x badc_setup
./badc_setup
You will need to input time period, BADC account information, variable names (e.g. STASH code names), dates, etc.
plot_surface.m Simple Matlab script to do a spatial plot of a netCDF file. You will need to input time, level, lat/lon range and field names.
make_timeseries.m Simple Matlab script to extract a timeseries from a set of gridded data (a netCDF file). You will need to input variable name and lat/lon of desired timeseries.

ncdfView.m

ncdfView.fig

Matlab-based netCDF file viewer. Probably best to check Dave's website for latest version here.