From 1054b10ca3fb9a85d6b2498e22225d5f644fa7fa Mon Sep 17 00:00:00 2001 From: Bryon Lewis Date: Thu, 6 Feb 2025 15:23:01 -0500 Subject: [PATCH 1/3] add tva.json for default data --- client/.gitignore | 1 + sample_data/nz_data.json | 478 --------------------------------------- sample_data/task2.json | 274 ---------------------- sample_data/task5.json | 156 ------------- sample_data/tva.json | 89 ++++++++ 5 files changed, 90 insertions(+), 908 deletions(-) delete mode 100644 sample_data/nz_data.json delete mode 100644 sample_data/task2.json delete mode 100644 sample_data/task5.json create mode 100644 sample_data/tva.json diff --git a/client/.gitignore b/client/.gitignore index 7ceb59f..79d3815 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -11,6 +11,7 @@ node_modules dist dist-ssr *.local +.vite/* # Editor directories and files .vscode/* diff --git a/sample_data/nz_data.json b/sample_data/nz_data.json deleted file mode 100644 index 5cdae1f..0000000 --- a/sample_data/nz_data.json +++ /dev/null @@ -1,478 +0,0 @@ -[ - { - "type": "Context", - "name": "Scenario 1", - "default_map_center": [ - 34.8019, - -86.1794 - ], - "default_map_zoom": 8, - "datasets": [ - { - "name": "Task 2-1 (OR-SAGE) Nuclear", - "description": "", - "category": "Nuclear", - "metadata": {}, - "files": [ - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Nuclear/18July/Light_Water_Reactor (LWR)/Raster/LWR_Raster.tif", - "name": "Light Water Reactor Raster", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Nuclear/18July/Light_Water_Reactor (LWR)/Shapefile/LWR_Sites.shp", - "name": "Light Water Reactor Vectors", - "type": "shp", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Nuclear/18July/Small_Modular_Reactor (SMR)/Raster/SMR_Raster.tif", - "name": "Small Module Reactor Raster", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Nuclear/18July/Small_Modular_Reactor (SMR)/Shapefile/SMR_Sites.shp", - "name": "Small Module Reactor Vectors", - "type": "shp", - "metadata": {} - } - ] - }, - { - "name": "Solar", - "description": "", - "category": "Solar", - "metadata": {}, - "files": [ - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/17July/solar_combine_tva_filtered.tif", - "name": "Solar Combine TVA Filtered", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/slope_adjusted/solar_slope5_tva_filtered.tif", - "name": "Solar Slope 5", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/slope_adjusted/solar_slope8_tva_filtered.tif", - "name": "Solar Slope 8", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/slope_adjusted/solar_slope10_tva_filtered.tif", - "name": "Solar Slope 10", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Task 3 Handoff/solar_900_points.csv", - "name": "Solar Points", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "Lon", - "point_lat": "Lat" - } - } - } - ] - }, - { - "name": "PV_Centralized", - "description": "", - "category": "PV", - "metadata": {}, - "files": [ - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_all_criteria_900_points.csv", - "name": "PV All Criteria 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_max_land_900_points.csv", - "name": "PV Max Land 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_no_population_900_points.csv", - "name": "PV No Population 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_no_slope_900_points.csv", - "name": "PV No Slope 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - } - ] - }, - { - "name": "Task 2-2 (EA) Prospective Sites", - "description": "", - "category": "Prospective", - "metadata": {}, - "files": [ - { - "path": "./Task2/Outputs - Task 2-2 (EA)/prospective_sites_20240814.gpkg", - "name": "Prospective Sites 20240814", - "type": "gpkg", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-2 (EA)/prospective_sites_20240817.gpkg", - "name": "Prospective Sites 20240817", - "type": "gpkg", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-2 (EA)/prospective_sites_20240817.csv", - "name": "Prospective Sites 20240817 Vector", - "type": "csv", - "metadata": { - "columns": { - "geometry_wkt": "geometry", - "properties": [ - "step", - "uuid", - "fitness", - "genome", - "solar", - "slope" - ] - } - } - } - - ] - }, - { - "name": "Task 2 Shared Data Layers", - "description": "", - "category": "Shared", - "metadata": {}, - "files": [ - { - "path": "./Task2/Shared Data Layers/nsrdb3_dni.tif", - "name": "NSRDB3 DNI", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Shared Data Layers/nsrdb_aligned_tva.tif", - "name": "NSRDB3 Aligned", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Shared Data Layers/slope_aligned_tva.tif", - "name": "Slope Algined", - "type": "tif", - "metadata": {} - } - ] - }, - { - "name": "Task 2 Solar Layers", - "description": "", - "category": "Solar", - "metadata": {}, - "files": [ - { - "path": "./Task2/solar_layers/floodplain_100yrs_aligned_tva.tif", - "name": "FloodPlain", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/landslide_aligned_tva.tif", - "name": "Landslide Aligned", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/population_2030_10_aligned_tva.tif", - "name": "Population Aligned", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/protected_lands_aligned_tva.tif", - "name": "Protected Lands", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/slope_18pct_aligned_tva.tif", - "name": "Slope 18pct", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/solar_dummy_combine_tva_filtered.tif", - "name": "Solar dummy combine filtered", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/solar_dummy_combine_tva.tif", - "name": "Solar dummy combine", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/solar_dummy_tva.tif", - "name": "Solar Dummy", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/wetlands_aligned_tva.tif", - "name": "Wetlands Aligned", - "type": "tif", - "metadata": {} - } - ] - }, - { - "name": "Task 5 Fim", - "description": "", - "category": "Fim", - "metadata": {}, - "files": [ - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_26T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_26T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_27T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_27T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_28T10am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_29T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_29T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_30T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_26T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_26T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_27T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_27T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_28T10am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_29T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_29T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_30T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_hand/hand_kyflood_overview.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/noaa_nwm_flood_extent/20240909_NOAA_NWM_5day_max_flood_extent.gpkg", - "name": "NOAA Flood Extent", - "type": "gpkg", - "metadata": {} - } - - ] - }, - { - "name": "Task 5 Watershed", - "description": "", - "category": "Watershed", - "metadata": {}, - "files": [ - { - "path": "./Task5/Datasets/watershed/flowline_data_example.gpkg", - "name": "Flowline Data Example", - "type": "gpkg", - "metadata": {} - }, - { - "path": "./Task5/Datasets/watershed/watershed_poly_data_example.gpkg", - "name": "Watershed Poly Example", - "type": "gpkg", - "metadata": {} - } - ] - }, - { - "name": "Task 5 WBD", - "description": "", - "category": "WBD", - "metadata": {}, - "files": [ - { - "path": "./Task5/Datasets/wbd/wbd_huc10_tva.gpkg", - "name": "WBD Huc10", - "type": "gpkg", - "metadata": {} - }, - { - "path": "./Task5/Datasets/wbd/wbd_huc8_tva.gpkg", - "name": "WBD Huc8", - "type": "gpkg", - "metadata": {} - } - ] - } - ] - }, - { - "type": "Context", - "name": "Scenario 2", - "default_map_center": [ - 34.8019, - -86.1794 - ], - "default_map_zoom": 8, - "datasets": [ - { - "name": "Scenario 2 Sample Data", - "description": "", - "category": "PV", - "metadata": {}, - "files": [ - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_all_criteria_900_points.csv", - "name": "PV All Criteria 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_max_land_900_points.csv", - "name": "PV Max Land 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_no_population_900_points.csv", - "name": "PV No Population 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_no_slope_900_points.csv", - "name": "PV No Slope 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - } - ] - } - ] - } -] \ No newline at end of file diff --git a/sample_data/task2.json b/sample_data/task2.json deleted file mode 100644 index 91d5b4a..0000000 --- a/sample_data/task2.json +++ /dev/null @@ -1,274 +0,0 @@ -[ - { - "type": "Context", - "name": "Task 2-1 (OR-SAGE)", - "default_map_center": [ - 34.8019, - -86.1794 - ], - "default_map_zoom": 8, - "datasets": [ - { - "name": "Nuclear", - "description": "", - "category": "Nuclear", - "metadata": {}, - "files": [ - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Nuclear/18July/Light_Water_Reactor (LWR)/Raster/LWR_Raster.tif", - "name": "Light Water Reactor Raster", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Nuclear/18July/Light_Water_Reactor (LWR)/Shapefile/LWR_Sites.shp", - "name": "Light Water Reactor Vectors", - "type": "shp", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Nuclear/18July/Small_Modular_Reactor (SMR)/Raster/SMR_Raster.tif", - "name": "Small Module Reactor Raster", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Nuclear/18July/Small_Modular_Reactor (SMR)/Shapefile/SMR_Sites.shp", - "name": "Small Module Reactor Vectors", - "type": "shp", - "metadata": {} - } - ] - }, - { - "name": "Solar", - "description": "", - "category": "Solar", - "metadata": {}, - "files": [ - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/17July/solar_combine_tva_filtered.tif", - "name": "Solar Combine TVA Filtered", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/slope_adjusted/solar_slope5_tva_filtered.tif", - "name": "Solar Slope 5", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/slope_adjusted/solar_slope8_tva_filtered.tif", - "name": "Solar Slope 8", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/slope_adjusted/solar_slope10_tva_filtered.tif", - "name": "Solar Slope 10", - "type": "tif", - "metadata": {} - } - ] - }, - { - "name": "PV_Centralized", - "description": "", - "category": "PV", - "metadata": {}, - "files": [ - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_all_criteria_900_points.csv", - "name": "PV All Criteria 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_max_land_900_points.csv", - "name": "PV Max Land 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_no_population_900_points.csv", - "name": "PV No Population 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - }, - { - "path": "./Task2/Outputs - Task 2-1 (OR-SAGE)/Solar/PV_Centralized/pv_no_slope_900_points.csv", - "name": "PV No Slope 900", - "type": "csv", - "metadata": { - "columns": { - "point_lon": "longitude", - "point_lat": "latitude", - "properties": "*" - } - } - } - ] - } - ] - }, - { - "type": "Context", - "name": "Task 2-2 (EA)", - "default_map_center": [ - 34.8019, - -86.1794 - ], - "default_map_zoom": 8, - "datasets": [ - { - "name": "Prospective Sites", - "description": "", - "category": "Prospective", - "metadata": {}, - "files": [ - { - "path": "./Task2/Outputs - Task 2-2 (EA)/prospective_sites_20240814.gpkg", - "name": "Prospective Sites 20240814", - "type": "gpkg", - "metadata": {} - }, - { - "path": "./Task2/Outputs - Task 2-2 (EA)/prospective_sites_20240817.gpkg", - "name": "Prospective Sites 20240817", - "type": "gpkg", - "metadata": {} - } - ] - } - ] - }, - { - "type": "Context", - "name": "Task 2 Shared Data Layers", - "default_map_center": [ - 34.8019, - -86.1794 - ], - "default_map_zoom": 8, - "datasets": [ - { - "name": "Shared Data Layers", - "description": "", - "category": "Shared", - "metadata": {}, - "files": [ - { - "path": "./Task2/Shared Data Layers/nsrdb3_dni.tif", - "name": "NSRDB3 DNI", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Shared Data Layers/nsrdb_aligned_tva.tif", - "name": "NSRDB3 Aligned", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/Shared Data Layers/slope_aligned_tva.tif", - "name": "Slope Algined", - "type": "tif", - "metadata": {} - } - ] - } - ] - }, - { - "type": "Context", - "name": "Task 2 Solar Layers", - "default_map_center": [ - 34.8019, - -86.1794 - ], - "default_map_zoom": 8, - "datasets": [ - { - "name": "Solar Layers", - "description": "", - "category": "Solar", - "metadata": {}, - "files": [ - { - "path": "./Task2/solar_layers/floodplain_100yrs_aligned_tva.tif", - "name": "FloodPlain", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/landslide_aligned_tva.tif", - "name": "Landslide Aligned", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/population_2030_10_aligned_tva.tif", - "name": "Population Aligned", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/protected_lands_aligned_tva.tif", - "name": "Protected Lands", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/slope_18pct_aligned_tva.tif", - "name": "Slope 18pct", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/solar_dummy_combine_tva_filtered.tif", - "name": "Solar dummy combine filtered", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/solar_dummy_combine_tva.tif", - "name": "Solar dummy combine", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/solar_dummy_tva.tif", - "name": "Solar Dummy", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task2/solar_layers/wetlands_aligned_tva.tif", - "name": "Wetlands Aligned", - "type": "tif", - "metadata": {} - } - ] - } - ] - } -] \ No newline at end of file diff --git a/sample_data/task5.json b/sample_data/task5.json deleted file mode 100644 index 878b1ef..0000000 --- a/sample_data/task5.json +++ /dev/null @@ -1,156 +0,0 @@ -[ - { - "type": "Context", - "name": "Task 5 ", - "default_map_center": [ - 34.8019, - -86.1794 - ], - "default_map_zoom": 8, - "datasets": [ - { - "name": "Fim", - "description": "", - "category": "Fim", - "metadata": {}, - "files": [ - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_26T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_26T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_27T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_27T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_28T10am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_29T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_29T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_depth_grid_Q_2022_07_30T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_26T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_26T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_27T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_27T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_28T10am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_29T12am_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_29T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_fim/kyflood202207_extent_grid_Q_2022_07_30T12pm_EDT.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/ky_hand/hand_kyflood_overview.tif", - "type": "tif", - "metadata": {} - }, - { - "path": "./Task5/Datasets/fim/examples/noaa_nwm_flood_extent/20240909_NOAA_NWM_5day_max_flood_extent.gpkg", - "name": "NOAA Flood Extent", - "type": "gpkg", - "metadata": {} - } - - ] - }, - { - "name": "Watershed", - "description": "", - "category": "Watershed", - "metadata": {}, - "files": [ - { - "path": "./Task5/Datasets/watershed/flowline_data_example.gpkg", - "name": "Flowline Data Example", - "type": "gpkg", - "metadata": {} - }, - { - "path": "./Task5/Datasets/watershed/watershed_poly_data_example.gpkg", - "name": "Watershed Poly Example", - "type": "gpkg", - "metadata": {} - } - ] - }, - { - "name": "WBD", - "description": "", - "category": "WBD", - "metadata": {}, - "files": [ - { - "path": "./Task5/Datasets/wbd/wbd_huc10_tva.gpkg", - "name": "WBD Huc10", - "type": "gpkg", - "metadata": {} - }, - { - "path": "./Task5/Datasets/watershed/wbd_huc8_tva.gpkg", - "name": "WBD Huc8", - "type": "gpkg", - "metadata": {} - } - ] - } - ] - } - - - -] \ No newline at end of file diff --git a/sample_data/tva.json b/sample_data/tva.json new file mode 100644 index 0000000..c3b5a79 --- /dev/null +++ b/sample_data/tva.json @@ -0,0 +1,89 @@ +[ + { + "type": "Context", + "name": "TVA Water Boundaries", + "default_map_center": [ + 34.8019, + -86.1794 + ], + "default_map_zoom": 6, + "datasets": [ + { + "name": "TVA Water Boundaries", + "description": "Water Boundaries for the TVA region", + "category": "vector water boundaries", + "metadata": {}, + "files": [ + { + "path": "./data/tva/waterboundaries.zip", + "url": "https://data.kitware.com/api/v1/file/67a4f46d7dbb9df48b660b2c/download", + "name": "TVA Water Boundaries", + "type": "zip", + "metadata": {} + } + ] + } + ] + }, + { + "type": "Context", + "name": "TVA Water Gauge Values", + "default_map_center": [ + 34.8019, + -86.1794 + ], + "default_map_zoom": 6, + "datasets": [ + { + "type": "Dataset", + "name": "TVA NWIS Gauges", + "description": "TVA USGS WaterFlow and temperature", + "category": "tabular", + "metadata": {}, + "action": "replace", + "files": [ + { + "path": "./data/tva_sites.geojson", + "name": "TVA Sites", + "type": "geojson", + "url": "https://data.kitware.com/api/v1/file/67a4f4a07dbb9df48b660b33/download", + "metadata": { + "tabular": { + "path": "./data/USGS_TVA_Gauge_Tabular_data.json", + "name": "USGS TVA Tabular Montly Data", + "url": "https://data.kitware.com/api/v1/file/67a4f4997dbb9df48b660b30/download", + "featurePropertyMatcher": "site_number" + } + } + } + ] + } + ] + }, + { + "type": "Context", + "name": "Hydro Stations", + "default_map_center": [ + 34.8019, + -86.1794 + ], + "default_map_zoom": 6, + "datasets": [ + { + "name": "TVA HydroStations", + "description": "TVA HydroStations", + "category": "vector", + "metadata": {}, + "files": [ + { + "path": "./data/tva/hydrostations.geojson", + "url": "https://data.kitware.com/api/v1/file/67a4f4e27dbb9df48b660b37/download", + "name": "TVA Water Boundaries", + "type": "geojson", + "metadata": {} + } + ] + } + ] + } +] \ No newline at end of file From 1362fcc2cd61202bfd9ea9af732b47a2538fc8e3 Mon Sep 17 00:00:00 2001 From: Bryon Lewis Date: Fri, 7 Feb 2025 10:44:12 -0500 Subject: [PATCH 2/3] updating default selection, add TVA inputs --- client/src/components/LayerTypeConfig.vue | 95 +++++++++++------------ sample_data/tva.json | 30 ++++++- uvdat/core/tasks/map_layers.py | 12 +++ 3 files changed, 87 insertions(+), 50 deletions(-) diff --git a/client/src/components/LayerTypeConfig.vue b/client/src/components/LayerTypeConfig.vue index 6b3a0e4..a447124 100644 --- a/client/src/components/LayerTypeConfig.vue +++ b/client/src/components/LayerTypeConfig.vue @@ -327,6 +327,53 @@ export default defineComponent({ + + + + + + + + + {{ + valueDisplayCheckbox('selectColor') ? 'mdi-checkbox-marked' : 'mdi-checkbox-blank-outline' }} + + Select Color + + + + + + + + - - - - - - - - - - {{ - valueDisplayCheckbox('selectColor') ? 'mdi-checkbox-marked' : 'mdi-checkbox-blank-outline' }} - - Select Color - - - - - - - - Date: Fri, 7 Feb 2025 10:52:29 -0500 Subject: [PATCH 3/3] linting --- uvdat/core/tasks/map_layers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uvdat/core/tasks/map_layers.py b/uvdat/core/tasks/map_layers.py index 5cefbfc..4b65a4f 100644 --- a/uvdat/core/tasks/map_layers.py +++ b/uvdat/core/tasks/map_layers.py @@ -67,7 +67,9 @@ def calculate_styling(geojson_data, style_options): if has_render_height: updated_style_options['layers']['fill-extrusion'] = {'enabled': True, 'color': '#CCCCCC'} # make the largest geometry type single selectable with the selectColor being cyan - enabled = [layer for layer, options in updated_style_options['layers'].items() if options['enabled']] + enabled = [ + layer for layer, options in updated_style_options['layers'].items() if options['enabled'] + ] for layer in ['fill-extrusion', 'fill', 'line']: if layer in enabled: