Hi R helpers, I have downloaded time series of climatic data from CRU (Climatic Research Unit) which are ASCII files with a specific format for the data. The format is described here: http://www.cru.uea.ac.uk/~timm/grid/CRU_TS_2_1.html under the link "file format". I would like to know if somebody has already written some script in R to open and manage these data, for example for selecting only portions of the time series and/or pieces of the spatial grid? Cheers, Nicolas Degallier UMR 7159 / IRD UR182 Laboratoire d'Oc?anographie et du Climat, Exp?rimentation et Approches Num?riques (LOCEAN) Tour 45-55, 4e ?t., case 100, 4 place Jussieu 75252 Paris Cedex 5 France t?l: (33) 01 44 27 51 57 fax: (33) 01 44 27 38 05 E-mail: <Nicolas.Degallier at ird.fr> Publications (anonymous ftp): ftp://ftp.lodyc.jussieu.fr/LOCEAN/ndelod
how to read CRU climatic data files with R?
3 messages · Nicolas Degallier, antonio rodriguez, Brian Ripley
Nicolas Degallier wrote:
Hi R helpers, I have downloaded time series of climatic data from CRU (Climatic Research Unit) which are ASCII files with a specific format for the data. The format is described here: http://www.cru.uea.ac.uk/~timm/grid/CRU_TS_2_1.html under the link "file format". I would like to know if somebody has already written some script in R to open and manage these data, for example for selecting only portions of the time series and/or pieces of the spatial grid?
Hi Nicolas, You will find in that page, below Data structure section, a link to 'software'. There you will find a package 'CRU2nc.tgz' which converts your ASCII data to 'netCDF' format. Then you can use any of the netCDF libraries available in R: ncdf,ncvar, RNetCDF, and the old netCDF. I've found, at least for me, before to enter the data in R, to manipulate them with Ferret (http://ferret.pmel.noaa.gov/Ferret/) (subsetting regions and time intervals, etc.) Hope this helps, Antonio
Cheers, Nicolas Degallier UMR 7159 / IRD UR182 Laboratoire d'Oc?anographie et du Climat, Exp?rimentation et Approches Num?riques (LOCEAN) Tour 45-55, 4e ?t., case 100, 4 place Jussieu 75252 Paris Cedex 5 France t?l: (33) 01 44 27 51 57 fax: (33) 01 44 27 38 05 E-mail: <Nicolas.Degallier at ird.fr> Publications (anonymous ftp): ftp://ftp.lodyc.jussieu.fr/LOCEAN/ndelod
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo
===== Por favor, si me mandas correos con copia a varias personas, pon mi direcci?n de correo en copia oculta (CCO), para evitar que acabe en montones de sitios, eliminando mi privacidad, favoreciendo la propagaci?n de virus y la proliferaci?n del SPAM. Gracias. ----- If you send me e-mail which has also been sent to several other people, kindly mark my address as blind-carbon-copy (or BCC), to avoid its distribution, which affects my privacy, increases the likelihood of spreading viruses, and leads to more SPAM. Thanks. =====
This is the databases list, not for reading ASCII files. Please try R-help.
On Tue, 13 Jun 2006, Nicolas Degallier wrote:
Hi R helpers, I have downloaded time series of climatic data from CRU (Climatic Research Unit) which are ASCII files with a specific format for the data. The format is described here: http://www.cru.uea.ac.uk/~timm/grid/CRU_TS_2_1.html under the link "file format". I would like to know if somebody has already written some script in R to open and manage these data, for example for selecting only portions of the time series and/or pieces of the spatial grid? Cheers, Nicolas Degallier UMR 7159 / IRD UR182 Laboratoire d'Oc?anographie et du Climat, Exp?rimentation et Approches Num?riques (LOCEAN) Tour 45-55, 4e ?t., case 100, 4 place Jussieu 75252 Paris Cedex 5 France t?l: (33) 01 44 27 51 57 fax: (33) 01 44 27 38 05 E-mail: <Nicolas.Degallier at ird.fr> Publications (anonymous ftp): ftp://ftp.lodyc.jussieu.fr/LOCEAN/ndelod
_______________________________________________ R-sig-DB mailing list -- R Special Interest Group R-sig-DB at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-db
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595