Closed crangelsmith closed 2 years ago
This is how the new output of the pipeline looks like:
Notice that the directory with the highest level still has the lat,long bounds, but all processed images are now in eastings and northings.
As discussed:
- The bits I've added need tidying up 😱
- Before splitting into chips, confirm that the downloaded image is 1024*1024 and error if not.
- There are some unused imports and functions. These don't have to be dealt with in this PR, but can be identified with:
$ pylint pyveg/src/* | grep W0611
- (Plan B) If we still get lots of downloaded images that are not 1024*1024, then we could try using
rasterio clip
to the downloaded images to real-world coordinates, rather than pixel coordinates.
I've added a fail and logging error if the downloaded images do not have the right size or if the bounds are not the same as the input. It seems to be ok for the cases I have tested.
Also, I've checked that the chips created in the pipeline map to the geoparquet file (using chip_id) and that seems to be working well too :-)
Fixes #8 and #25