NuSDaS Interface Reference Manual

Error Code of NuSDaS library

All NuSDaS functions in C interface return int, and subroutines in Fortran interface return INTEGER through the last argument.

Meaning of the result code is shown in following table. Please note that the meaning of result code larger than -10 depends on what function you called.

codedescription
-10memory allocation failure
-11bad type1 or type2
-12invalid character in type1/type2/type3
-13non-existent type1/type2/type3
-19data type1/type2 completion table does not found
-20too many definition files are opened
-21definition file not found nor readable
-31too large dataset declared by definition file
-32memory allocation failure
-33lines in definition file are missing or not in correct order
-34malformed ELEMENTMAP specification
-40type1 undefined in definition file
-41type2 undefined in definition file
-42type3 undefined in definition file
-43number of valid times undefined in definition file
-44list of valid times undefined in definition file
-45number of planes undefined in definition file
-46list of planes undefined in definition file
-47number of elements undefined in definition file
-48list of elements undefined in definition file
-49size of grid undefined in definition file
-50invalid base time and valid time combination
-51data file directory not found or mkdir error
-52too many data files are opened
-53cannot create data file
-54NUSD record malformed or unreadable
-55CNTL record malformed or unreadable
-56INDX record malformed or unreadable
-57END record malformed or unreadable
-60I/O error (in datafile initialization)
-61memory allocation error (in datafile initialization)
-62specified data is not allowed by definition file (in datafile initialization)
-63record larger than fixed record size (in datafile initialization)
-64INFO source file specified but not readable
-65cannot write NUSD record (in closing of datafile)
-66cannot write INDX record (in closing of datafile)
-67cannot write END record (in closing of datafile)
-68write into read-only file
-69write into dataset with NRD number 50 or more
-70open error in ES routines
-71write error in ES routines
-72read error in ES routines
-73I/O error in ES routines
-76invalid unit number is used in ES routines
-77I/O error in ES routines
-78the file is not ES.
-79memory allocation failure in ES routines
-99I/O error