You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey folks,
I'm working with unequal spaced data and want to regularise using rioxarrays reproject_match(). For that I extract lan/lot, the desired variable and create a new DataArray with that. Afterwards I create a dummy DataArray with the target grid. In the last step I'm using reproject_match() to project the irregular grid to the target grid. But when executing reproject_match() I get: "ValueError: IndexVariable objects must be 1-dimensional".
I did:
Thank you very much for your reply. Your suggested solution only works at first glance. It produces an array with a lot of artefacts. I guess its a result of the interpolation method. From the look of it, it's linear interpolated which doesn't work well if you have a lot of NaN's in your data. In addition to that it is very slow. It takes nearly sixty times the time compared to R's terra approach.
That works, thank you! But still the solution takes a lot of time (1 m 4 s vs. 1.2 s) and is therefore unsuitable for bulk processing. I adapted your solution as follows:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hey folks,
I'm working with unequal spaced data and want to regularise using rioxarrays
reproject_match(). For that I extract lan/lot, the desired variable and create a new DataArray with that. Afterwards I create a dummy DataArray with the target grid. In the last step I'm usingreproject_match()to project the irregular grid to the target grid. But when executingreproject_match()I get: "ValueError: IndexVariable objects must be 1-dimensional".I did:
I would like to understand why the error happens and also (obviously) how to fix it.
All reactions