YAC 3.12.0
Yet Another Coupler
Loading...
Searching...
No Matches
test_read_icon_common.h
Go to the documentation of this file.
1// Copyright (c) 2024 The YAC Authors
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
5#ifndef TEST_READ_ICON_COMMON_H
6
7/* the grid file contains the following grid
8 * (numbers == global cell/vertex indices, XX == masked cell)
9 *
10 *00-00-01-02-02-05-03-08-04 ------------------------
11 * \ 00 /\ 11 /\ 12 /\ 13 / \ /\ XX /\ /\ /
12 * 01 03 04 06 07 09 10 11 \ / \ / \ / \ /
13 * \/ 01 \/ 10 \/ 14 \/ \/ \/ XX \/ \/
14 * 05-12-06-14-07-17-08 ------------------
15 * \ 02 /\ 09 /\ 15 / \ /\ XX /\ /
16 * 13 15 16 18 19 20 \ / \ / \ /
17 * \/ 03 \/ 08 \/ \/ \/ XX \/
18 * 09-21-10-23-11 ------------
19 * \ 04 /\ 07 / \ /\ XX /
20 * 22 24 25 26 \ / \ /
21 * \/ 05 \/ \/ \/
22 * 12-27-13 ------
23 * \ 06 / \ /
24 * 28 29 \ /
25 \/ \/
26 * 14
27 */
28
29static double vlon[15] = {-2,-1,0,1,2, -1.5,-0.5,0.5,1.5, -1,0,1, -0.5,0.5, 0};
30static double vlat[15] = {1.5,1.5,1.5,1.5,1.5, 0.5,0.5,0.5,0.5, -0.5,-0.5,-0.5,
31 -1.5,-1.5, -2.5};
32static double clon[16] = {1,1,0,0,-1,-1,-2,-1,0,0,1,1,1,1,1,0};
33static double clat[16] = {-1.5,-1,-1,-0.5,-0.5,0,0,0.5,0.5,0,0,-0.5,0.5,1,1,1.5};
34static int mask[16] = {0,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0};
35
36enum coord_units {DEG = 0, RAD = 1};
37
39 char const * file_name, enum coord_units coord_unit);
40
41
42#endif // TEST_READ_ICON_COMMON_H
char const * file_name
void write_test_grid_file(char const *file_name, enum coord_units coord_unit)
static int mask[16]
static double vlon[15]
static double clon[16]
static double vlat[15]
static double clat[16]