Least worse way to interpolate a few data points to a gridded region? #640
Replies: 3 comments 4 replies
-
This paper may be of use. Code is all in R however. Mark Risser and Michael Wehner (2020) The effect of geographic sampling on evaluation of extreme precipitation in high resolution climate models. Advances in Statistical Climatology, Meteorology and Oceanography 6, 115–139, https://doi.org/10.5194/ascmo-6-115-2020 |
Beta Was this translation helpful? Give feedback.
-
Thanks @mfwehner for the reference! I will forward it to people who do model-data comparison But here, I'm more looking for some Python recipe that would allow interns or beginning PhD students to interpolate their sample/observation data points to some grid, in a way that would be slightly less quick and dirty than I know it would still be quick and dirty, but it would be an improvement |
Beta Was this translation helpful? Give feedback.
-
@pochedls Thanks! Finding out the closest model point to a data point (preferably on a sphere) is also a use case we have from time to time. I did that a long time ago in a quick and dirty way (use array syntax to quickly compute the straight-line distance between the data point and all the model points, assuming they are not too far way, and get the index of the point where the distance is smallest) But my question here is more: interpolating to go from a few scattered data points to some (regular or irregular) grid |
Beta Was this translation helpful? Give feedback.
-
Question criteria
Describe your question
This may not be the right place to ask, but my question is not covered by the Horizontal Regridding example.
I talked with one of our PhD students this morning, and he told me that he was using
scipy
(scipy.interpolate.griddata I think) to interpolate data from a few scattered observation points to a gridded domain. This did not seem like the correct way to go. Although the target gridded area was small (some sub-region of the French Alps), so the fact thatscipy
does not know it is interpolating data on a sphere probably does not matter too much.I feel this may be linked to the upscaling/downscaling/kriging bag of worms that we possibly don't want to open (and that I don't really understand), but maybe having a few hints for students (and others) could be useful
Thanks!
Are there are any possible answers you came across?
No response
Minimal Complete Verifiable Example (MVCE)
No response
Relevant log output
No response
Environment
No response
Anything else we need to know?
No response
Beta Was this translation helpful? Give feedback.
All reactions