Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Zoo workflow saves config.json in a different format than CoastSat workflow #205

Closed
1 task done
2320sharon opened this issue Nov 28, 2023 · 0 comments
Closed
1 task done
Assignees
Labels
bug Something isn't working

Comments

@2320sharon
Copy link
Collaborator

2320sharon commented Nov 28, 2023

Currently the zoo workflow and coastsat workflow operate quitely differently. I believe the goal is to have these workflow be interchangable at some point. However this cannot happen if each workflow generates different formatted files. The zoo workflow currently works on only a single ROI at a time while the coastsat workflow can process multiple ROIs within a single session.

  • Fix the config.json format

Sample Config.json from Zoo Workflow

{
  "dates": ["2015-12-01T00:00:00", "2022-12-31T00:00:00"],
  "sitename": "ID_exs1_datetime07-28-23__09_20_01",
  "polygon": [
    [
      [-73.36405446565554, 40.615628650766176],
      [-73.36326165076468, 40.648097122606465],
      [-73.32063433529457, 40.64748490454973],
      [-73.32144777496644, 40.61501712971226],
      [-73.36405446565554, 40.615628650766176]
    ]
  ],
  "roi_id": "exs1",
  "sat_list": ["L8", "L9"],
  "landsat_collection": "C02",
  "filepath": "C:\\development\\doodleverse\\coastseg\\CoastSeg\\data",
  "roi_ids": ["exs1"],
  "settings": {
    "cloud_thresh": 0.5,
    "dist_clouds": 300,
    "output_epsg": 32618,
    "save_figure": true,
    "min_beach_area": 4500,
    "min_length_sl": 500,
    "cloud_mask_issue": false,
    "sand_color": "default",
    "pan_off": "False",
    "max_dist_ref": 50,
    "along_dist": 25,
    "min_points": 3,
    "max_std": 15.0,
    "max_range": 30.0,
    "min_chainage": -100.0,
    "multiple_inter": "auto",
    "prc_multiple": 0.1,
    "percent_no_data": 50.0,
    "model_session_path": "C:\\development\\doodleverse\\coastseg\\CoastSeg\\sessions\\1"
  }
}

Sample Config.json from CoastSat Workflow

{
  "zih2": {
    "dates": ["2018-12-01", "2019-03-01"],
    "sat_list": ["L5", "L7", "L8", "L9", "S2"],
    "roi_id": "zih2",
    "polygon": [
      [
        [-121.84020033533233, 36.74441575726833],
        [-121.83959312681607, 36.784722827004146],
        [-121.78948275983468, 36.78422337939962],
        [-121.79011617443447, 36.74391703739083],
        [-121.84020033533233, 36.74441575726833]
      ]
    ],
    "landsat_collection": "C02",
    "sitename": "ID_zih2_datetime11-15-23__09_56_01",
    "filepath": "C:\\development\\doodleverse\\coastseg\\CoastSeg\\data"
  },
  "roi_ids": ["zih2"],
  "settings": {
    "landsat_collection": "C02",
    "dates": ["2018-12-01", "2019-03-01"],
    "sat_list": ["L5", "L7", "L8", "L9", "S2"],
    "cloud_thresh": 0.5,
    "dist_clouds": 300,
    "output_epsg": 32610,
    "check_detection": false,
    "adjust_detection": false,
    "save_figure": true,
    "min_beach_area": 1000,
    "min_length_sl": 500,
    "cloud_mask_issue": false,
    "sand_color": "default",
    "pan_off": "False",
    "max_dist_ref": 100,
    "along_dist": 25,
    "min_points": 3,
    "max_std": 15.0,
    "max_range": 30.0,
    "min_chainage": -100.0,
    "multiple_inter": "auto",
    "prc_multiple": 0.1,
    "apply_cloud_mask": true,
    "image_size_filter": true
  }
}

@2320sharon 2320sharon added the bug Something isn't working label Nov 28, 2023
@2320sharon 2320sharon self-assigned this Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant