Skip to content

HIRHAM netcdf file

2 messages · Ana, Michael Sumner

Ana
#
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.
#
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: