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