Skip to content

Name notebook outputs in json config #30

@dcdenu4

Description

@dcdenu4

Currently the notebook uses the base file name to label the layer in the interactive map. It would be nice to couple the notebook and the plugin script more such that the plugin script describes the label information for the notebook. I think leveraging the current notebook json config file for this purpose will help keep a single source of truth and remove situations where the plugin and notebook can get out of sync.

Maybe something like:

{
    "aoi_center": [
        16.152130441193997,
        -15.959581254692807
    ],
    "aoi_geojson": "aoi_geojson.geojson",
    "layers": {
        "population_suit_sqkm": {
             "name": "Population Suitability (sqkm)",
         },
        "snail_water_temp_suit_dry",
        "parasite_water_temp_suit_dry",
        "ndvi_suit_dry",
        "snail_water_temp_suit_wet",
        "parasite_water_temp_suit_wet",
        "ndvi_suit_wet",
        "habitat_suit_weighted_mean",
        "convolved_hab_risk",
        "normalized_convolved_risk",
        "risk_to_pop_abs",
        "risk_to_pop_count_abs",
        "risk_to_pop_rel",
        "risk_to_pop_count_rel"
    },
    "plot_paths": [
        "ndvi-default.png",
        "population-default.png",
        "snail_water_temp-bt.png",
        "parasite_water_temp-sh.png"
    ]
}```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions