Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove earth shape hard coding for MEPS domains #14

Closed
wants to merge 2 commits into from
Closed

Conversation

tackandr
Copy link
Contributor

When earth shape in Radon is changed for MEPS then hard coded WGS84 fixes in himan need to be removed for everything to work properly. Please have a look but don't merge yet. Please have a look to make sure I didn't miss something. Then we can continue to run himan-tests with this fixed version.

@tackandr tackandr requested a review from mpartio September 25, 2023 10:38
@@ -705,6 +671,10 @@ void WriteAreaAndGrid(NFmiGribMessage& message, const shared_ptr<himan::grid>& g
{
message.SetLongKey("shapeOfTheEarth", 0);
}
else if (earth.A() == 6371229)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also check that A() == B() so we know it's a sphere.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually checked couple of lines above but not part of the diff.

Copy link
Member

@mpartio mpartio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@tackandr tackandr closed this Oct 27, 2023
@tackandr tackandr deleted the STU-22330 branch October 27, 2023 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants