Skip to content

Commit

Permalink
Per #3087, tweak logic to handle '*' and fix resolve regression test …
Browse files Browse the repository at this point in the history
…differences.
  • Loading branch information
JohnHalleyGotway committed Feb 18, 2025
1 parent 53c960b commit 2001d67
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/libcode/vx_data2d_nc_met/var_info_nc_met.cc
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,17 @@ void VarInfoNcMet::set_magic(const ConcatString &nstr, const ConcatString &lstr)
// Otherwise, assume (*,*) level dimensions
else {

// MET #3087 Store the level string for U/V vector level matching
if(lstr.nonempty()) {
Level.set_req_name(lstr.c_str());
Level.set_name(lstr.c_str());
}
else {
// MET #3087 Set the level name string:
// - If empty or '*' from Point2Grid, set to *,* to indicate gridded output
// - If nonempty, use the input level string to support U/V vector level matching
if(lstr.empty() || lstr == "*") {
Level.set_req_name("*,*");
Level.set_name("*,*");
}
else {
Level.set_req_name(lstr.c_str());
Level.set_name(lstr.c_str());
}
Dimension.clear();
Dimension.add(vx_data2d_star);
Dimension.add(vx_data2d_star);
Expand Down

0 comments on commit 2001d67

Please sign in to comment.