Skip to content

Commit 3177845

Browse files
committed
Temporary fix to new atlas error about non-linear interpolation. Add
some input data to the repo so the tests work.
1 parent e03d6e6 commit 3177845

9 files changed

+32
-37
lines changed

src/orca-jedi/geometry/Geometry.cc

-2
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,6 @@ void Geometry::set_gmask(atlas::Field & field) const {
363363
auto field_viewgm = atlas::array::make_view<int32_t, 2>(gmask);
364364
// auto lonlat_view = atlas::array::make_view<double, 2>(funcSpace_.lonlat());
365365

366-
367-
368366
if (has_mv) {
369367
for (atlas::idx_t j = 0; j < field_viewgm.shape(0); ++j) {
370368
for (atlas::idx_t k = 0; k < field_viewgm.shape(1); ++k) {

src/tests/Data/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ amm1r_atlas_grid_spec.yaml
2727
hofx_potm_amm1r_obs.nc
2828
hofx_ssh_amm_obs.nc
2929
sic_obs_ideal.nc
30+
orca2_nicas_grids_local_000001-000001.nc
31+
orca2_nicas_local_000001-000001.nc
3032
)
3133

3234
foreach(FILENAME ${orcajedi_test_data})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:c1dff50df912f216a92eb301a79153d69e344a4ef77cfeaf0b3f2533750f8c35
3+
size 376391
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:cc41eb63fcf58e99c02d8167dfff3b8e384429a9a203d7b3b2dee008dab0d3eb
3+
size 7963989

src/tests/testinput/3dvar_sic.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ cost function:
1414
testing: true
1515
io:
1616
data directory: Data
17-
files prefix: dirac_bump_nicas/test
18-
overriding nicas file: test_nicas
17+
files prefix: dirac_bump_nicas/orca2
18+
overriding nicas file: orca2_nicas
1919
drivers:
2020
multivariate strategy: univariate
2121
read local nicas: true
@@ -38,7 +38,7 @@ cost function:
3838
testing: true
3939
io:
4040
data directory: Data
41-
files prefix: test
41+
files prefix: orca2
4242
drivers:
4343
compute variance: true
4444
variance:
@@ -89,7 +89,7 @@ cost function:
8989
time interpolation: linear
9090
atlas-interpolator:
9191
type: unstructured-bilinear-lonlat
92-
non_linear: missing-if-all-missing
92+
# non_linear: missing-if-all-missing
9393
max_fraction_elems_to_try: 0.0
9494
adjoint: true
9595
obs operator:

src/tests/testinput/bump_nicas_setup.yaml

+1-12
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ background error:
88
testing: true
99
universe length-scale: 40000.0e3
1010
io:
11-
# data directory: Data
1211
data directory: testoutput
13-
files prefix: test
12+
files prefix: orca2
1413
drivers:
1514
compute covariance: false
1615
compute correlation: false
@@ -19,17 +18,7 @@ background error:
1918
write diagnostics: true
2019
compute nicas: true
2120
write local nicas: true
22-
# write global nicas: true
2321
write nicas grids: true
24-
# sampling:
25-
# computation grid size: 500
26-
# diagnostic grid size: 250
27-
# distance classes: 10
28-
# angular sectors: 4
29-
# distance class width: 800.0e3
30-
# reduced levels: 2
31-
# ensemble sizes:
32-
# total ensemble size: 50
3322
model:
3423
do not cross mask boundaries: true
3524
nicas:

src/tests/testinput/dirac.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ background error:
88
testing: true
99
io:
1010
data directory: Data
11-
files prefix: dirac_bump_nicas/test
12-
overriding nicas file: test_nicas
11+
files prefix: dirac_bump_nicas/orca2
12+
overriding nicas file: orca2_nicas
1313
drivers:
1414
multivariate strategy: univariate
1515
read local nicas: true
@@ -33,7 +33,7 @@ background error:
3333
testing: true
3434
io:
3535
data directory: Data
36-
files prefix: test
36+
files prefix: orca2
3737
drivers:
3838
compute variance: true
3939
variance:
+9-9
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
Independent levels: 1[1]
2-
Subset Sc0 size: 26136
2+
Subset Sc0 size: 26460
33
Domain area (% of Earth area): 0.100E+03%
44
Level 1 ~> 100.0%
55
Level 1 ~> 0.100E+01 vert. coord.
66
Independent levels: 1[1]
7-
Subset Sc0 size: 26136
7+
Subset Sc0 size: 26460
88
Domain area (% of Earth area): 0.100E+03%
99
Level 1 ~> 100.0%
1010
Level 1 ~> 0.100E+01 vert. coord.
1111
CostJb : Nonlinear Jb = 0.0000000000000000e+00
12-
CostJo : Nonlinear Jo(Sea Ice) = 1.5000000000000000e+00, nobs = 48, Jo/n = 3.1250000000000000e-02, err = 2.0000000000000000e+00
13-
CostFunction: Nonlinear J = 1.5000000000000000e+00
14-
DRPCGMinimizer: reduction in residual norm = 1.2748291035575463e+02
12+
CostJo : Nonlinear Jo(Sea Ice) = 1.0178967056984216e+08, nobs = 48, Jo/n = 2.1206181368717118e+06, err = 2.0000000000000000e+00
13+
CostFunction: Nonlinear J = 1.0178967056984216e+08
14+
DRPCGMinimizer: reduction in residual norm = 3.8373920435826797e+01
1515
CostFunction::addIncrement: Analysis:
1616
Model state valid at time: 2021-06-29T12:00:00Z
1717
1 variables: ice_area_fraction
1818
atlas field norms:
19-
ice_area_fraction: 3.21124e-03
19+
ice_area_fraction: 2.64715e-01
2020

2121

2222

2323

24-
CostJb : Nonlinear Jb = 0.00000e+00
25-
CostJo : Nonlinear Jo(Sea Ice) = 8.72908e-01, nobs = 48, Jo/n = 1.81856e-02, err = 2.00000e+00
26-
CostFunction: Nonlinear J = 8.72908e-01
24+
CostJb : Nonlinear Jb = -2.51949e-03
25+
CostJo : Nonlinear Jo(Sea Ice) = 1.00960e+08, nobs = 48, Jo/n = 2.10333e+06, err = 2.00000e+00
26+
CostFunction: Nonlinear J = 1.00960e+08

src/tests/testoutput/test_dirac.ref

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ Input Dirac increment:Increment valid at time: 2021-06-30T12:00:00Z
44
ice_area_fraction num: 26553 mean: 3.76605e-05 rms: 6.13682e-03 min: 0.00000e+00 max: 1.00000e+00
55

66
Independent levels: 1[1]
7-
Subset Sc0 size: 26136
8-
Domain area (% of Earth area): 0.643E+02%
9-
Level 1 ~> 64.3%
7+
Subset Sc0 size: 26460
8+
Domain area (% of Earth area): 0.642E+02%
9+
Level 1 ~> 64.2%
1010
Level 1 ~> 0.100E+01 vert. coord.
1111
Independent levels: 1[1]
12-
Subset Sc0 size: 26136
13-
Domain area (% of Earth area): 0.643E+02%
14-
Level 1 ~> 64.3%
12+
Subset Sc0 size: 26460
13+
Domain area (% of Earth area): 0.642E+02%
14+
Level 1 ~> 64.2%
1515
Level 1 ~> 0.100E+01 vert. coord.
1616
Covariance(SABER) * Increment:Increment valid at time: 2021-06-30T12:00:00Z
1717
1 variables: ice_area_fraction
1818
atlas field:
19-
ice_area_fraction num: 26553 mean: -1.17187e+38 rms: 1.97685e+38 min: -3.33477e+38 max: 1.00000e+00
19+
ice_area_fraction num: 17074 mean: 9.21018e-03 rms: 7.51883e-02 min: 0.00000e+00 max: 1.00000e+00
2020

0 commit comments

Comments
 (0)