[R-sig-Geo] HIRHAM netcdf file

Michael Sumner mdsumner at gmail.com
Sat Jul 30 02:38:24 CEST 2011

You can use the ncdf (or RNetCDF) package to access all the dimensions
and variables directly from the file.

There is support for netcdf in the raster package, and optionally in
the rgdal package if you compile it. rasters depends on ncdf, and
rgdal on the GDAL driver implementation. Both have to perform the
minimum translation from the NetCDF data model to a GIS-raster-layer
one, and it does depend on details in the file quite a lot.

Cheers, Mike.

On Sat, Jul 30, 2011 at 1:05 AM, Ana <rrasterr at gmail.com> 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?
> Thanks
> A.R.
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Michael Sumner
Institute for Marine and Antarctic Studies, University of Tasmania
Hobart, Australia
e-mail: mdsumner at gmail.com

More information about the R-sig-Geo mailing list