YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
generate_OASIS_mask_file.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <netcdf.h>
#include "yac_core.h"
Include dependency graph for generate_OASIS_mask_file.c:

Go to the source code of this file.

Functions

static void get_grid_dimensions (char const *grids_file_name, char const *grid_names[], size_t count, size_t(*grid_sizes)[2])
 
static int create_mask_file (char const *ocean_grid_name, char const **atmos_grid_names, size_t atmo_count, size_t(*atmo_grid_sizes)[2], double threshold, int(*var_ids)[2])
 
static double * read_interp_field (char const *path, char const *ocean_grid_name, char const *atmo_grid_name, size_t atmo_size, double const threshold)
 
static void write_mask (int ncid, int var_ids[2], double *frac, int *mask)
 

Function Documentation

◆ create_mask_file()

static int create_mask_file ( char const * ocean_grid_name,
char const ** atmos_grid_names,
size_t atmo_count,
size_t(*) atmo_grid_sizes[2],
double threshold,
int(*) var_ids[2] )
static

Definition at line 116 of file generate_OASIS_mask_file.c.

◆ get_grid_dimensions()

static void get_grid_dimensions ( char const * grids_file_name,
char const * grid_names[],
size_t count,
size_t(*) grid_sizes[2] )
static

Definition at line 84 of file generate_OASIS_mask_file.c.

Here is the call graph for this function:

◆ read_interp_field()

static double * read_interp_field ( char const * path,
char const * ocean_grid_name,
char const * atmo_grid_name,
size_t atmo_size,
double const threshold )
static

Definition at line 192 of file generate_OASIS_mask_file.c.

Here is the call graph for this function:

◆ write_mask()

static void write_mask ( int ncid,
int var_ids[2],
double * frac,
int * mask )
static

Definition at line 264 of file generate_OASIS_mask_file.c.