NetCDF  4.6.1
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages
nc4var.c File Reference

This file is part of netcdf-4, a netCDF-like interface for HDF5, or a HDF5 backend for netCDF, depending on your point of view. More...

#include <nc4internal.h>
#include "nc4dispatch.h"
#include <math.h>

Go to the source code of this file.

Macros

#define DEFAULT_1D_UNLIM_SIZE   (4096)
 
#define NC_ARRAY_GROWBY   4
 
#define NC_SZIP_EC_OPTION_MASK   4
 
#define NC_SZIP_MAX_PIXELS_PER_BLOCK   32
 
#define NC_SZIP_NN_OPTION_MASK   32
 

Functions

static int check_chunksizes (NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var, const size_t *chunksizes)
 
int NC4_def_var (int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp, int *varidp)
 
int NC4_def_var_chunking (int ncid, int varid, int contiguous, const size_t *chunksizesp)
 
int NC4_def_var_deflate (int ncid, int varid, int shuffle, int deflate, int deflate_level)
 
int NC4_def_var_endian (int ncid, int varid, int endianness)
 
int NC4_def_var_fill (int ncid, int varid, int no_fill, const void *fill_value)
 
int NC4_def_var_filter (int ncid, int varid, unsigned int id, size_t nparams, const unsigned int *parms)
 
int NC4_def_var_fletcher32 (int ncid, int varid, int fletcher32)
 
static int nc4_find_default_chunksizes2 (NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var)
 
int nc4_get_default_fill_value (const NC_TYPE_INFO_T *type_info, void *fill_value)
 
int NC4_get_var_chunk_cache (int ncid, int varid, size_t *sizep, size_t *nelemsp, float *preemptionp)
 
int NC4_get_vara (int ncid, int varid, const size_t *startp, const size_t *countp, void *ip, int memtype)
 Read an array of values. More...
 
int NC4_inq_var_all (int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp, int *shufflep, int *deflatep, int *deflate_levelp, int *fletcher32p, int *contiguousp, size_t *chunksizesp, int *no_fill, void *fill_valuep, int *endiannessp, unsigned int *idp, size_t *nparamsp, unsigned int *params)
 
int NC4_inq_varid (int ncid, const char *name, int *varidp)
 
int NC4_put_vara (int ncid, int varid, const size_t *startp, const size_t *countp, const void *op, int memtype)
 
int NC4_rename_var (int ncid, int varid, const char *name)
 
int nc4_reopen_dataset (NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var)
 
int NC4_set_var_chunk_cache (int ncid, int varid, size_t size, size_t nelems, float preemption)
 
int NC4_var_par_access (int ncid, int varid, int par_access)
 
int nc4_vararray_add (NC_GRP_INFO_T *grp, NC_VAR_INFO_T *var)
 
int nc_def_var_chunking_ints (int ncid, int varid, int contiguous, int *chunksizesp)
 
static int nc_def_var_extra (int ncid, int varid, int *shuffle, int *deflate, int *deflate_level, int *fletcher32, int *contiguous, const size_t *chunksizes, int *no_fill, const void *fill_value, int *endianness)
 
int nc_get_var_chunk_cache_ints (int ncid, int varid, int *sizep, int *nelemsp, int *preemptionp)
 
int nc_inq_var_chunking_ints (int ncid, int varid, int *contiguousp, int *chunksizesp)
 
int nc_set_var_chunk_cache_ints (int ncid, int varid, int size, int nelems, int preemption)
 

Detailed Description

This file is part of netcdf-4, a netCDF-like interface for HDF5, or a HDF5 backend for netCDF, depending on your point of view.

This file handles the NetCDF-4 variable functions.

Copyright 2003-2006, University Corporation for Atmospheric Research. See COPYRIGHT file for copying and redistribution conditions.

Definition in file nc4var.c.

Function Documentation

int NC4_def_var_filter ( int  ncid,
int  varid,
unsigned int  id,
size_t  nparams,
const unsigned int *  parms 
)

HAVE_H5Z_SZIP

Definition at line 1413 of file nc4var.c.

int NC4_get_vara ( int  ncid,
int  varid,
const size_t *  startp,
const size_t *  countp,
void *  ip,
int  memtype 
)

Read an array of values.

This is called by nc_get_vara() for netCDF-4 files, as well as all the other nc_get_vara_* functions.

Parameters
ncidFile ID.
varidVariable ID.
startpArray of start indicies.
countpArray of counts.
ippointer that gets the data.
memtypeThe type of these data after it is read into memory.
Returns
NC_NOERR for success
Author
Ed Hartnett, Dennis Heimbigner

Definition at line 1773 of file nc4var.c.


Return to the Main Unidata NetCDF page.
Generated on Fri May 11 2018 21:24:00 for NetCDF. NetCDF is a Unidata library.