netcdf-c/libdap2/getvara.h

40 lines
1.1 KiB
C
Raw Normal View History

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.
*********************************************************************/
#ifndef GETVARA_H
#define GETVARA_H
/*
Define the overall maximum cache size
and the per-retrieval maximum size
*/
/* Use slightly misspelled names to avoid conflicts */
#define KILOBYTE 0x400
2011-04-18 02:56:10 +08:00
#define MEGBYTE 0x100000
#define GIGBYTE 0x40000000
/* The cache limit is in terms of bytes */
#define DFALTCACHELIMIT (100*MEGBYTE)
/* The fetch limit is in terms of bytes */
#define DFALTFETCHLIMIT (100*KILOBYTE)
2011-04-18 02:56:10 +08:00
/* WARNING: The small limit is in terms of the # of vector elements */
#define DFALTSMALLLIMIT (4096)
2011-04-18 02:56:10 +08:00
/* Max number of cache nodes */
#define DFALTCACHECOUNT (100)
typedef struct Getvara {
void* memory; /* where result is put*/
struct NCcachenode* cache;
struct DCEprojection* varaprojection;
2013-04-24 04:18:16 +08:00
/* associated nc variable*/
nc_type dsttype;
2011-04-18 02:56:10 +08:00
CDFnode* target;
2011-11-14 12:20:19 +08:00
int wholevariable;
2011-04-18 02:56:10 +08:00
} Getvara;
#endif /*GETVARA_H*/