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

Bnb/dev #106

Merged
merged 13 commits into from
Oct 25, 2022
Merged

Bnb/dev #106

merged 13 commits into from
Oct 25, 2022

Conversation

bnb32
Copy link
Collaborator

@bnb32 bnb32 commented Oct 24, 2022

Added lat/lon padding to aid in interpolation. Added correction for when lons pass through 180 -> -180 boundary. Refactored stats class.

x = np.concatenate([[x[0] - 10 / lr_x], x, [x[-1] + 10 / lr_x]])

# remesh (0, 10) with high res spacing
new_y = np.arange(0, 10, 10 / hr_y) + 5 / hr_y
Copy link
Member

Choose a reason for hiding this comment

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

I thought we still needed the RBFInterpolator for non-regular grids? Will linear interp of gridpoints be inaccurate for that funky WRF projection?

Copy link
Collaborator Author

@bnb32 bnb32 Oct 25, 2022

Choose a reason for hiding this comment

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

No the griddata method works for general unstructured grids. The main problem using it was that it doesnt extrapolate, which is why I added the padding.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also, linear interpolation still works for the weird grid if the method uses only local neighbors.

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha, sounds good!

@bnb32 bnb32 merged commit dde1767 into main Oct 25, 2022
@bnb32 bnb32 deleted the bnb/dev branch October 25, 2022 17:44
github-actions bot pushed a commit that referenced this pull request Oct 25, 2022
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.

None yet

2 participants