Skip to content

opening nimroad tar gz files in R

2 messages · Nick Wray, Eric Berger

#
Hello

I am trying to download data sets from the 1 km Resolution UK Composite
Rainfall Data from the Met Office Nimrod System

Eg

CEDA Archive Web Browser
<https://data.ceda.ac.uk/badc/ukmo-nimrod/data/composite/uk-1km/2004>
/badc/ukmo_nimrod/data/composite/uk-1km/2004

I can download an individual file (there are lots for each year) as a
.gz.tar and then it appears as a TAR file in the directory I am using.

I have then used the instruction untar() (targeted on the correct
directory) and what this produces is about a dozen these files which are
labelled as .gz files.  They appear in the same folder as the original TAR
folder but as R files (ie although they have .gz in the name they have the
R icon next to them as do any R progs which I have).  I can?t open them
though as R progs (which I don?t really think they can be) and trying to
just takes me back to the R studio interface.

I?ve tried  -- read.table (gzfile
("metoffice-c-band-rain-radar_uk_200404062250_1km-composite.dat.gz")) but
that just gives a load of error messages and I haven?t found any other way
of opening them as .gz files.

I?m rather baffled ? can anyone make any suggestions?  Thanks Nick Wray
#
Is there a way to download a file from that site without registering for
the site?
If you have a unix/linux shell, what does the 'file' command output?

$ file foo.gz
On Thu, Sep 15, 2022 at 2:11 PM Nick Wray <nickmwray at gmail.com> wrote: