2011-04-18 02:56:10 +08:00
|
|
|
/*********************************************************************
|
2018-12-07 05:21:03 +08:00
|
|
|
* Copyright 2018, UCAR/Unidata
|
2011-04-18 02:56:10 +08:00
|
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
|
|
*********************************************************************/
|
2017-03-09 08:01:10 +08:00
|
|
|
#ifndef DAPINCLUDES_H
|
|
|
|
#define DAPINCLUDES_H 1
|
2011-04-18 02:56:10 +08:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdlib.h>
|
2012-09-21 00:31:31 +08:00
|
|
|
#ifdef HAVE_UNISTD_H
|
2011-04-18 02:56:10 +08:00
|
|
|
#include <unistd.h>
|
2012-09-21 00:31:31 +08:00
|
|
|
#endif
|
2011-04-18 02:56:10 +08:00
|
|
|
#include <string.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
#include "netcdf.h"
|
|
|
|
|
2011-04-18 02:56:10 +08:00
|
|
|
#include "ncbytes.h"
|
|
|
|
#include "nclist.h"
|
|
|
|
#include "nclog.h"
|
2012-08-09 07:15:18 +08:00
|
|
|
#include "ncuri.h"
|
2012-08-01 04:34:13 +08:00
|
|
|
|
2012-03-26 09:34:32 +08:00
|
|
|
#include "fbits.h"
|
2011-04-18 02:56:10 +08:00
|
|
|
#include "dceconstraints.h"
|
|
|
|
|
|
|
|
#include "ncdispatch.h"
|
2012-09-07 03:44:03 +08:00
|
|
|
#include "nc.h"
|
|
|
|
#include "nc3internal.h"
|
2011-04-18 02:56:10 +08:00
|
|
|
/* netcdf overrides*/
|
|
|
|
#include "dapnc.h"
|
|
|
|
|
2013-02-26 12:31:06 +08:00
|
|
|
#include "oc.h"
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
#include "ncdap.h"
|
2021-02-01 12:40:08 +08:00
|
|
|
#include "nccommon.h"
|
2011-04-18 02:56:10 +08:00
|
|
|
#include "dapdebug.h"
|
|
|
|
#include "daputil.h"
|
|
|
|
|
|
|
|
/**************************************************/
|
|
|
|
/* sigh, do the forwards */
|
|
|
|
struct NCprojection;
|
|
|
|
struct NCselection;
|
|
|
|
struct Getvara;
|
|
|
|
struct NCcachenode;
|
|
|
|
struct NCcache;
|
|
|
|
struct NCslice;
|
|
|
|
struct NCsegment;
|
|
|
|
|
|
|
|
/**************************************************/
|
|
|
|
|
|
|
|
#include "getvara.h"
|
2014-03-25 04:02:52 +08:00
|
|
|
#include "constraints.h"
|
2011-04-18 02:56:10 +08:00
|
|
|
|
|
|
|
/**************************************************/
|
|
|
|
|
|
|
|
extern struct NCTMODEL nctmodels[];
|
|
|
|
|
|
|
|
/**************************************************/
|
|
|
|
/* Import some internal procedures from libsrc*/
|
|
|
|
|
2012-04-02 04:15:06 +08:00
|
|
|
/* Internal, but non-static procedures */
|
2014-03-25 04:02:52 +08:00
|
|
|
extern NCerror computecdfvarnames(NCDAPCOMMON*,CDFnode*,NClist*);
|
|
|
|
extern NCerror computecdfnodesets(NCDAPCOMMON* nccomm, CDFtree* tree);
|
|
|
|
extern NCerror computevarnodes(NCDAPCOMMON*, NClist*, NClist*);
|
2011-04-18 02:56:10 +08:00
|
|
|
extern NCerror collectvardefdims(NCDAPCOMMON* drno, CDFnode* var, NClist* dimset);
|
2014-03-25 04:02:52 +08:00
|
|
|
extern NCerror fixgrids(NCDAPCOMMON* drno);
|
|
|
|
extern NCerror dapmerge(NCDAPCOMMON* drno, CDFnode* node, OCobject dasroot);
|
|
|
|
extern NCerror sequencecheck(NCDAPCOMMON* drno);
|
|
|
|
extern NCerror computecdfdimnames(NCDAPCOMMON*);
|
|
|
|
extern NCerror attachdatadds(struct NCDAPCOMMON*);
|
|
|
|
extern NCerror detachdatadds(struct NCDAPCOMMON*);
|
2011-04-18 02:56:10 +08:00
|
|
|
extern void dapdispatch3init(void);
|
|
|
|
|
|
|
|
/*
|
2014-03-25 04:02:52 +08:00
|
|
|
extern void dereference(NCconstraint* constraint);
|
|
|
|
extern NCerror rereference(NCconstraint*, NClist*);
|
2011-04-18 02:56:10 +08:00
|
|
|
*/
|
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern NCerror dapbuildvaraprojection(CDFnode*,
|
2011-04-18 02:56:10 +08:00
|
|
|
const size_t* startp, const size_t* countp, const ptrdiff_t* stridep,
|
|
|
|
struct DCEprojection** projectionlist);
|
|
|
|
|
|
|
|
extern NCerror nc3d_getvarx(int ncid, int varid,
|
|
|
|
const size_t *startp,
|
|
|
|
const size_t *countp,
|
|
|
|
const ptrdiff_t *stridep,
|
|
|
|
void *data,
|
|
|
|
nc_type dsttype0);
|
|
|
|
|
|
|
|
/**************************************************/
|
|
|
|
|
|
|
|
extern NCerror nc3d_open(const char* path, int mode, int* ncidp);
|
|
|
|
extern int nc3d_close(int ncid);
|
2015-01-16 05:19:51 +08:00
|
|
|
extern NCerror restruct(NCDAPCOMMON*, CDFnode* ddsroot, CDFnode* pattern, NClist*);
|
2011-09-16 00:57:16 +08:00
|
|
|
extern void setvisible(CDFnode* root, int visible);
|
2014-03-25 04:02:52 +08:00
|
|
|
extern NCerror mapnodes(CDFnode* dstroot, CDFnode* srcroot);
|
|
|
|
extern void unmap(CDFnode* root);
|
|
|
|
|
|
|
|
#if 0
|
2015-01-16 05:19:51 +08:00
|
|
|
extern NCerror fetchpatternmetadata(NCDAPCOMMON* nccomm);
|
2014-03-25 04:02:52 +08:00
|
|
|
extern NCerror fetchconstrainedmetadata(NCDAPCOMMON* nccomm);
|
|
|
|
extern void applyclientparamcontrols(NCDAPCOMMON*);
|
|
|
|
extern NCerror suppressunusablevars(NCDAPCOMMON*);
|
|
|
|
extern void estimatevarsizes(NCDAPCOMMON*);
|
|
|
|
extern NCerror showprojection(NCDAPCOMMON*, CDFnode* var);
|
|
|
|
#endif
|
2011-04-18 02:56:10 +08:00
|
|
|
|
|
|
|
/* From: dapcvt.c*/
|
2014-03-25 04:02:52 +08:00
|
|
|
extern NCerror dapconvert(nc_type, nc_type, char*, char*, size_t);
|
2018-10-02 05:51:43 +08:00
|
|
|
extern int dapcvtattrval(nc_type, void*, NClist*, NCattribute*);
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
#endif /*DAPINCLUDES_H*/
|