[R] HIRHAM netcdf files
bt_jannis at yahoo.de
Fri Jul 29 16:57:46 CEST 2011
This problem may be more related to netcdf files than to R....And the
answer to your question very much depends on which netcdf convention
the AWI folks who created your data followed. Additionally it depends on
the Software you use to read these ncdf files.
Regarding the grid locations there it usually helps to have a look at
all the attributes in the file. Additionally there may be variables
called longitude/long or similar that give you the exact grid locations.
Not sure whether this helped, but you may need to be more specific
regarding the files you are using. Perhaps posting the result of:
ncdump -h <filename>
would help us to understand what kind of data you use.
On 07/29/2011 04:44 PM, Ana wrote:
> Can someone help me out with a "small" problem?
> I've started using netcdf files recently, and I want to extract the grid id
> and also the coordinates from a HIRHAM netcdf file.
> I know how to extract a slice of dataset both in space and in time and I
> also know the area that this file should cover, however I have no idea
> regarding the reference for both LAT/LON and RLAT/RLON.
> I tried already tried is ArcGIS to give the Lambert Conformal Conic
> projection as the spatial reference, by default arcgis gets the rlat and
> rlon for coordinates. however the resulting raster is displaced from were it
> should be.
> Can someone help me with this?
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> 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