-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mlee03
authored and
mlee03
committed
May 24, 2024
1 parent
30894a0
commit b8a7e57
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/*********************************************************************** | ||
* GNU Lesser General Public License | ||
* | ||
* This file is part of the GFDL FRE NetCDF tools package (FRE-NCTools). | ||
* | ||
* FRE-NCtools is free software: you can redistribute it and/or modify it under | ||
* the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or (at | ||
* your option) any later version. | ||
* | ||
* FRE-NCtools is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with FRE-NCTools. If not, see | ||
* <http://www.gnu.org/licenses/>. | ||
**********************************************************************/ | ||
#ifndef GLOBALS_ACC_H_ | ||
#define GLOBALS_ACC_H_ | ||
#include "globals.h" | ||
#include "parameters.h" | ||
|
||
typedef struct { | ||
int nxcells; | ||
int *input_parent_lon_indices; | ||
int *input_parent_lat_indices; | ||
int *output_parent_lon_indices; | ||
int *output_parent_lat_indices; | ||
double *xcell_area; | ||
double *dcentroid_lon; | ||
double *dcentroid_lat; | ||
} Xinfo_per_input_tile; | ||
|
||
typedef struct { | ||
size_t nxcells; | ||
int *input_parent_lon_indices; | ||
int *input_parent_lat_indices; | ||
int *output_parent_lon_indices; | ||
int *output_parent_lat_indices; | ||
int *input_parent_tile; | ||
double *dcentroid_lon; | ||
double *dcentroid_lat; | ||
Xinfo_per_input_tile *per_intile; | ||
double *xcell_area; | ||
double *weight; | ||
int *index; | ||
char remap_file[STRING]; | ||
int file_exist; | ||
} Xgrid_config; | ||
|
||
//Will be removed | ||
typedef struct { | ||
double *lon_min; | ||
double *lon_max; | ||
double *lat_min; | ||
double *lat_max; | ||
double *lon_cent; | ||
int *n_vertices; | ||
double **lon_vertices; | ||
double **lat_vertices; | ||
double *recomputed_area; | ||
double *centroid_lon; | ||
double *centroid_lat; | ||
int skip_cells; | ||
|
||
} Grid_cells_struct_config; | ||
|
||
|
||
#endif |