ERROR 31 [message #93743] |
Tue, 11 October 2016 14:52  |
John Sofiadis
Messages: 5 Registered: October 2016
|
Junior Member |
|
|
i have written a program in order to read a nc file..i am sure tha the path is correct,complile is ok,but when it runs occurs an error,called error-31,at third line(the line where i command opening thw nc file)..???thanks in advance
|
|
|
|
Re: ERROR 31 [message #93759 is a reply to message #93757] |
Thu, 13 October 2016 06:43  |
Phillip Bitzer
Messages: 223 Registered: June 2006
|
Senior Member |
|
|
On Wednesday, October 12, 2016 at 11:13:50 PM UTC-5, Michael Galloy wrote:
> On 10/11/16 3:52 PM, John Sofiadis wrote:
>> i have written a program in order to read a nc file..i am sure tha
>> the path is correct,complile is ok,but when it runs occurs an
>> error,called error-31,at third line(the line where i command opening
>> thw nc file)..???thanks in advance
>>
>
> Update: I tried to open a non-existent file:
>
> IDL> id = ncdf_open('test.nc')
> % Loaded DLM: NCDF.
> % NCDF_OPEN: Unable to open the file "test.nc". (NC_ERROR=-31)
>
> Mike
http://lmgtfy.com/?q=idl+netcdf+error+31
Are you _really_ sure the path is correct?
I've found that things like '~' for the home directory are not resolved by the ncdf routines.
|
|
|