Skip to content
siestePublic

About

R functions to extract and visualise radar data from the NIMROD system

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nimrod.R

R functions to extract and visualise radar data from the NIMROD System.

NIMROD

"A collection of products from rain radars operated by the Met Office and other European agencies for the UK and Europe."

Met Office (2003): Met Office Rain Radar Data from the NIMROD System. NCAS British Atmospheric Data Centre. http://catalogue.ceda.ac.uk/uuid/82adec1f896af6169112d09cc1174499

NOTE: At the moment, the code here assumes the 5km composite radar product.

Example

source('nimrod.R')
coast = read.csv('nimrod_coast.csv')

# read data 
# assumes data has been stored locally (see below)
# might have to specify the `nimrod_dir` option
img = nimrod_read(from='2020-02-01', to='2020-02-05', by='60 min')

# apply a bounding box (here: UK)
img = nimrod_apply_bbox(img, xlim=c(-2e5, 8e5), ylim=c(-1e5,12e5))

# animate the image collection
nimrod_animate(img, coast=coast)

# plot a single image
nimrod_plot(img[[1]])
lines(coast)

Details

Download NIMROD data

Local directory structure

  • The R code assumes a local directory structure similar to how the files are stored on CEDA, i.e. daily *.dat.gz.tar files stored in subfolders per year
<nimrod_dir>
│
├── 2019
│   ├── metoffice-c-band-rain-radar_uk_20190101_5km-composite.dat.gz.tar
│   ├── metoffice-c-band-rain-radar_uk_20190102_5km-composite.dat.gz.tar
│   ├── ...
│
├── 2020
│   ├── metoffice-c-band-rain-radar_uk_20200101_5km-composite.dat.gz.tar
│   ├── metoffice-c-band-rain-radar_uk_20200102_5km-composite.dat.gz.tar
│   ├── ...
...

nimrod_coast.csv

Made with Natural Earth. Free vector and raster map data @ <naturalearthdata.com>

About

R functions to extract and visualise radar data from the NIMROD system

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages