ocssw
V2022
|
find_variable.h File Reference
#include "stdlib.h"
#include "netcdf.h"
Include dependency graph for find_variable.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
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) |
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) |
Function Documentation
◆ find_nc_variable_parent_grp_c_interface_id_ncid()
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 traversal)
- Parameters
-
var_name variable name ncid file or group id netcdf_c_var_id output variable nc id netcdf_c_grp_id output parent group nc id. Can be the file root
- Returns
Definition at line 4 of file find_variable.c.
◆ find_nc_variable_possible_names()
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 at line 29 of file find_variable.c.