Closed bilelomrani1 closed 4 years ago
I think this issue is also resolved by the fix for #233 (also mind the comment on needing a header line in your file).
However, be aware that your mask may be way too detailed. Especially if you want to match it against satellite pixels, I would recommend to use a much lower resolution bounding polygon of the area that you want to match against; the more points you have in your area, the slower the area filter in HARP is going to be.
You're right, I realized that this detailed mask is not interacting very well with harp
so I ended up using the simplify
method of geopandas
. Thank you for your help
I want to exclude measurements using a mask file and the
area_intersects_area
command. I use the following command with Python:Here is the first polygon in
mask_file.csv
:I get the following exception:
This surprises me because the list of coordinates was obtained using the
.exterior
method ofshapely
so it shouldn't overlap. Here is a visualisation of the geometry in a Jupyter notebook.The
.is_valid
method returns True and according to theshapely
documentation:Am I missing something?