NASA Logo
Ocean Color Science Software

ocssw V2022
find_variable.h
Go to the documentation of this file.
1 #ifndef FIND_VARIABLE_H
2 #define FIND_VARIABLE_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 #include "stdlib.h"
7 #include "netcdf.h"
8 
17 int32_t find_nc_variable_parent_grp_c_interface_id_ncid(const char* var_name, int32_t ncid,
18  int32_t* netcdf_c_var_id, int32_t* netcdf_c_grp_id);
19 int32_t find_nc_variable_possible_names(const char * possible_names[], int32_t number_of_names, int32_t ncid,
20  int32_t* netcdf_c_var_id, int32_t* netcdf_c_grp_id, int32_t * file_index_name );
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #endif
int32_t find_nc_variable_parent_grp_c_interface_id_ncid(const char *var_name, int32_t ncid, int32_t *netcdf_c_var_id, int32_t *netcdf_c_grp_id)
Recursively searches for a netcdf variable within an NC file or group. Search is recursive ( DFS tree...
Definition: find_variable.c:4
int32_t find_nc_variable_possible_names(const char *possible_names[], int32_t number_of_names, int32_t ncid, int32_t *netcdf_c_var_id, int32_t *netcdf_c_grp_id, int32_t *file_index_name)
Definition: find_variable.c:29