GERSL / pycold

Apache License 2.0
19 stars 9 forks source link

KWCoco Proof of Concept #9

Closed Erotemic closed 1 year ago

Erotemic commented 2 years ago

@twin22jw Here is the minimal proof of concept that writes what I believe to be the correct (or close to it) structure for further pycold processing.

I've attempted to comment it heavily to make parsing / extending it easier. Please let me know if there are any questions.

If you have pycold installed, you can execute the doctest example either by copy/pasting it into IPython, or you can run it from the command line by using xdoctest: xdoctest -m pycold.imagetool.prepare_kwcoco

The output should look something like this:

Downloading url='https://data.kitware.com/api/v1/file/6318d19a11dab8142820733f/download' to fpath='/home/joncrall/.cache/ubelt/Aligned-DemoKHQ.zip'
 720351/720351... rate=2579324.50 Hz, eta=0:00:00, total=0:00:00
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20170220T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20170409T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20170612T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20170730T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20170916T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20171002T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20171018T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20171221T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20180530T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20180701T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20180903T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20181005T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
INFO:pycold.imagetool.prepare_kwcoco:Stacked blocked image KHQ_R001/crop_20181208T150000Z_N42.860336W073.779469_N42.869553W073.762668_L8_0
Erotemic commented 1 year ago

Closing, this has been integrated into geowatch: https://gitlab.kitware.com/computer-vision/geowatch