2014-12-25 01:22:47 +08:00
|
|
|
/*********************************************************************
|
2018-12-07 05:21:03 +08:00
|
|
|
* Copyright 2018, UCAR/Unidata
|
2014-12-25 01:22:47 +08:00
|
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
|
|
*********************************************************************/
|
2014-03-25 04:02:52 +08:00
|
|
|
#ifndef CONSTRAINTS_H
|
|
|
|
#define CONSTRAINTS_H 1
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern NCerror dapparsedapconstraints(NCDAPCOMMON*, char*, DCEconstraint*);
|
|
|
|
extern NCerror dapmapconstraints(DCEconstraint*,CDFnode*);
|
|
|
|
extern NCerror dapqualifyconstraints(DCEconstraint* constraint);
|
|
|
|
extern NCerror dapcomputeprojectedvars(NCDAPCOMMON*,DCEconstraint*);
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern char* dapsimplepathstring(NClist* segments, char* separator);
|
|
|
|
extern void dapmakesegmentstring(NClist* segments, NCbytes* buf, char* separator);
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern int dapiswholeslice(DCEslice*, struct CDFnode* dim);
|
|
|
|
extern int dapiswholesegment(DCEsegment*);
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern int dapiswholeconstraint(DCEconstraint* con);
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern void dapmakewholesegment(DCEsegment*,struct CDFnode*);
|
|
|
|
extern void dapmakewholeslice(DCEslice* slice, struct CDFnode* dim);
|
2011-04-18 02:56:10 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
extern NCerror dapfixprojections(NClist* list);
|
2011-11-14 12:20:19 +08:00
|
|
|
|
|
|
|
extern int dapvar2projection(CDFnode* var, DCEprojection** projectionp);
|
|
|
|
extern int daprestrictprojection(NClist* projections, DCEprojection* var, DCEprojection** resultp);
|
|
|
|
extern int dapshiftprojection(DCEprojection*);
|
|
|
|
|
2014-03-25 04:02:52 +08:00
|
|
|
#endif /*CONSTRAINTS_H*/
|