YetAnotherCoupler 3.5.2
|
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <netcdf.h>
#include "yac_utils.h"
Go to the source code of this file.
Macros | |
#define | YAC_RAD (0.01745329251994329576923690768489) |
#define | STR_USAGE "Usage: %s -n grid_name -f grid_filename -o vtk_filename\n" |
#define | YAC_ASSERT(exp, msg) |
#define | YAC_ASSERT_F(exp, format, ...) |
Functions | |
static void | parse_arguments (int argc, char **argv, char const **grid_filename, char const **grid_name, char const **vtk_filename) |
static void | read_grid_file (char const *grid_filename, char const *grid_name, size_t *nv, size_t *nc, double **clon, double **clat, double **vlon, double **vlat, int **gid, int **cmk, int **rnk) |
static void | write_vtk_file (char const *vtk_filename, char const *grid_name, size_t nv, size_t nc, double *clon, double *clat, double *vlon, double *vlat, int *gid, int *cmk, int *rnk) |
int | main (int argc, char **argv) |
static double * | read_coords (int ncid, int varid, size_t varlen) |
static int * | read_int (int ncid, int varid, size_t varlen) |
static void | LLtoXYZ (double lon, double lat, double p_out[]) |
Variables | |
static char const * | cmd |
#define STR_USAGE "Usage: %s -n grid_name -f grid_filename -o vtk_filename\n" |
Definition at line 22 of file debug_grid2vtk.c.
#define YAC_ASSERT | ( | exp, | |
msg ) |
Definition at line 24 of file debug_grid2vtk.c.
#define YAC_ASSERT_F | ( | exp, | |
format, | |||
... ) |
Definition at line 32 of file debug_grid2vtk.c.
#define YAC_RAD (0.01745329251994329576923690768489) |
Definition at line 19 of file debug_grid2vtk.c.
|
static |
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 55 of file debug_grid2vtk.c.
|
static |
|
static |
Definition at line 83 of file debug_grid2vtk.c.
|
static |
Definition at line 103 of file debug_grid2vtk.c.
|
static |
|
static |
Definition at line 207 of file debug_grid2vtk.c.
|
static |
Definition at line 21 of file debug_grid2vtk.c.