CRU data user guide

About the CRU data

The University of East Anglia (UEA) archive the Climatic Research Unit (CRU) data with CEDA.  The CRU data contains two different products the gridded time-series (TS) data and Year-by-Year Variation of Selected Climate Variables by Country (CY) data. 

Downloading the CRU data

You can download the CRU data using the various CEDA data download tools as detailed below:

  1. Using the standard CEDA data download through the web interfacescripted interactions using the OPeNDAP service or ftp
  2. Using the CEDA Web Processing Service (WPS)
    1. Guide to downloading data from the WPS 
    2. Guide on data formats from the WPS CSV output

If you are having difficulty please see the Known Issues section

Missing data values

The CRU TS gridded data provides data over land only, missing values are given over the oceans and seas.

  • The ".dat" data files have a missing value of -999
  • The ".csv" files downloaded through the web processing service (WPS) have a missing value of -9999.999
  • NetCDF files have a missing value of 9.9692e+36 

Since there can be many data values per file and that more than half the values are over the oceans or seas then it may appear that the file has no real data, however by locating the geographic region that you are interested in you will be able to find the real data values. If you are using a text file (".dat") or a ".csv" file you may be able to zoom out at which point you will see that the file contains values other than the missing value

Note that a global data file is ordered from -90S to 90N i.e. the data begins over Antarctica, no data are available there so the first rows will only contain missing values.

A step by step guide to downloading data from the WPS

  1. Go to the CEDA Web Processing Service (WPS)
  2. Ensure the Climate Research Unit (CRU) TS (time-series) dataset is selected as the dataset (version at the time of writing is CRU TS 4.00). 
  3. Select a variable from the list provided, currently available variables are:
    1. Precipitation
    2. Near-surface temperature 
    3. Near-surface temperature maximum
    4. Potential evapotranspiration
    5. Ground frost frequency
    6. Cloud cover
    7. Wet day frequency
    8. Diurnal temperature range
    9. Vapour pressure
    10. Near-surface temperature minimum
  4. Select a start date time and end date time as YYYY-MM-DDThh:mm:ss format
  5.  Select a boundary box. NOTE this is optional and defaults as the globe
  6. Select an output format:
    1. CSV: comma separated value
    2. NC: NetCDF (documentation)
  7. Select a yearly or monthly time chunk to separate the files into.
  8. Press "Submit"
  9. If required login
  10. Press "Submit" again

How to read CSV files from the web processing service

The CEDA web processing service (WPS) will have provided a comma separated value (CSV) file in a  NASA Ames format, all NASA-Ames files have a header and then the data.

The header section

The header has lines that describe the data in the file (metadata):

Here an example of CRU precipitation data has been downloaded from the CEDA WPS and the header information is as shown below:

(You may wish to expand the second and third columns to see all the metadata.)

The header information can be decoded by using the following as a guide:

So for the example above this would be:

The data section

After the header, the data is displayed as shown in the image below. Each repeating data section starts with the time stamp (usually the number of days since 1900-01-01) and then a large section of latitudes and longitudes. Where a large geographic region (or global region) has been selected the data may look similar to: 

where initially it may look like a file of missing values as described in the header:

However, if a month of the yearly files were selected and zoomed out, then the geographic region selected can be seen more clearly:

For the CRU data each value represents one grid box (part of the globe) and a subsection is shown above. 

Geospatial Information Software (GIS)

The NASA-AMES Comma Separated Value (CSV) files that are produced by the CEDA Web Processing Service (WPS) is not directly compatible with GIS software. GIS software expects a simpler structured file of latitudes and longitudes in a 2 x 2 matrix. It is possible for users to take the data from the NASA-AMES CSV files and convert these to be compatible with GIS software, however, CEDA does not provide this at present. 

Known issues with gzipped files

It has been reported that some web browsers (eg. Chrome) have been unzipping the compressed files (e.g. those with ".dat.gz" or ".nc.gz" extensions) on download, but without renaming the files to remove the ".gz" file extension. Consequently, users may encounter issues with the downloaded file not being recognised by unzipping programmes. To avoid this issue users can manually rename the files to remove the ".gz" suffix.
Due to this for each variable in each version of the  CRU  TS data one unzipped NetCDF file has been provided. It is possible to interact with this file directly or via a script using the  CEDA OPeNDAP service. Simply find the file in the list that is unzipped (i.e. has extension ".nc") on the right hand side you will see a wheel with a button named "subset" click this button and then follow the instructions (or refer to the OPeNDAP documentation) to download a subset of the data that you require. You can download data in either NetCDF or ASCII (text) format.  (Note if you download CRU data through this OPeNDAP service no scaling of any variables have been applied, this is not the case if you download the gzipped text files ".dat.gz" in which case you should refer to the version specific file formats guide.) 

Further information

  • The Climate Research Unit homepage
  • Scientific paper associated with the CRU data
  • Contact CEDA via

Still need help? Contact Us Contact Us