YAC 3.13.0
Yet Another Coupler
Loading...
Searching...
No Matches
read_woa_data.h
Go to the documentation of this file.
1// Copyright (c) 2024 The YAC Authors
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
5#ifndef WOA_DATA_H
6#define WOA_DATA_H
7
8#include <stdlib.h>
9
10// YAC PUBLIC HEADER START
11
42
49int yac_open_woa_output ( char const * input_file );
50
55void yac_close_woa_output ( int fileId );
56
63void yac_read_woa_dimensions ( int fileId, char const * fieldName,
64 struct yac_fieldMetadata * fieldInfo );
65
72double * yac_get_woa_memory(struct yac_fieldMetadata fieldInfo );
73
78void yac_free_woa_memory(double * data);
79
89 int fileId, double * cell_data, struct yac_fieldMetadata fieldInfo,
90 int timestep, int level);
91
92// YAC PUBLIC HEADER STOP
93
94#endif // WOA_DATA_H
95
const char * fieldName[]
void yac_close_woa_output(int fileId)
void yac_read_woa_timestep_level(int fileId, double *cell_data, struct yac_fieldMetadata fieldInfo, int timestep, int level)
int yac_open_woa_output(char const *input_file)
void yac_read_woa_dimensions(int fileId, char const *fieldName, struct yac_fieldMetadata *fieldInfo)
double * yac_get_woa_memory(struct yac_fieldMetadata fieldInfo)
void yac_free_woa_memory(double *data)
int latDimIdx
dimension index from NetCDF containing the latitude
int lonDimIdx
dimension index from NetCDF containing the longitude
size_t nbrLatPoints
number of latitude cells contained in the NetCDF file
int timeDimIdx
dimension index from NetCDF containing the time
size_t nbrTimeSteps
number of timesteps contained in the NetCDF file
int levelDimIdx
dimension index from NetCDF containing the vertical
size_t nbrLonPoints
number of longitude cells contained in the NetCDF file
size_t nbrLevels
number of vertical levels/layers contained in the NetCDF file
int varId
NetCDF variable ID.
double * data