[R] reading dataset

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Thu Mar 27 03:47:06 CET 2014


This question is about a specific data set you found on the internet... it is not in any way a question about R. You should be asking the suppliers of this data, not us.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

On March 26, 2014 5:45:55 PM PDT, eliza botto <eliza_botto at hotmail.com> wrote:
>Dear useRs,
>A similar question has previously been asked by another user
>(https://stat.ethz.ch/pipermail/r-sig-geo/2011-September/012791.html)
>but i'll try to discuss it from another angle. Its about data reading.
>I am trying to read to read a data-set APHRO_MA_050deg_V1101R2.1961.gz
>from
>http://www.chikyu.ac.jp/precip/cgi-bin/aphrodite/script/aphrodite_cgi.cgi/download?file=%2FV1101R2%2FAPHRO_MA%2F050deg.
> 
>I copied the command from previous post which is 
>ccc <-readBin("APHRO_MA_050deg_V1101R2.1961", numeric(), n=1e8, size=4,
>signed=TRUE, endian='little')
>Followings are what I know about the structure of data set. The file
>contains daily fields for 365 days. These daily fields are arranged
>according to the Julian calendar.  Daily
>fields (data arrays) contain information on the precipitation amount
>and
>ratio of 0.05-degree cells containing a rain gauge.  In the case the
>given file which is a
>0.5-degree grid file, each field consists of a data array with
>longitude
>by latitude dimensions of  180 x 140 elements for APHRO_MA.
>The first element is a cell at the southwest corner centered at
>[60.25E, 14.75S], the second
>is a cell at [60.75E, 14.75S], ..., the 180th is a cell at [149.75E,
>14.75S], and the 181st is a cell at [60.25E, 14.25S]. The data files
>are written in PLAIN DIRECT ACCESS BINARY.  In each daily field, the
>array for precipitation comes first, followed by
>information on the rain gauge. Each element (both precipitation and
>rain gauge information) is written as a 4-byte floating-point number
>in little endian byte order.  Users should swap the byte order to
>big endian if necessary.  There are no 'space', 'end of record', or
>'end of file' marks in between.  As it says that precipitation data is
>in the form of array which comes first, followed by the information on
>rain gauge, how do I know which element is precipitation data and which
>is the information of the rain gauge?Thankyou very  much in advance
>
>Eliza  		 	   		  
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list