comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » ERROR 31
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
ERROR 31 [message #93743] Tue, 11 October 2016 14:52 Go to next message
John Sofiadis is currently offline  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 #93757 is a reply to message #93743] Wed, 12 October 2016 21:13 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
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
>

I'm not sure what it really means, but the netCDF C header defines the
following:

#define NC_SYSERR (-31)

That seems pretty vague. Does the file exist? Is it really a netCDF file?

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
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
Re: ERROR 31 [message #93759 is a reply to message #93757] Thu, 13 October 2016 06:43 Go to previous message
Phillip Bitzer is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to supress dialog popup when netcdf file is corrupt?
Next Topic: which Video Codec is lossless?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:16:43 PDT 2025

Total time taken to generate the page: 0.00644 seconds