Replies: 2 comments 2 replies
-
Hi @fllamorim, thanks for your question. There's no "official" way to do so (yet), but there is a workaround that I think will provide what you need. If you run To add the other metadata into that, you could do the following:
If there's interest in making this a more 'official' feature, I recommend opening an issue and encourage PRs :) |
Beta Was this translation helpful? Give feedback.
-
Dear Kevin, Thank you very much for your answer. It helped me to advance a little. This is my grid and shapefile. And these are the overlap values: Why do I have no ones (1) in my coverage percentage? If you do not mind, I am sharing my grid and shapefile with you. Sorry, another question is: do you have any idea how to reconstruct the dependent lat lon matrix from the rel_area 'loc'? This would be exactly what I need. xarray.DataArray Coordinates:
I am really sorry if this is a lot, but your library was the closest I found to solve my problem. Best regards, Felipe |
Beta Was this translation helpful? Give feedback.
-
I would like to save the weightmap class as xarray dataarray, so I can use the indexing to access the percentage of grid covered by a shapefile.
Is it possible?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions