[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20021209: Error message
- Subject: Re: 20021209: Error message
- Date: Mon, 09 Dec 2002 12:50:12 -0700
>To: address@hidden
>From: Matt Pocernich <address@hidden>
>Subject: Error message.
>Organization: UCAR/Unidata
>Keywords: 200212091637.gB9GbR416745
Hi Matt,
> Hello, I receive the following error when trying to open a netCDF file in
> R. From the following, can you tell if the problem lies in my commands or
> in the file. How would I specify a dimension vector?
You can check if the file is OK by using the ncdump program. ncdump
is one of the utility programs that comes with the netCDF
distribution. A simple check would just use the "-c" option to just
dump the structure of the netCDF data and its coordinate variables (if
any), for example:
ncdump -c /scratch/pocernic/int_fcst.20021201.0010.nc
If there are no errors emitted by ncdump, then the file is probably
fine.
I haven't used the R interface to access netCDF data, but doesn't the
read command require more arguments to specify which variable is being
read? Something like:
read.netCDF(aaa, name="dewpt")
although I don't know the right R syntax for providing a variable
name. The R documentation contains no examples, so I can't be much
more help with using it ...
--Russ