Russ
This is a possible bug report regarding
https://sourceforge.net/projects/nco/forums/forum/9829/topic/8755743
I am using this command
On the function NC_open in dfile.c
There is a variable named version
that is not initialized before being used with this case this causes my compiler to exit (using Windows , Visual Studio)
int NC_open(const char *path, int cmode, int basepe, size_t *chunksizehintp, int useparallel, void* mpi_info, int *ncidp) { int stat = NC_NOERR; NC* ncp = NULL; NC_Dispatch* dispatcher = NULL; /* Need two pieces of information for now */ int model = 0; int isurl = 0; int version; enum FileType filetype;
The error happens because of this use of "version"
else if(model & NC_DISPATCH_NC3) { cmode &= ~NC_NETCDF4; /* must be netcdf-3 */ if(version == 2) cmode |= NC_64BIT_OFFSET;
I tried to initialize
version = 0
to further debug this
/* Pass to OC */ ocstat = oc_open(dapcomm->oc.urltext,&dapcomm->oc.conn);
this call returns no error
these calls
ocerr = ocfetch(state,constraint,dxdkind,flags,&root);
stat = readDDS(state,tree);
return an error code of -13
this call
/* fetch and build the unconstrained DDS for use as template */ ncstat = fetchtemplatemetadata3(dapcomm);
returns a error value of -68
Thanks
Pedro
------------ address@hidden Department of Earth System Science 3200 Croul Hall University of California, Irvine Irvine, CA 92697-3100
Pedro,
Here's the Jira ticket for the bug you reported:
https://bugtracking.unidata.ucar.edu/browse/NCF-247
A CDL file that triggers the bug is now only 13 lines, so I hope to be able to fix this one soon ...
--Russ
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.