Code configuration

Configuration for the YAML file that will help us generate our zonal histograms.

input_files: List of lists of paths to SIT_FUSE output files.

shp_files: List of lists of paths to shape files, whose index corresponds to the SIT FUSE output file they represent.

out_file (str): Name of the JSON file to be passed into QGIS.

Important note: For the input files, make sure to use both single AND double quotes around each path, otherwise the zonal histogram tool won't function properly.

Important note 2: Make sure each sublist (index) in the input_files corresponds to a sublist (index) in the shp_files (AKA there should be the same number of sublists in the input_files as in the shp_files.

If every GeoTiff has a unique label, then there should be the same number of sublists/indices in both lists. (e.g. 1 demonstrates this formatting)

E.g. 1 configuration:

generate_zonal_histogram_emas_firex.yaml
input_files:
  [
    [ "'/Users/easley/Desktop/SIT_FUSE_Geo/eMAS_v2/eMASL1B_19910_06_20190806_1815_1824_V03.hdf.clust.data_78197clusters.full_geo.tif'" ],
    [ "'/Users/easley/Desktop/SIT_FUSE_Geo/eMAS_v2/eMASL1B_19910_08_20190806_1834_1846_V03.hdf.clust.data_78197clusters.full_geo.tif'" ],
    [ "'/Users/easley/Desktop/SIT_FUSE_Geo/eMAS_v2/eMASL1B_19910_10_20190806_1858_1910_V03.hdf.clust.data_78197clusters.full_geo.tif'" ]
  ]

shp_files:
  [
    [ '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/background/burnscar_background/eMASL1B_19910_06_20190806_1815_1824_V03_burnscar_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/background/fire_background/eMASL1B_19910_06_20190806_1815_1824_V03_fire_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/background/smoke_background/eMASL1B_19910_06_20190806_1815_1824_V03_smoke_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/smoke/eMASL1B_19910_06_20190806_1815_1824_V03_smoke.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/background/eMASL1B_19910_06_20190806_1815_1824_V03_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/fire/eMASL1B_19910_06_20190806_1815_1824_V03_fire.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/burnscar/eMASL1B_19910_06_20190806_1815_1824_V03_burnscar.shp' ],

    [ '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/background/burnscar_background/eMASL1B_19910_08_20190806_1834_1846_V03_burnscar_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/background/fire_background/eMASL1B_19910_08_20190806_1834_1846_V03_fire_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/background/smoke_background/eMASL1B_19910_08_20190806_1834_1846_V03_smoke_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/smoke/eMASL1B_19910_08_20190806_1834_1846_V03_smoke.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/background/eMASL1B_19910_08_20190806_1834_1846_V03_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/fire/eMASL1B_19910_08_20190806_1834_1846_V03_fire.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/burnscar/eMASL1B_19910_08_20190806_1834_1846_V03_burnscar.shp' ],

    [ '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/background/burnscar_background/eMASL1B_19910_10_20190806_1858_1910_V03_burnscar_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/background/fire_background/eMASL1B_19910_10_20190806_1858_1910_V03_fire_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/background/smoke_background/eMASL1B_19910_10_20190806_1858_1910_V03_smoke_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/smoke/eMASL1B_19910_10_20190806_1858_1910_V03_smoke.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/background/eMASL1B_19910_10_20190806_1858_1910_V03_background.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/fire/eMASL1B_19910_10_20190806_1858_1910_V03_fire.shp',
      '/Users/easley/Desktop/shapefiles/eMAS/20190806/shapes/labels/burnscar/eMASL1B_19910_10_20190806_1858_1910_V03_burnscar.shp' ]
  ]


out_file: "eMAS_FIREX_Batch_Full.json"

However, if you have one label for all of your GeoTiffs, there should only be one sublist/index containing all the files in both (e.g. 2).

E.g. 2 configuration

Last updated