FMS  2024.03
Flexible Modeling System
read_mosaic.c File Reference

(f703b82972701a4e32a46d4d44a15f9fc2debb27)

Support for reading mosaic netcdf grid files. More...

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "read_mosaic.h"
#include "constant.h"
#include "mosaic_util.h"
#include <netcdf.h>
Include dependency graph for read_mosaic.c:

Go to the source code of this file.

Macros

#define MAXVAR   40
 

Functions

int field_exist (const char *file, const char *name)
 
int get_dimlen (const char *file, const char *name)
 
void get_file_dir (const char *file, char *dir)
 
double get_global_area (void)
 
double get_global_area_ (void)
 
void get_string_data (const char *file, const char *name, char *data)
 
void get_string_data_level (const char *file, const char *name, char *data, const unsigned int *level)
 
void get_var_data (const char *file, const char *name, void *data)
 
void get_var_data_region (const char *file, const char *name, const size_t *start, const size_t *nread, void *data)
 
void get_var_text_att (const char *file, const char *name, const char *attname, char *att)
 
void handle_netcdf_error (const char *msg, int status)
 
void read_mosaic_contact (const char *mosaic_file, int *tile1, int *tile2, int *istart1, int *iend1, int *jstart1, int *jend1, int *istart2, int *iend2, int *jstart2, int *jend2)
 
void read_mosaic_contact_ (const char *mosaic_file, int *tile1, int *tile2, int *istart1, int *iend1, int *jstart1, int *jend1, int *istart2, int *iend2, int *jstart2, int *jend2)
 
void read_mosaic_grid_data (const char *mosaic_file, const char *name, int nx, int ny, double *data, unsigned int level, int ioff, int joff)
 
void read_mosaic_grid_sizes (const char *mosaic_file, int *nx, int *ny)
 
void read_mosaic_grid_sizes_ (const char *mosaic_file, int *nx, int *ny)
 
int read_mosaic_ncontacts (const char *mosaic_file)
 
int read_mosaic_ncontacts_ (const char *mosaic_file)
 
int read_mosaic_ntiles (const char *mosaic_file)
 
int read_mosaic_ntiles_ (const char *mosaic_file)
 
void read_mosaic_xgrid_order1 (const char *xgrid_file, int *i1, int *j1, int *i2, int *j2, double *area)
 
void read_mosaic_xgrid_order1_ (const char *xgrid_file, int *i1, int *j1, int *i2, int *j2, double *area)
 
void read_mosaic_xgrid_order1_region (const char *xgrid_file, int *i1, int *j1, int *i2, int *j2, double *area, int *isc, int *iec)
 
void read_mosaic_xgrid_order1_region_ (const char *xgrid_file, int *i1, int *j1, int *i2, int *j2, double *area, int *isc, int *iec)
 
void read_mosaic_xgrid_order2 (const char *xgrid_file, int *i1, int *j1, int *i2, int *j2, double *area, double *di, double *dj)
 
void read_mosaic_xgrid_order2_ (const char *xgrid_file, int *i1, int *j1, int *i2, int *j2, double *area, double *di, double *dj)
 
int read_mosaic_xgrid_size (const char *xgrid_file)
 
int read_mosaic_xgrid_size_ (const char *xgrid_file)
 
int transfer_to_model_index (int istart_in, int iend_in, int *istart_out, int *iend_out, int refine_ratio)
 

Detailed Description

Support for reading mosaic netcdf grid files.

Definition in file read_mosaic.c.