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

station density weighting #712

Open
nicholasloveday opened this issue Oct 23, 2024 · 1 comment
Open

station density weighting #712

nicholasloveday opened this issue Oct 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@nicholasloveday
Copy link
Collaborator

Weather stations are typically not evenly spaced out. It may be important to weight the stations based on network density so that areas with high station density don't overwhelm the final score.

We should build a function that generates these station weights.

We can follow the ECMWF approach in section 9 of https://rmets.onlinelibrary.wiley.com/doi/pdfdirect/10.1002/qj.656

@nicholasloveday
Copy link
Collaborator Author

I've managed to create station density weightings that varies based on a 2D array (e.g., station_number and time dims). It needs to vary due to NaN handling (e.g., there may not be data at some stations at certain timesteps, so those stations should be excluded from the weighting of other stations). The current prototype approach loops through the time dimension and isn't vectorised.

We can to one of the following:

  • implement 1D/2D version
  • extend it to N dimensions (this may be slow if we start looping within loops)
  • someone else has a go at trying to vectorise it

@tennlee tennlee added the enhancement New feature or request label Nov 22, 2024
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

2 participants