NEP 2.7.0
NetCDF Extension Pack
Loading...
Searching...
No Matches
Macros | Functions
cdfvar.c File Reference

CDF variable read functions. More...

#include "config.h"
#include "nep_nc4.h"
#include "cdfdispatch.h"
#include <cdf.h>
#include <stdio.h>

Macros

#define NC_ECDF   (-1000)
 

Functions

static size_t get_nc4type_size (nc_type type)
 
int NC_CDF_get_vara (int ncid, int varid, const size_t *startp, const size_t *countp, void *ip, int memtype)
 

Detailed Description

CDF variable read functions.

Author
Edward Hartnett
Date
2025-11-23

Macro Definition Documentation

◆ NC_ECDF

#define NC_ECDF   (-1000)

Function Documentation

◆ get_nc4type_size()

static size_t get_nc4type_size ( nc_type  type)
static

◆ NC_CDF_get_vara()

int NC_CDF_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. CDF files are handled as a special case.

Parameters
ncidFile ID.
varidVariable ID.
startpArray of start indices.
countpArray of counts.
ippointer that gets the data.
memtypeThe type of these data after it is read into memory.
Returns
NC_NOERR for success.
NC_EBADID Bad ncid.
NC_EINVAL Invalid input.
NC_ECDF CDF library error.
NC_ENOMEM Out of memory.
Author
Edward Hartnett