FV3 Bundle
create_xgrid.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAXXGRID   1e6
 
#define MV   50
 

Functions

double grid_box_radius (const double *x, const double *y, const double *z, int n)
 
double dist_between_boxes (const double *x1, const double *y1, const double *z1, int n1, const double *x2, const double *y2, const double *z2, int n2)
 
int inside_edge (double x0, double y0, double x1, double y1, double x, double y)
 
int line_intersect_2D_3D (double *a1, double *a2, double *q1, double *q2, double *q3, double *intersect, double *u_a, double *u_q, int *inbound)
 
double poly_ctrlon (const double lon[], const double lat[], int n, double clon)
 
double poly_ctrlat (const double lon[], const double lat[], int n)
 
double box_ctrlon (double ll_lon, double ll_lat, double ur_lon, double ur_lat, double clon)
 
double box_ctrlat (double ll_lon, double ll_lat, double ur_lon, double ur_lat)
 
int get_maxxgrid (void)
 
int get_maxxgrid_ (void)
 
void get_grid_area (const int *nlon, const int *nlat, const double *lon, const double *lat, double *area)
 
void get_grid_great_circle_area (const int *nlon, const int *nlat, const double *lon, const double *lat, double *area)
 
void get_grid_area_dimensionless (const int *nlon, const int *nlat, const double *lon, const double *lat, double *area)
 
void get_grid_area_no_adjust (const int *nlon, const int *nlat, const double *lon, const double *lat, double *area)
 
int clip (const double lon_in[], const double lat_in[], int n_in, double ll_lon, double ll_lat, double ur_lon, double ur_lat, double lon_out[], double lat_out[])
 
int clip_2dx2d (const double lon1_in[], const double lat1_in[], int n1_in, const double lon2_in[], const double lat2_in[], int n2_in, double lon_out[], double lat_out[])
 
int create_xgrid_1dx2d_order1 (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area)
 
int create_xgrid_1dx2d_order1_ (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area)
 
int create_xgrid_1dx2d_order2 (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area, double *xgrid_clon, double *xgrid_clat)
 
int create_xgrid_1dx2d_order2_ (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area, double *xgrid_clon, double *xgrid_clat)
 
int create_xgrid_2dx1d_order1 (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area)
 
int create_xgrid_2dx1d_order1_ (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area)
 
int create_xgrid_2dx1d_order2 (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area, double *xgrid_clon, double *xgrid_clat)
 
int create_xgrid_2dx1d_order2_ (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area, double *xgrid_clon, double *xgrid_clat)
 
int create_xgrid_2dx2d_order1 (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area)
 
int create_xgrid_2dx2d_order2 (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area, double *xgrid_clon, double *xgrid_clat)
 
int clip_2dx2d_great_circle (const double x1_in[], const double y1_in[], const double z1_in[], int n1_in, const double x2_in[], const double y2_in[], const double z2_in [], int n2_in, double x_out[], double y_out[], double z_out[])
 
int create_xgrid_great_circle (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area, double *xgrid_clon, double *xgrid_clat)
 
void get_grid_area_ug (const int *npts, const double *lon, const double *lat, double *area)
 
int create_xgrid_1dx2d_order1_ug (const int *nlon_in, const int *nlat_in, const int *npts_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *l_out, double *xgrid_area)
 
void get_grid_great_circle_area_ug (const int *npts, const double *lon, const double *lat, double *area)
 
int create_xgrid_great_circle_ug (const int *nlon_in, const int *nlat_in, const int *npts_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *l_out, double *xgrid_area, double *xgrid_clon, double *xgrid_clat)
 
void get_grid_area_ (const int *nlon, const int *nlat, const double *lon, const double *lat, double *area)
 
void get_grid_great_circle_area_ (const int *nlon, const int *nlat, const double *lon, const double *lat, double *area)
 
int create_xgrid_2dx2d_order1_ (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area)
 
int create_xgrid_2dx2d_order2_ (const int *nlon_in, const int *nlat_in, const int *nlon_out, const int *nlat_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *i_out, int *j_out, double *xgrid_area, double *xgrid_clon, double *xgrid_clat)
 
void get_grid_area_ug_ (const int *npts, const double *lon, const double *lat, double *area)
 
int create_xgrid_1dx2d_order1_ug_ (const int *nlon_in, const int *nlat_in, const int *npts_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *l_out, double *xgrid_area)
 
void get_grid_great_circle_area_ug_ (const int *npts, const double *lon, const double *lat, double *area)
 
int create_xgrid_great_circle_ug_ (const int *nlon_in, const int *nlat_in, const int *npts_out, const double *lon_in, const double *lat_in, const double *lon_out, const double *lat_out, const double *mask_in, int *i_in, int *j_in, int *l_out, double *xgrid_area, double *xgrid_clon, double *xgrid_clat)
 

Macro Definition Documentation

◆ MAXXGRID

#define MAXXGRID   1e6

Definition at line 23 of file create_xgrid.h.

◆ MV

#define MV   50

Definition at line 26 of file create_xgrid.h.

Function Documentation

◆ box_ctrlat()

double box_ctrlat ( double  ll_lon,
double  ll_lat,
double  ur_lon,
double  ur_lat 
)

Definition at line 2448 of file create_xgrid.c.

◆ box_ctrlon()

double box_ctrlon ( double  ll_lon,
double  ll_lat,
double  ur_lon,
double  ur_lat,
double  clon 
)

Definition at line 2463 of file create_xgrid.c.

◆ clip()

int clip ( const double  lon_in[],
const double  lat_in[],
int  n_in,
double  ll_lon,
double  ll_lat,
double  ur_lon,
double  ur_lat,
double  lon_out[],
double  lat_out[] 
)

Definition at line 1337 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clip_2dx2d()

int clip_2dx2d ( const double  lon1_in[],
const double  lat1_in[],
int  n1_in,
const double  lon2_in[],
const double  lat2_in[],
int  n2_in,
double  lon_out[],
double  lat_out[] 
)

Definition at line 1444 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clip_2dx2d_great_circle()

int clip_2dx2d_great_circle ( const double  x1_in[],
const double  y1_in[],
const double  z1_in[],
int  n1_in,
const double  x2_in[],
const double  y2_in[],
const double  z2_in[],
int  n2_in,
double  x_out[],
double  y_out[],
double  z_out[] 
)

Definition at line 1754 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_1dx2d_order1()

int create_xgrid_1dx2d_order1 ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area 
)

Definition at line 287 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_1dx2d_order1_()

int create_xgrid_1dx2d_order1_ ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area 
)

Definition at line 275 of file create_xgrid.c.

Here is the call graph for this function:

◆ create_xgrid_1dx2d_order1_ug()

int create_xgrid_1dx2d_order1_ug ( const int *  nlon_in,
const int *  nlat_in,
const int *  npts_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  l_out,
double *  xgrid_area 
)

Definition at line 391 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_1dx2d_order1_ug_()

int create_xgrid_1dx2d_order1_ug_ ( const int *  nlon_in,
const int *  nlat_in,
const int *  npts_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  l_out,
double *  xgrid_area 
)

Definition at line 379 of file create_xgrid.c.

Here is the call graph for this function:

◆ create_xgrid_1dx2d_order2()

int create_xgrid_1dx2d_order2 ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area,
double *  xgrid_clon,
double *  xgrid_clat 
)

Definition at line 490 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_1dx2d_order2_()

int create_xgrid_1dx2d_order2_ ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area,
double *  xgrid_clon,
double *  xgrid_clat 
)

Definition at line 479 of file create_xgrid.c.

Here is the call graph for this function:

◆ create_xgrid_2dx1d_order1()

int create_xgrid_2dx1d_order1 ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area 
)

Definition at line 591 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_2dx1d_order1_()

int create_xgrid_2dx1d_order1_ ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area 
)

Definition at line 579 of file create_xgrid.c.

Here is the call graph for this function:

◆ create_xgrid_2dx1d_order2()

int create_xgrid_2dx1d_order2 ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area,
double *  xgrid_clon,
double *  xgrid_clat 
)

Definition at line 693 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_2dx1d_order2_()

int create_xgrid_2dx1d_order2_ ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area,
double *  xgrid_clon,
double *  xgrid_clat 
)

Definition at line 681 of file create_xgrid.c.

Here is the call graph for this function:

◆ create_xgrid_2dx2d_order1()

int create_xgrid_2dx2d_order1 ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area 
)

Definition at line 801 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_2dx2d_order1_()

int create_xgrid_2dx2d_order1_ ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area 
)

Definition at line 788 of file create_xgrid.c.

Here is the call graph for this function:

◆ create_xgrid_2dx2d_order2()

int create_xgrid_2dx2d_order2 ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area,
double *  xgrid_clon,
double *  xgrid_clat 
)

Definition at line 1071 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_2dx2d_order2_()

int create_xgrid_2dx2d_order2_ ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area,
double *  xgrid_clon,
double *  xgrid_clat 
)

Definition at line 1059 of file create_xgrid.c.

Here is the call graph for this function:

◆ create_xgrid_great_circle()

int create_xgrid_great_circle ( const int *  nlon_in,
const int *  nlat_in,
const int *  nlon_out,
const int *  nlat_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  i_out,
int *  j_out,
double *  xgrid_area,
double *  xgrid_clon,
double *  xgrid_clat 
)

Definition at line 1527 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_great_circle_ug()

int create_xgrid_great_circle_ug ( const int *  nlon_in,
const int *  nlat_in,
const int *  npts_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  l_out,
double *  xgrid_area,
double *  xgrid_clon,
double *  xgrid_clat 
)

Definition at line 1643 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_xgrid_great_circle_ug_()

int create_xgrid_great_circle_ug_ ( const int *  nlon_in,
const int *  nlat_in,
const int *  npts_out,
const double *  lon_in,
const double *  lat_in,
const double *  lon_out,
const double *  lat_out,
const double *  mask_in,
int *  i_in,
int *  j_in,
int *  l_out,
double *  xgrid_area,
double *  xgrid_clon,
double *  xgrid_clat 
)

Definition at line 1630 of file create_xgrid.c.

Here is the call graph for this function:

◆ dist_between_boxes()

double dist_between_boxes ( const double *  x1,
const double *  y1,
const double *  z1,
int  n1,
const double *  x2,
const double *  y2,
const double *  z2,
int  n2 
)

Definition at line 2540 of file create_xgrid.c.

◆ get_grid_area()

void get_grid_area ( const int *  nlon,
const int *  nlat,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 64 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_grid_area_()

void get_grid_area_ ( const int *  nlon,
const int *  nlat,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 58 of file create_xgrid.c.

Here is the call graph for this function:

◆ get_grid_area_dimensionless()

void get_grid_area_dimensionless ( const int *  nlon,
const int *  nlat,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 219 of file create_xgrid.c.

Here is the call graph for this function:

◆ get_grid_area_no_adjust()

void get_grid_area_no_adjust ( const int *  nlon,
const int *  nlat,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 245 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_grid_area_ug()

void get_grid_area_ug ( const int *  npts,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 100 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_grid_area_ug_()

void get_grid_area_ug_ ( const int *  npts,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 94 of file create_xgrid.c.

Here is the call graph for this function:

◆ get_grid_great_circle_area()

void get_grid_great_circle_area ( const int *  nlon,
const int *  nlat,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 132 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_grid_great_circle_area_()

void get_grid_great_circle_area_ ( const int *  nlon,
const int *  nlat,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 125 of file create_xgrid.c.

Here is the call graph for this function:

◆ get_grid_great_circle_area_ug()

void get_grid_great_circle_area_ug ( const int *  npts,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 181 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_grid_great_circle_area_ug_()

void get_grid_great_circle_area_ug_ ( const int *  npts,
const double *  lon,
const double *  lat,
double *  area 
)

Definition at line 174 of file create_xgrid.c.

Here is the call graph for this function:

◆ get_maxxgrid()

int get_maxxgrid ( void  )

Definition at line 42 of file create_xgrid.c.

Here is the caller graph for this function:

◆ get_maxxgrid_()

int get_maxxgrid_ ( void  )

Definition at line 47 of file create_xgrid.c.

Here is the call graph for this function:

◆ grid_box_radius()

double grid_box_radius ( const double *  x,
const double *  y,
const double *  z,
int  n 
)

Definition at line 2516 of file create_xgrid.c.

◆ inside_edge()

int inside_edge ( double  x0,
double  y0,
double  x1,
double  y1,
double  x,
double  y 
)

Definition at line 2567 of file create_xgrid.c.

Here is the caller graph for this function:

◆ line_intersect_2D_3D()

int line_intersect_2D_3D ( double *  a1,
double *  a2,
double *  q1,
double *  q2,
double *  q3,
double *  intersect,
double *  u_a,
double *  u_q,
int *  inbound 
)

Definition at line 2194 of file create_xgrid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ poly_ctrlat()

double poly_ctrlat ( const double  lon[],
const double  lat[],
int  n 
)

Definition at line 2364 of file create_xgrid.c.

Here is the caller graph for this function:

◆ poly_ctrlon()

double poly_ctrlon ( const double  lon[],
const double  lat[],
int  n,
double  clon 
)

Definition at line 2395 of file create_xgrid.c.

Here is the caller graph for this function: