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: kri...@ymail.com > Date: Tue, 18 Mar 2014 08:51:01 +0900 > Subject: Re: [R] open unknown file format in R > To: eliza_bo...@hotmail.com > CC: r-help@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_bo...@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@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 [[alternative HTML version deleted]] ______________________________________________ R-help@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.