You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new feature branch off of the dev branch.
Develop Python code to translate shapefiles from the USFIMR to the format required for Alpha evaluations and calibration. For now, let's only consider USFIMR maps that coincide with Mainstem (MS) segments. Only use USFIMIR maps that have Q (flows/discharge) information.
For a USFIMR map...
Create flow file using the discharge attribute in the file. CSV should match this format: /dev_fim_share/foss_fim/test_cases/ble_test_cases/validation_data_ble/11100303/500yr/ble_huc_11100303_flows_500yr.csv
Create raster of the flood extent. Raster should match this format: /dev_fim_share/foss_fim/test_cases/ble_test_cases/validation_data_ble/11100303/500yr/ble_huc_11100303_extent_500yr.tif
Rasters should be formatted at the HUC8 scale and pixels should be encoded as follows: Wet = 1, Dry = 0, NoData = NoData.
In order to create the flow file, you'll need to determine the NWM feature_ids that contain inundated area, then apply the USFIMR-provided discharges to those feature_ids. For this, I think either a zonal statistic or intersect operation will work. Basically, any NWM MS catchment that contains USFIMR inundation should receive a flow value. If zonal statistics is used, then it makes sense to go ahead and convert the USFIMR shapefile to a raster upfront.
Create a new feature branch off of the
dev
branch.Develop Python code to translate shapefiles from the USFIMR to the format required for Alpha evaluations and calibration. For now, let's only consider USFIMR maps that coincide with Mainstem (MS) segments. Only use USFIMIR maps that have Q (flows/discharge) information.
For a USFIMR map...
/dev_fim_share/foss_fim/test_cases/ble_test_cases/validation_data_ble/11100303/500yr/ble_huc_11100303_flows_500yr.csv
/dev_fim_share/foss_fim/test_cases/ble_test_cases/validation_data_ble/11100303/500yr/ble_huc_11100303_extent_500yr.tif
Rasters should be formatted at the HUC8 scale and pixels should be encoded as follows: Wet = 1, Dry = 0, NoData = NoData.
In order to create the flow file, you'll need to determine the NWM
feature_ids
that contain inundated area, then apply the USFIMR-provided discharges to thosefeature_ids
. For this, I think either a zonal statistic or intersect operation will work. Basically, any NWM MS catchment that contains USFIMR inundation should receive a flow value. If zonal statistics is used, then it makes sense to go ahead and convert the USFIMR shapefile to a raster upfront.Data needs:
/dev_fim_share/foss_fim/inputs/wbd/WBD_National.gpkg
/dev_fim_share/foss_fim/inputs/nwm_hydrofabric/nwm_flows_ms_wrds.gpkg
Example CSV. Discharge units are CMS.
The text was updated successfully, but these errors were encountered: