2014-03-25 04:02:52 +08:00
|
|
|
/*********************************************************************
|
2018-12-07 05:21:03 +08:00
|
|
|
* Copyright 2018, UCAR/Unidata
|
2014-03-25 04:02:52 +08:00
|
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
|
|
*********************************************************************/
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
#include "dapincludes.h"
|
2014-03-25 04:02:52 +08:00
|
|
|
|
|
|
|
#ifdef HAVE_GETRLIMIT
|
|
|
|
# ifdef HAVE_SYS_RESOURCE_H
|
|
|
|
# include <sys/time.h>
|
|
|
|
# endif
|
|
|
|
# ifdef HAVE_SYS_RESOURCE_H
|
|
|
|
# include <sys/resource.h>
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "oclog.h"
|
|
|
|
|
|
|
|
#include "nc3internal.h"
|
|
|
|
#include "nc3dispatch.h"
|
|
|
|
#include "ncd2dispatch.h"
|
2017-03-09 08:01:10 +08:00
|
|
|
#include "ncoffsets.h"
|
2014-03-25 04:02:52 +08:00
|
|
|
#include "dapdump.h"
|
|
|
|
|
|
|
|
static NCerror buildncstructures(NCDAPCOMMON*);
|
|
|
|
static NCerror builddims(NCDAPCOMMON*);
|
|
|
|
static NCerror buildvars(NCDAPCOMMON*);
|
|
|
|
static NCerror buildglobalattrs(NCDAPCOMMON*,CDFnode* root);
|
|
|
|
|
|
|
|
|
|
|
|
static char* getdefinename(CDFnode* node);
|
|
|
|
|
|
|
|
static int ncd2initialized = 0;
|
|
|
|
|
|
|
|
|
|
|
|
/**************************************************/
|
|
|
|
/* Add an extra function whose sole purpose is to allow
|
|
|
|
configure(.ac) to test for the presence of thiscode.
|
|
|
|
*/
|
|
|
|
int nc__opendap(void) {return 0;}
|
|
|
|
|
|
|
|
|