CDF variable read functions.
More...
#include "config.h"
#include "nep_nc4.h"
#include "cdfinternal.h"
#include <cdf.h>
#include <stdio.h>
CDF variable read functions.
- Author
- Edward Hartnett
- Date
- 2025-11-23
- Copyright
- Intelligent Data Design, Inc. All rights reserved.
◆ NC_ECDF
◆ get_nc4type_size()
| 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
-
| ncid | File ID. |
| varid | Variable ID. |
| startp | Array of start indices. |
| countp | Array of counts. |
| ip | pointer that gets the data. |
| memtype | The 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