Skip to content

Commit

Permalink
MIR-664 no interpolation without "grid", tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pmaciel committed May 30, 2024
1 parent f46a4a5 commit a339bc1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/mir/key/style/ECMWFStyle.cc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,14 @@ static std::string target_gridded_from_parametrisation(const param::MIRParametri
return "points";
}

if (user.has("area") || rotation) {
if (user.has("area")) {
if (field.has("gridded_regular_ll") && user.has("grid") && !same_points(user, field)) {
check_rotated_regular_ll();
return prefix + "regular-ll";
}
}

if (rotation) {
if (field.has("gridded_regular_ll") && !same_points(user, field)) {
check_rotated_regular_ll();
return prefix + "regular-ll";
Expand Down

0 comments on commit a339bc1

Please sign in to comment.