[R] open unknown file format in R

Pascal Oettli kridox at ymail.com
Tue Mar 18 14:21:19 CET 2014


Hello,

http://www.chikyu.ac.jp/precip/products/index.html

HTH,
Pascal


On Tue, Mar 18, 2014 at 10:09 PM, eliza botto <eliza_botto at hotmail.com> wrote:
> Thankyou very much indeed.My limited knowledge of R is forcing me to ask you
> that how did you know the following information (AphroJP, 123°E-146°E,
> 24°N-46°N, resolution 0.05x0.05 i.e. 440 rows x 460columns)?
>
> Thanks,
>
> Eliza
>
>
>> From: kridox at ymail.com
>> Date: Tue, 18 Mar 2014 21:39:58 +0900
>
>> Subject: Re: [R] open unknown file format in R
>> To: eliza_botto at hotmail.com
>> CC: r-help at r-project.org
>>
>> Hello,
>>
>> It is not around the world. It is only for Japan (AphroJP,
>> 123°E-146°E, 24°N-46°N, resolution 0.05x0.05 i.e. 440 rows x 460
>> columns). You can store in a Raster* object then extract the grid
>> points you need, with the coordinates.
>>
>> HTH
>> Pascal
>>
>>
>>
>> On Tue, Mar 18, 2014 at 9:21 PM, eliza botto <eliza_botto at hotmail.com>
>> wrote:
>> > Hi Pascal,
>> >
>> > Your code worked out perfectly but I have one question though. You wrote
>> > that you did not use stations. What if I want to read stations as i am
>> > only
>> >
>> > interest in a part of data. I need it because the file has data for
>> > 202400
>> > stations around the globe and I am only interest in data of 22 stations.
>> >
>> > Thankyou very much in advance,
>> >
>> > Eliza
>> >
>> >
>> >> From: kridox at ymail.com
>> >> Date: Tue, 18 Mar 2014 08:51:01 +0900
>> >> Subject: Re: [R] open unknown file format in R
>> >> To: eliza_botto at hotmail.com
>> >> CC: r-help at r-project.org
>> >>
>> >> Hello,
>> >>
>> >> It is in binary format. I didn't use stations. But to read the gridded
>> >> format, I used:
>> >>
>> >> > readBin(fid, numeric(), n=1e8, size=4, signed=TRUE, endian='little')
>> >>
>> >> where file is the connection created with file()
>> >>
>> >> Hope this helps,
>> >> Pascal
>> >>
>> >>
>> >>
>> >>
>> >> On Tue, Mar 18, 2014 at 4:06 AM, eliza botto <eliza_botto at hotmail.com>
>> >> wrote:
>> >> > Dear R-Family,
>> >> > I have just downloaded a massive data file from internet
>> >> > (AphroJP_62STN_V1005.1900.gz). Apparently, the file is compressed
>> >> > with .gz.
>> >> > When I uncompressed
>> >> > it, the file was saved in the name (AphroJP_62STN_V1005.1900) of
>> >> > unknown
>> >> > format. How can I open it in R?
>> >> > thankyou very much indeed 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.
>> >>
>> >>
>> >>
>> >> --
>> >> Pascal Oettli
>> >> Project Scientist
>> >> JAMSTEC
>> >> Yokohama, Japan
>>
>>
>>
>> --
>> Pascal Oettli
>> Project Scientist
>> JAMSTEC
>> Yokohama, Japan



-- 
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan




More information about the R-help mailing list