Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Land-cover-map example: sentinelhub_service.py", line 133, in _add_data valid_mask = data[..., -1] IndexError: index -1 is out of bounds for axis 0 with size 0 #9
This is related to the 'Land Use and Land Cover (LULC) classification' example - more specifically
I've tried multiple locations and have so far observed this with USA (California, Texas, Nevada, Maine), also North Korea. The time interval was usually set across several months in 2018, but changing it didn't seem to affect anything, so it might be related to location or the shapefiles coming from
Hi @kvigulis! The problem is related to the geojson file that you use. It has coordinates, but no CRS is defined. I assume this is in the national CRS for california, which would seem to be
In this case, it works for me and I'm able to obtain image data without any errors.
Thank you @mlubej. You're absolutely right. This was caused by incorrect CRS setting, when generating the shape file for bboxes of patches. Didn't know the idea behind UTM CRS.
For any beginner who stumbles upon this - GeoJson files will often use UTM CRS, which will be different depending on which zone/area of the Earth is described. So you have to set the UTM with the correct zone in