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

Add a new preprocessor to extend the functionality #161

Open
geek-yang opened this issue Feb 22, 2023 · 0 comments
Open

Add a new preprocessor to extend the functionality #161

geek-yang opened this issue Feb 22, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@geek-yang
Copy link
Member

Following the suggestions from PR #152, we need a new preprocessor to provide the following options to the user:

  • spatial selection (so selecting a certain spatial extent with lat and lon)
  • regridding
  • apply land/sea mask

Hint for implementation:

  • spatial selection da.sel(lat=slice(20, 30), lon=slice(110, 140))
  • for regridding, we can do simple interpolation with da.interp() or da.interp_like(), and for complex ones with xesmf (e.g. regridder = xe.Regridder(ds, ds_out, "bilinear") and then ds_out = regridder(ds))
  • apply land/sea mask da.where(np.isnan(mask))

And more importantly, as a user, I would need a preprocessor that can deal with NaN in different ways (e.g. interpolation, mean, etc).

@geek-yang geek-yang added the enhancement New feature or request label Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant