Skip to content

Commit

Permalink
GridInfo.cc edited online with Bitbucket
Browse files Browse the repository at this point in the history
Correct gg metadata
  • Loading branch information
geier1993 committed Jan 2, 2025
1 parent 7954a7e commit fcceeb3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/multio/action/encode-grib2/GridInfo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -230,17 +230,17 @@ void BaseGaussianGridInfoCreationPolicy::fromCodes(BaseGaussianGridInfo& info, c
try {
info.n = md.get<std::int64_t>("N");

info.latitudeOfFirstGridPointInDegrees = md.get<double>("longitudeOfLastGridPointInDegrees");
info.longitudeOfFirstGridPointInDegrees = md.get<double>("longitudeOfLastGridPointInDegrees");
info.latitudeOfLastGridPointInDegrees = md.get<double>("longitudeOfLastGridPointInDegrees");
info.latitudeOfFirstGridPointInDegrees = md.get<double>("latitudeOfFirstGridPointInDegrees");
info.longitudeOfFirstGridPointInDegrees = md.get<double>("longitudeOfFirstGridPointInDegrees");
info.latitudeOfLastGridPointInDegrees = md.get<double>("latitudeOfLastGridPointInDegrees");
info.longitudeOfLastGridPointInDegrees = md.get<double>("longitudeOfLastGridPointInDegrees");
}
catch (const message::MetadataException& err) {
std::ostringstream oss;
oss << "Base GaussianGridInfo creator ::fromCodes: Require keys \"n\" (int64)";
oss << ", \"longitudeOfLastGridPointInDegrees\" (double)";
oss << ", \"longitudeOfLastGridPointInDegrees\" (double)";
oss << ", \"longitudeOfLastGridPointInDegrees\" (double)";
oss << ", \"latitudeOfFirstGridPointInDegrees\" (double)";
oss << ", \"longitudeOfFirstGridPointInDegrees\" (double)";
oss << ", \"latitudeOfLastGridPointInDegrees\" (double)";
oss << ", \"longitudeOfLastGridPointInDegrees\" (double)";
oss << " to prepare a codes sample. Otherwise pass down \"" << ATLAS_NAMED_GRID_KEY
<< "\" to retrieve all information from atlas.";
Expand Down

0 comments on commit fcceeb3

Please sign in to comment.