Skip to content

Commit b178223

Browse files
committed
test files in the right spot this time
1 parent ce55d94 commit b178223

11 files changed

Lines changed: 1089255 additions & 5 deletions

File tree

fremorizer/tests/test_cmor_run_subtool_further_examples.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,6 @@ def test_case_function(testfile_dir,table,opt_var_name,grid_label,start,calendar
8989
indir = testfile_dir
9090
table_file = f'{CMIP6_TABLE_REPO_PATH}/Tables/CMIP6_{table}.json'
9191

92-
# if we can't find the input test file, do an xfail. most likely, you're not at PPAN.
93-
if not Path(indir).exists():
94-
pytest.xfail(f'{opt_var_name}, {Path(table_file).name}, {grid_label} '
95-
'SUCCEEDs on PP/AN at GFDL only! OR testfile_dir does not exist!')
96-
9792
# execute the test
9893
try:
9994
cdl_input_files=glob.glob(indir+'*.'+opt_var_name+'.cdl')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
netcdf land.000101-000512.lai {
2+
dimensions:
3+
bnds = 2 ;
4+
time = UNLIMITED ; // (60 currently)
5+
lat = 2 ;
6+
lon = 2 ;
7+
variables:
8+
double bnds(bnds) ;
9+
bnds:long_name = "vertex number" ;
10+
float lai(time, lat, lon) ;
11+
lai:_FillValue = -1.f ;
12+
lai:missing_value = -1.f ;
13+
lai:units = "m2/m2" ;
14+
lai:long_name = "leaf area index" ;
15+
lai:cell_methods = "area: mean time: mean" ;
16+
lai:cell_measures = "area: soil_area" ;
17+
lai:interp_method = "conserve_order1" ;
18+
double lat(lat) ;
19+
lat:long_name = "latitude" ;
20+
lat:units = "degrees_N" ;
21+
lat:axis = "Y" ;
22+
lat:bounds = "lat_bnds" ;
23+
double lat_bnds(lat, bnds) ;
24+
lat_bnds:long_name = "latitude bounds" ;
25+
lat_bnds:units = "degrees_N" ;
26+
lat_bnds:axis = "Y" ;
27+
double lon(lon) ;
28+
lon:long_name = "longitude" ;
29+
lon:units = "degrees_E" ;
30+
lon:axis = "X" ;
31+
lon:bounds = "lon_bnds" ;
32+
double lon_bnds(lon, bnds) ;
33+
lon_bnds:long_name = "longitude bounds" ;
34+
lon_bnds:units = "degrees_E" ;
35+
lon_bnds:axis = "X" ;
36+
double time(time) ;
37+
time:units = "days since 0001-01-01 00:00:00" ;
38+
time:long_name = "time" ;
39+
time:axis = "T" ;
40+
time:calendar_type = "NOLEAP" ;
41+
time:calendar = "noleap" ;
42+
time:bounds = "time_bnds" ;
43+
double time_bnds(time, bnds) ;
44+
time_bnds:units = "days since 0001-01-01 00:00:00" ;
45+
time_bnds:long_name = "time axis boundaries" ;
46+
47+
// global attributes:
48+
:title = "ESM4.5v01_om5b04_piC" ;
49+
:associated_files = "lake_area: 00050101.land_static.nc glac_area: 00050101.land_static.nc soil_area: 00050101.land_static.nc land_area: 00050101.land_static.nc" ;
50+
:grid_type = "regular" ;
51+
:grid_tile = "N/A" ;
52+
:code_release_version = "2024.02" ;
53+
:git_hash = "b86d27037f755a82c586e55073dd575245c144b1" ;
54+
:creationtime = "Thu Jul 25 14:31:46 2024" ;
55+
:hostname = "pp307" ;
56+
:history = "fregrid --standard_dimension --input_mosaic C96_mosaic.nc --input_file 00050101.land_month --interp_method conserve_order1 --remap_file .fregrid_remap_file_288_by_180.nc --nlon 288 --nlat 180 --scalar_field (**please see the field list in this file**) --weight_file 00050101.land_static --weight_field land_frac --output_file out.nc" ;
57+
:external_variables = "soil_area" ;
58+
data:
59+
60+
bnds = 1, 2 ;
61+
62+
lai =
63+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
64+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
65+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
66+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048,
67+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
68+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
69+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
70+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048,
71+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
72+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
73+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
74+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048,
75+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
76+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
77+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
78+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048,
79+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
80+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
81+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
82+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048,
83+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
84+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
85+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
86+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048,
87+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
88+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
89+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
90+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048,
91+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
92+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
93+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
94+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048,
95+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
96+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
97+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
98+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048,
99+
0.0002842809, 0.0607904, 0.2689194, 0.2739885, 0.3429663, 0.4690287,
100+
0.4658433, 0.5943975, 0.8174095, 0.6366743, 0.6379606, 0.7003256,
101+
0.6130756, 0.4093378, 0.2349773, 0.1486003, 0.1363347, 0.2084315,
102+
0.05512743, 0.0225515, 0.05266139, 0.1297704, 0.4009209, 0.79048;
103+
104+
lat = -89.5, -88.5;
105+
106+
lat_bnds =
107+
-90, -89,
108+
-89, -88;
109+
110+
lon = 0.625, 1.875;
111+
112+
lon_bnds =
113+
0, 1.25,
114+
1.25, 2.5;
115+
116+
time = 15.5, 45, 74.5, 105, 135.5, 166, 196.5, 227.5, 258, 288.5, 319,
117+
349.5, 380.5, 410, 439.5, 470, 500.5, 531, 561.5, 592.5, 623, 653.5, 684,
118+
714.5, 745.5, 775, 804.5, 835, 865.5, 896, 926.5, 957.5, 988, 1018.5,
119+
1049, 1079.5, 1110.5, 1140, 1169.5, 1200, 1230.5, 1261, 1291.5, 1322.5,
120+
1353, 1383.5, 1414, 1444.5, 1475.5, 1505, 1534.5, 1565, 1595.5, 1626,
121+
1656.5, 1687.5, 1718, 1748.5, 1779, 1809.5 ;
122+
123+
time_bnds =
124+
0, 31,
125+
31, 59,
126+
59, 90,
127+
90, 120,
128+
120, 151,
129+
151, 181,
130+
181, 212,
131+
212, 243,
132+
243, 273,
133+
273, 304,
134+
304, 334,
135+
334, 365,
136+
365, 396,
137+
396, 424,
138+
424, 455,
139+
455, 485,
140+
485, 516,
141+
516, 546,
142+
546, 577,
143+
577, 608,
144+
608, 638,
145+
638, 669,
146+
669, 699,
147+
699, 730,
148+
730, 761,
149+
761, 789,
150+
789, 820,
151+
820, 850,
152+
850, 881,
153+
881, 911,
154+
911, 942,
155+
942, 973,
156+
973, 1003,
157+
1003, 1034,
158+
1034, 1064,
159+
1064, 1095,
160+
1095, 1126,
161+
1126, 1154,
162+
1154, 1185,
163+
1185, 1215,
164+
1215, 1246,
165+
1246, 1276,
166+
1276, 1307,
167+
1307, 1338,
168+
1338, 1368,
169+
1368, 1399,
170+
1399, 1429,
171+
1429, 1460,
172+
1460, 1491,
173+
1491, 1519,
174+
1519, 1550,
175+
1550, 1580,
176+
1580, 1611,
177+
1611, 1641,
178+
1641, 1672,
179+
1672, 1703,
180+
1703, 1733,
181+
1733, 1764,
182+
1764, 1794,
183+
1794, 1825 ;
184+
}

0 commit comments

Comments
 (0)