geowatch.tasks.cold.assemble_cold_result_kwcoco module

This is step 4/4 in predict.py

SeeAlso:

predict.py

prepare_kwcoco.py

tile_processing_kwcoco.py

export_cold_result_kwcoco.py

assemble_cold_result_kwcoco.py *

class geowatch.tasks.cold.assemble_cold_result_kwcoco.AssembleColdKwcocoConfig(*args, **kwargs)[source]

Bases: DataConfig

TODO: write docs

Valid options: []

Parameters:
  • *args – positional arguments for this data config

  • **kwargs – keyword arguments for this data config

default = {'coco_fpath': <Value(None)>, 'coefs': <Value(None)>, 'coefs_bands': <Value(None)>, 'cold_time_span': <Value('1year')>, 'combine': <Value(True)>, 'combined_coco_fpath': <Value(None)>, 'exclude_first': <Value(True)>, 'mod_coco_fpath': <Value(None)>, 'reccg_path': <Value(None)>, 'resolution': <Value('30GSD')>, 'sensors': <Value('L8')>, 'stack_path': <Value(None)>, 'timestamp': <Value(False)>, 'write_kwcoco': <Value(True)>, 'year_highbound': <Value(None)>, 'year_lowbound': <Value(None)>}
geowatch.tasks.cold.assemble_cold_result_kwcoco.assemble_main(cmdline=1, **kwargs)[source]

_summary_

Parameters:

cmdline (int, optional) – _description_. Defaults to 1.

Example:

>>> # xdoctest: +REQUIRES(env:TEST_COLD)
>>> from geowatch.tasks.cold.assemble_cold_result_kwcoco import assemble_main
>>> from geowatch.tasks.cold.assemble_cold_result_kwcoco import *
>>> kwargs= dict(
>>>    stack_path = "/gpfs/scratchfs1/zhz18039/jws18003/new-repos/smart_data_dvc2/Drop6-MeanYear10GSD-V2/_pycold/stacked/KR_R001/",
>>>    reccg_path = "/gpfs/scratchfs1/zhz18039/jws18003/new-repos/smart_data_dvc2/Drop6-MeanYear10GSD-V2/_pycold/reccg/KR_R001/",
>>>    coco_fpath = ub.Path('/gpfs/scratchfs1/zhz18039/jws18003/new-repos/smart_data_dvc2/Drop6/imgonly-KR_R001.kwcoco.json'),
>>>    mod_coco_fpath = ub.Path('/gpfs/scratchfs1/zhz18039/jws18003/new-repos/smart_data_dvc2/Drop6/imgonly_KR_R001_cold.kwcoco.zip'),
>>>    combined_coco_fpath = ub.Path('/gpfs/scratchfs1/zhz18039/jws18003/new-repos/smart_data_dvc2/Drop6-MeanYear10GSD-V2/imgonly-KR_R001.kwcoco.zip'),
>>>    coefs = 'cv,rmse,a0,a1,b1,c1',
>>>    year_lowbound = None,
>>>    year_highbound = None,
>>>    coefs_bands = '0,1,2,3,4,5',
>>>    timestamp = False,
>>>    combine = True,
>>>    sensors = 'L8',
>>>    resolution = '10GSD',
>>>    )
>>> cmdline=0
>>> assemble_main(cmdline, **kwargs)
geowatch.tasks.cold.assemble_cold_result_kwcoco.get_gdal_transform(coco_dset, sensor_name, resolution=None)[source]
geowatch.tasks.cold.assemble_cold_result_kwcoco.read_json_metadata(stacked_path)[source]