On Thu, 14 Jun 2007, Thomas Szegvary wrote:
> I am using the RNetCDF package to extract data from netcdf files. I've got a
> nc file (from an atmospheric model) with coordinates as the following:
>> dim(lon)
> [1] 67 46
>> dim(lat)
> [1] 67 46
>
> I suppose the lon and lat values are given to grid
Try extracting the unique coordinates as vectors,
e.g.
x <- sort(unique(lon))
y <- sort(unique(lat))
filled.contour(x, y, z100)
The sensibility of that depends on the numeric uniqueness of your
coordinates, if length(x) and length(y) are not now equal to** the
corresponding dim(z100) then tha
I am using the RNetCDF package to extract data from netcdf files. I've got a
nc file (from an atmospheric model) with coordinates as the following:
>dim(lon)
[1] 67 46
> dim(lat)
[1] 67 46
I suppose the lon and lat values are given to grid points. If I get the
variables and plot(lon,lat) it shows