FV3 Bundle
|
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "read_mosaic.h"
#include "constant.h"
#include "mosaic_util.h"
Go to the source code of this file.
Macros | |
#define | MAXVAR 40 |
Functions | |
void | handle_netcdf_error (const char *msg, int status) |
void | get_file_dir (const char *file, char *dir) |
int | field_exist (const char *file, const char *name) |
int | get_dimlen (const char *file, const char *name) |
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) |
int | read_mosaic_xgrid_size_ (const char *xgrid_file) |
int | read_mosaic_xgrid_size (const char *xgrid_file) |
double | get_global_area (void) |
double | get_global_area_ (void) |
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_ntiles_ (const char *mosaic_file) |
int | read_mosaic_ntiles (const char *mosaic_file) |
int | read_mosaic_ncontacts_ (const char *mosaic_file) |
int | read_mosaic_ncontacts (const char *mosaic_file) |
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) |
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) |
int | transfer_to_model_index (int istart_in, int iend_in, int *istart_out, int *iend_out, int refine_ratio) |
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) |
#define MAXVAR 40 |
int field_exist | ( | const char * | file, |
const char * | name | ||
) |
Definition at line 69 of file read_mosaic.c.
int get_dimlen | ( | const char * | file, |
const char * | name | ||
) |
Definition at line 102 of file read_mosaic.c.
void get_file_dir | ( | const char * | file, |
char * | dir | ||
) |
double get_global_area | ( | void | ) |
double get_global_area_ | ( | void | ) |
Definition at line 419 of file read_mosaic.c.
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 | ||
) |
Definition at line 186 of file read_mosaic.c.
void get_var_data | ( | const char * | file, |
const char * | name, | ||
void * | data | ||
) |
Definition at line 228 of file read_mosaic.c.
void get_var_data_region | ( | const char * | file, |
const char * | name, | ||
const size_t * | start, | ||
const size_t * | nread, | ||
void * | data | ||
) |
Definition at line 288 of file read_mosaic.c.
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 | ||
) |
Definition at line 34 of file read_mosaic.c.
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 | ||
) |
Definition at line 728 of file read_mosaic.c.
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 | ||
) |
Definition at line 656 of file read_mosaic.c.
void read_mosaic_grid_sizes_ | ( | const char * | mosaic_file, |
int * | nx, | ||
int * | ny | ||
) |
int read_mosaic_ncontacts | ( | const char * | mosaic_file | ) |
Definition at line 630 of file read_mosaic.c.
int read_mosaic_ncontacts_ | ( | const char * | mosaic_file | ) |
int read_mosaic_ntiles | ( | const char * | mosaic_file | ) |
Definition at line 609 of file read_mosaic.c.
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 | ||
) |
Definition at line 446 of file read_mosaic.c.
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 | ||
) |
Definition at line 497 of file read_mosaic.c.
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 | ||
) |
Definition at line 559 of file read_mosaic.c.
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 | ) |
Definition at line 391 of file read_mosaic.c.
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 | ||
) |
Definition at line 696 of file read_mosaic.c.