Handling a polar singular with conservative regridding? #325
Replies: 5 comments
-
@michaelerb there are a few options to deal with the poles. first make sure you use periodic=True then try ignore_degenerate=True |
Beta Was this translation helpful? Give feedback.
-
Hi @raphaeldussin. Thanks for the suggestions. Unfortunately, neither one fixed the problem. Are there any other suggestions? |
Beta Was this translation helpful? Give feedback.
-
can you post a small example (ideally that do not need real data) that reproduces the problem? |
Beta Was this translation helpful? Give feedback.
-
Hi @michaelerb, this might be the same issue I encountered here #157, which I could avoid by providing the bounds for the input dataset myself (so they would not be calculated implicitly and possibly exceed [-90, 90] degrees latitude) or using the |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestions @sol1105. The "conservative_normed" option seems to work, although I don't quite understand why. I haven't tried the other options yet, but I will soon. @sol1105 or @raphaeldussin: For global climate model output (quantities like monthly temperature or precipitation), is there a recommended approach? To provide more information about my original question, here's some python code which reproduces the problem I described using sample data. I've also attached an image of the figure this code produces. As you can see, the original data has a value of 1 everywhere, but the values at the north and south poles are around 2 (although not exactly). Code to reproduce problem
Output of code above |
Beta Was this translation helpful? Give feedback.
-
Hi. I am trying to regrid some model data, but I'm having trouble at the poles. The model data is on a rectangular lat/lon grid with latitude values which range from -90 to 90. All values at 90 are the same (ditto -90), as would be expected, since they're all the same location. When I try to regrid using conservative regridding, I get a message that my latitude values are outside of [-90,90], and the regridded values at the poles are wrong. They're approximately twice the expected value. Perhaps the code thinks that the gridboxes at the poles should actually span the pole, thereby doubling them up? At any rate, what the best solution to this? Is there an option I should be using when regridded? Or should I just not be using the conservative regridding? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions