Tools
Troubleshooting
Keywords
Acknowledgment
Disclaimer
We do our very best to program River Architect as robust and flexible as possible. River Architect’s stepwise development nevertheless led to a few restrictions in its freedom of use, which are caused by a couple of hard-code sequences. The following limitations because of hard-coding are known and will be fixed in future versions:
spawning, fry, ammocoetes, juvenile, adult, hydrologic year, season, depth > x,
or velocity > x
. The lifestage names are currently hard-coded in the Fish
class (RiverArchitect/.site_packages/riverpy/cFish.py
) dictionary self.ls_col_add = {"spawning": 1, "fry": 3, "ammocoetes": 3, "juvenile": 5, "adult": 7, "hydrologic year": 1, "season": 3, "depth > x": 5, "velocity > x": 7}
. This dictionary can be changed for using other lifestage names and we are working on an improvement in later versions. Note: This dictionary defines the relative column numbers that is added to the column where a fish name is defined.Exception Error: (arcpy) - expected 1 arguments, got 2
"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe"
instead of "%PROGRAMFILES%\ArcGIS\Pro\bin\Python\Scripts\propy"
in the RiverArchitect/Start_River_Architect.bat
(see context in the installation instructions). arcgispro-py3-clone
) and close ArcGIS Pro.01_Conditions/CONDITION/
folder for each selected feature to run arcpy.sa.CellStatistics
. To avoid issues, consider the following rules of thumb:
01_Conditions/CONDITION/input_definitions.inp
).LifespanDesign
module will read grain size raster names from 01_Conditions/CONDITION/input_definitions.inp
. However, the Ecohydraulics
module absolutely requires that a grain size raster in SI units is named dmean.tif
(units: meters) and a grain size raster in U.S. customary units must be named dmean_ft.tif
(units: feet).If River Architect encounters problems, the code writes WARNING and ERROR messages to the Python command line and to the same logfile where all other computation progress information is logged. The WARNING and ERROR messages provide information on the error cause and this Wiki contains all possible WARNING and ERROR messages of River Architect.
Thus, for troubleshooting, press the CTRL
+ F
key, enter (part of) the WARNING or ERROR message that occurred, and press enter. Causes and Remedies are provided for every WARNING and ERROR message. Do not include specific parameters, file names, or expressions in parentheses or brackets.
Otherwise, the WARNING and ERROR messages are listed in alphabetic order (starting with Error messages, then ExceptionalError message, then Warning messages …).
Most errors occur when the wrong python interpreter is used or when Rasters or layouts have bad formats or when the information stated in the input files is erroneous.
The River Architect writes process errors and descriptions to logfiles. When the GUI encounters problems, it directly provides causes and remedies in pop-up infoboxes. The common error and warning messages, which can be particularly raised by the package (alphabetical order) are listed in the following with detailed descriptions of causes and remedies. Most error messages are written to the logfiles, but some exception errors are only printed to the terminal because they occur before logging could even be started. Such non-logged ExceptionErrors
are listed at the bottom of the Error messages.
Some non-identifiable errors raised by the arcpy
package disappear after rebooting the system.
arcpy ERROR 130051: Input feature class is not registered as versioned.
arcpy
failed to register datasets, which basically means that the dataset does not exist. Moreover, this arbitrary error may occur if, for example, multiple subsets of a Condition were created without closing River Architect between each creation.arcpy
, which will not register datasets unless River Architect is completely closed. We are developing work-arounds.ERROR 000641: Too few records for analysis.
arcpy
error message occurs here when arcpy.CalculateGeometryAttributes_management
tries to compute the area of an empty shapefile.ERROR 999998: Unexpected Error.
This is an operating system error and it can indicate different error conditions (i.e., the real reasons may have various error sources). Some of the most probable causes are:
RiverArchitect/01_Conditions/CONDITION/
.ERROR: .cache folder in use.
.cache
, including explorer.exe
, other instances of python
or ArcGIS and rerun the code. Also re-logging may be required if the folder cannot be unlocked.ERROR: .cache folder will be removed by package controls.
arcpy
could not clean up the .cache
folder and the task is passed to Python’sos
package. The content in the cache folder is blocked by another process and the output is probably affected..cache
, including explorer.exe
, other instances of Python or ArcGIS and rerun the code. Also re-logging may be required if the folder cannot be unlocked.ERROR: (arcpy) in *PAR*.
ExceptionERROR: (arcpy) ...
. The error is raised by the analysis_...
, design_...
and other functions when arcpy
Raster calculations could not be performed. Missing Rasters, bad Raster assignments, errors in input geodata files, or bad Raster calculation expressions are possible reasons. The error can also occur when the SpatialAnalyst
license is not available.ExceptionERROR: (arcpy) ...
ERROR: Analysis stopped ([...] failed).
analysis(...)
function in LifespanDesign/feature_analysis.py
when it encountered an error.ERROR: Area calculation failed.
calculate_sha(self)
of SHArC’s CHSI()
class in SHArC/cHSI.py
when it could not calculate the usable habitat area (see SHArea Methods).SHArC/.cache/
nor the directory SHArC/SHArea/
or their contents are in use by other program.ERROR: Bad assignment of x/y values in the coordinate input file.
coordinates_read(self)
function of the Info()
class in either LifespanDesign/cRead InpLifespan.py
or MaxLifespan/cReadActionInput.py
when mapping.inp
has bad assignments of x-y coordinates.mapping.inp
(LifespanDesign/.templates/
or MaxLifespan/.templates/
) correspond to the definitions in LifespanDesign Output maps.ERROR: Bad call of map centre coordinates. Creating squared-x layouts.
get_map_extent(self, direction)
function of the Info()
class in either LifespanDesign/cReadInpLifespan.py
or MaxLifespan/cReadActionInput.py
when mapping.inp
has bad assignments of x-y coordinates.mapping.inp
exists in the directory LifespanDesign/.templates/
corresponding to the definitions in LifespanDesign Output maps.mapping.inp
exists in the directory MaxLifespan/.templates/
corresponding to the definitions in LifespanDesign Output maps.mapping.inp
with the original file and re-apply modifications strictly following LifespanDesign Output maps.ERROR: Bad mapping input file.
get_map_extent(self, direction)
,coordinates_read(self)
orget_map_scale(self)
function of the Info()
class in either LifespanDesign/cReadInpLifespan.py
or MaxLifespan/cReadActionInput.py
when mapping.inp
has wrong formats or it is missing.ERROR: Bad call of map centre coordinates [...]
.ERROR: MU calculation failed.
MU
class (GetStarted/cMorphUnits.py
) when the defined flow depth and/or velocity Rasters are not usable.ERROR: MU update failed.
MU
class (GetStarted/cMorphUnits.py
) when processing the provided flow depth and/or velocity Rasters lead to non-meaningful results.GetStarted/cMorphUnits.py
(calculate_mu_baseflow
function approximately from line 75 onward). We are working on improving the Morphological Unit generator.ERROR: Boundary shapefile in arcpy.PolygonToRaster[...].
make_boundary_ras(self, shapefile)
function (cHSI.py
) when it could not convert a provided shapefile defining calculation boundaries to a Raster and load it as arcpy.Raster(.../SHArC/HSI/CONDITION/bound_ras)
.Id
field value of 1
for that rectangle.ERROR: Boundary shapefile provided but [...].
make_chsi(self, fish, boundary_shp)
function (cHSI.py
) when the “To Raster” conversion of the provided shapefile defining calculation boundaries failed.ERROR: Boundary shapefile in arcpy.PolygonToRaster[...]
.ERROR: Calculation of cell statistics failed.
identify_best_features(self)
of MaxLifespan’s ArcpyContainer()
class in MaxLifespan/cActionAssessment.py
when arcpy.sa.CellStatistics()
could not be executed.zero
Raster may be corrupted. The remedy described for the error message ExceptionERROR: Unable to create ZERO Raster. Manual intervention required* can be used to manually re-create the
zero` Raster.ERROR: Calculation of volume from RASTER failed.
volume_computation(self)
function of the VolumeAssessment()
class in VolumeAssessment/cVolumeAssessment.py
raises this error when the command arcpy.SurfaceVolume_3d(RASTER, "", "ABOVE", 0.0, 1.0)
failed.3D
extension license is available.ERROR: Cannot find FEAT max. lifespan Raster.
get_action_Raster(self, feature_name)
function of the ModifyTerrain()
class in ModifyTerrain/cModifyTerrain.py
cannot find max. lifespan Rasters in the defined max. lifespan Raster directory (default: MaxLifespan/Output/Rasters/CONDITION/
), it raises this error message.MaxLifespan/Output/Rasters/CONDITION/
) and that the names of the Rasters contain the feature shortname (i.e., grade
and/or widen
).ERROR: Cannot find flow depth Raster.
make_chsi(self, fish, boundary_shp)
of the SHArC’s CHSI()
class in SHArC/cHSI.py
when it could associate a flow depth Raster based on the name of a habitat suitability index (HSI) Raster name.RiverArchitect/01_Conditions/CONDITION/
strictly comply with the naming conventions described in the Conditions / Input Rasters section..../SHArC/HSI/CONDITION/
, with the correct Raster names including information about the discharge (see the SHArC output section).ERROR: Cannot load modified DEM.
__init__(self, ...)
function of the VolumeAssessment()
class in VolumeAssessment/cVolumeAssessment.py
cannot access the Raster.ERROR: Cannot load original DEM.
__init__(self, ...)
function of the VolumeAssessment()
class in VolumeAssessment/cVolumeAssessment.py
cannot access the Raster.ERROR: Cannot open project: DIR/module_name.aprx.
module_name
raises this error message when the stated project file (.aprx) cannot be opened.ERROR: Could not access Fish.xlsx (...).
get_hsi_curve(self, species, lifestage, par)
function of the Fish()
class (.site_packages/riverpy/cFish.py
) or the main()
function in s40_compare_wua.py
raise this error message when it cannot access Fish.xlsx
or copy read values from the /SHArC/SHArea/
condition` directory..site_packages/templates/Fish.xlsx
nor any file in /SHArC/SHArea/
condition*` is used by another program.ERROR: Could not add cover HSI.
make_chsi(self, fish)
function of the CHSI()
class (HabitatEvluation/cHSI.py
) raises this error message when it failed to add cover HSI Rasters.SHArC/HSI/
and recompile cover HSI Rasters if needed (see CoverHSI).ERROR: Could not append PDF page XX to map assembly.
make_pdf_maps(self, ...)
function of the Mapper()
class (.site_packages/riverpy/cMapper.py
) raises this error when it failed to map the current page (extent).LifespanDesign/.templates/mapping.inp
are correct.ERROR: Could not create new project
.LifespanDesign/.cache/
, MaxLifespan/.cache/
, MaxLifespan/Output/
, VolumeAssessment/Output/
, or 02_Maps/*
directories or their contents (close ArcGIS Pro).ERROR: Could not calculate CellStatistics (Raster comparison).
compare_raster_set(self, ...)
function of the arcpyAnalysis()
class in LifespanDesign/cLifespanDesignAnalysis.py
when the provided it failed to combine the lifespan according to the provided input Rasters (hydraulic or scour fill or morphological units).ERROR: Could not calculate stable grain size Raster for ... .
ProjectMaker/s30_terrain_stabilization/
’s main()
function when it cannot calculate the stable grain size for a user-defined minimum (critical) lifespan and Condition.RiverArchitect/logfile.log
and verify that the stated source data exist and are not empty (if necessary, open geofiles in ArcGIS Pro and verify contents).ERROR: Could not create new project (...)
aprx_origin = arcpy.mp.ArcGISProject(self.ref_lyt_dir + "module_name.aprx")
or when it tries to save a copy of the source project (aprx_origin.saveACopy(self.output_mxd_dir + "module_name.aprx")
).aprx_origin
exists (quoted in ERROR-message brackets) and that the target directory (to:
) can be accessed (writing rights / close ArcGIS Pro). If the source project is missing, re-download it from the source code.ERROR: Could not create Raster of the project area.
set_project_area(self)
of ProjectMakers’s SHArC()
class in ProjectMaker/cSHArC.py
or the main()
function in ProjectMaker/s20_plantings_delineation.py
) when it failed to convert the project area shapefile to a Raster, which it needs for limiting spatial calculations to the project extent.ProjectMaker/ProjectName_vXX/Geodata/Rasters/ProjectArea.tif
, where in-values=Int(1)
and out-values=NoData
).ERROR: Could not create sub-condition folder: ... .
make_sub_condition(...)
(GetStarted/fSubCondition
) when the defined sub-Condition name is invalid.$
or ?!
).ERROR: Could not crop RASTER.
make_sub_condition(...)
(GetStarted/fSubCondition.py
) function raises this error message when it failed cropping the Raster with the spatial analyst operation Con(~IsNull(boundary_ras), Float(source_Raster))
.ERROR: Could not crop Raster to defined flow depth.
crop_input_Raster(self, fish_species, fish_lifestage, depth_Raster_path)
function of the CovHSI(HHSI)
class (HabitatEvluation/cHSI.py
) raises this error message when it failed cropping the Raster with the spatial analyst operation Con((Float(h_Raster) >= h_min), cover_type_Raster)
.Fish.xlsx
contains a minimum flow depth value for the selected fish species and lifestage.ERROR: Could not export PDF page no. XX
make_pdf_maps(self, ...)
function of the Mapper()
class (.site_packages/riverpy/cMapper.py
) raises this error when LifespanDesign/.templates/mapping.inp
or MaxLifespan/.templates/mapping.inp
contain invalid xy-coordinates (format).LifespanDesign/.templates/mapping.inp
and MaxLifespan/.templates/mapping.inp
are correct.ERROR: Could not find / access input Rasters.
D2W
class (GetStarted/cDepth2Groundwater.py
) or the DET
class (GetStarted/cDetrendedDEM.py
) or the MU
class (GetStarted/cMorphUnits.py
) when the defined DEM, flow depth, or velocity GeoTIFFs are not usable.d2w.tif
, mu.tif
and det.tif
creation simultaneously and for multiple conditions (the .cache folders are locked by individual instantiations).ERROR: Could not find max. lifespan Rasters.
main()
function in ProjectMaker/s20_plantings_delineation.py
) when the defined directory of max. lifespan Rasters contains invalid or corrupted Raster data..../MaxLifespan/Output/Rasters/CONDITION_reach_lyr20_plants/
and .../MaxLifespan/Products/Rasters/CONDITION_reach_lyr20_plants/
or …nature-based engineering
(cf. Project Maker vegetation plantings and supporting nature-based engineering features).ERROR: Could not find any worksheet.
open_wb(self)
function of the Read()
class in RiverArchitect/.site_packages/riverpy/cInputOutput.py
or the MakeFlowTable
class (RiverArchitect/.site_packages/riverpy/cMakeTable.py
) when the concerned workbook contains errors..site_packages/templates/Fish.xlsx
(SHArC Fish section).ProjectMaker/.../Project_assessment_vii.xlsx
(ProjectMaker’s Cost quantity workbook).SHArC/SHArea/CONDITION_sharea_FILI.xlsx
, verify the data contents and make sure that the file is not opened in any other program.ERROR: Could not find hydraulic Rasters for CONDITION.
ProjectMaker/s30_terrain_stabilization/
’s main()
function when it cannot find hydraulic Rasters for the selected lifespan-design condition.01_Conditions/CONDITION/
(also: close all other programs that potentially use these Rasters).ERROR: Could not find Lifespan Raster (...).
ProjectMaker/s30_terrain_stabilization/
’s main()
function when it cannot find lifespan Rasters.Grains / Boulders
feature ( creates lf_grains.tif
). Terrain stabilization absolutely requires Grains / Boulders
(lf_grains.tif
), and optionally requires Streamwood
(lf_wood.tif
) and Nature-based engineering features (other)
(lf_bio.tif
).ERROR: Could not find sheet "extents" in computation_extents.xlsx.
get_reach_coordinates(self, internal_reach_id)
function of the Read()
class in RiverArchitect/.site_packages/riverpy/cReachManager.py
) when the extents
sheet in the reach coordinate workbook (ModifyTerrain/.templates/computation_extents.xlsx
) could not be read.ModifyTerrain/.templates/computation_extents.xlsx
(reach preparation within the ModifyTerrain module).ERROR: Could not find the cover input geofile [...]
__init__(self, ...)
function of the CovHSI(HHSI)
class in SHArC/cHSI.py
) when the input cover geofile could not be read or is missing.CONDITION
folder for the specified cover type (checkbox activated in the GUI). The Help
button in the GUI provides more information on required geofiles and the SHArC Working Principles.ERROR: Could not interpolate exceedance probability of Q = [...]
interpolate_flow_exceedance(self, Q_value)
of the FlowAssessment()
class in .site_packages/riverpy/cFlows.py
when the flow duration curve contains invalid data.00_Flows/CONDITION/flow_duration ... .xlsx
. The file structure must correspond to that of the provided template flow_duration_template.xlsx
and all discharge values need to be positive floats. Review the HHSI input preparation for details.ERROR: Could not load ... .
ERROR: Could not load boundary Raster: ... .
make_sub_condition(...)
(GetStarted/fSubCondition
) when the defined boundary Raster contains invalid data.ERROR: Could not load existing Raster of the project area.
set_project_area(self)
of ProjectMakers’s SHArC()
class in ProjectMaker/cSHArC.py
when it found a Raster that delineates the project area, but this Raster is corrupted. The function requires the shapefile to Raster conversion to limit applicable Rasters to the project extent range, which is done with Raster calculator operations.ERROR: Could not load newly created Raster of the project area.
set_project_area(self)
of the ProjectMaker’s SHArC()
class in ProjectMaker/cSHArC.py
when the converted the project area shapefile is corrupted.ERROR: Could not open workbook (...).
__init__(self)
function of the Read()
class in riverpy/cInputOutput.py
or the write_flow_duration2xlsx(self, ...)
function of the SeasonalFlowProcessor()
class (riverpy/cFlows.py
) when the concerned workbook contains errors or cannot be opened for other reasons.ERROR: Could not perform spatial radius operations [...].
spatial_join_analysis(self, rater, curve_data)
function of the CovHSI(HHSI)
class (SHArC/cHSI.py
) raises this error message when one or several spatial calculations failed, including arcpy.RasterToPoint_conversion[...]
, arcpy.SpatialJoin_analysis[...]
and / or arcpy.PointToRaster_conversion[...]
.ERROR: Could not process flow series.
build_flow_duration_data(self.)
(SeasonalFlowProcessor()
in RiverArchitect/.site_packages/riverpy/cFlows.py
) when it could not read the provided flow series data file.00_Flows/InputFlowSeries/flow_series_example_data.xlsx
).ERROR: Could not process information from [...].
main()
function in ProjectMaker/s40_compare_wua.py
raises this error message when it could not calculate the annually usable habitat area for a condition or (set of) discharge(s).ERROR: Could not read flow duration curve data.
get_flow_data(self, ...)
of the FlowAssessment()
class in .site_packages/riverpy/cFlows.py
when the flow duration curve contains invalid data.SHArC
: Ensure that a flow duration curve for all selected Physical Habitats and the select hydraulic Condition was generated. The flow duration curves are typically saved as 00_Flows/CONDITION/flow_duration_FILI.xlsx
, where FILI
is a placeholder of the first two letters of the selected species and lifestage (Physical Habitat), respectively. For example for Chinook Salmon - Juvenile, FILI
becomes chju
, or for All Aquatic - hydrologic year, FILI
becomes alhy
.00_Flows/InputFlowSeries/flow_series_example_data.xlsx
).ERROR: Could not read parameter type [...] from Fish.xlsx.
get_hsi_curve(self, species, lifestage, par)
function of the Fish()
class (.site_packages/riverpy/cFish.py
) and the SeasonalFlowProcessor
class (riverpy/cFlows.py
) raise this error message when it cannot read a habitat suitability curve from Fish.xlsx
..site_packages/templates/Fish.xlsx
is not opened in any other program.Fish.xlsx
for the considered hydraulic or cover parameter according to SHArC Fish section..site_packages/templates/Fish.xlsx
are part of the following dictionary: self.ls_col_add = {"spawning": 1, "fry": 3, "ammocoetes": 3, "juvenile": 5, "adult": 7, "hydrologic year": 1, "season": 3, "depth > x": 5, "velocity > x": 7, "rearing": 7}
. All lifestages must be defined in self.ls_col_add
, as relative column number to the 0-column of every Fish species. For example, for adding a "rearing"
lifestage for Chinook salmon
(one of the default species), "rearing"
must replace "adult"
, which is in the relative 7th (8-1 for the 0-column) of the Chinook salmon species. If lifestages were otherwise modified, either consider using one of the lifestages defined in the dictionary or modify the dictionary (self.ls_col_add
) in the Fish
class (.site_packages/riverpy/cFish.py
).ERROR: Could not read source file.
Read
class (RiverArchitect/.site_packages/riverpy/cInputOutput.py
) or make_sub_condition
(GetStarted/fSubCondition
) raise this error when the data from the provided workbook or Raster, respectively, cannot be processed.riverpy
: Ensure that the provided workbook respects the input requirements described in the instructions of the applied module.GetStarted/fSubCondition
: Verify the consistency of the Rasters in the source condition and make sure that no other program is using data from the source condition.ERROR: Could not read source project (...)
aprx_origin = arcpy.mp.ArcGISProject(self.ref_lyt_dir + "module_name.aprx")
.aprx_origin
exists (quoted in ERROR-message brackets) and not opened in any other application (e.g., close ArcGIS Pro). If the source (origin) project is missing, re-download it from the source code.ERROR: Could not retrieve reach coordinates.
modification_manager(self, feat_id)
function of the ModifyTerrain()
class (ModifyTerrain/cModifyTerrain.py
) or the make_volume_diff_rasters(self)
function of the VolumeAssessment()
class (VolumeAssessment/cVolumeAssessment.py
) raise this error when the reach extents defined in ModifyTerrain/.templates/computation_extents.xlsx
are not readable. In particular, the command self.reader.get_reach_coordinates(self.reaches.dict_id_int_id[self.current_reach_id])
caused the error.ERROR: Could not run SHArea analysis.
main()
function in ProjectMaker/s40_compare_wua.py
raises this error message when it could not calculate SHArea.ERROR: Could not save best lifespan Raster.
identify_best_features(self)
of MaxLifespan’s ArcpyContainer()
class in MaxLifespan/cActionAssessment.py
when the calculated internal best lifespan Raster is corrupted.MaxLifespan/.cache/
nor the directory MaxLifespan/Output/
or their contents are in use by other programs.ERROR: Could not save CSI Raster associated with ...
make_chsi_hydraulic(self, fish)
of SHArC’s CHSI()
class in SHArC/cHSI.py
when the calculated cHSI Raster is empty or corrupted.SHArC/.cache/
nor the directory SHArC/SHArea/
or their contents are used by another program.ERROR: Could not save cover / H HSI [...] Raster ...
make_hhsi(self, fish_applied)
of SHArC’s HHSI()
class in SHArC/cHSI.py
when the calculated HHSI Raster is empty or corrupted.SHArC/
nor the RiverArchitect/01_Conditions/
directories.ERROR: Could not save RASTER .
save_tif(self, ...)
of [GetStarted][11]’s ConditionCreator()
class in GetStarted/cConditionCreator.py
or make_sub_condition
(GetStarted/fSubCondition.py
) when a Raster file could not be saved to a New or Sub Condition, respectively.RiverArchitect/01_Conditions/
directory.ERROR: Could not save WORKBOOK.
main()
function in ProjectMaker/s40_compare_wua.py
or the write_flow_duration2xlsx(self, ...)
function of the SeasonalFlowProcessor()
class (riverpy/cFlows.py
) raise this error message when they could not save the WORKBOOK
.ERROR: Could not save SHArea-CHSI Raster.
calculate_sha(self)
of SHArC’s CHSI()
class in SHArC/cHSI.py
when the calculated cHSI Raster is empty or corrupted.SHArC/.cache/
nor the directory SHArC/SHArea/
or their contents are in use by other programs.ERROR: Could not set arcpy environment (permissions and licenses?).
arcpy
and/or arcpy.sa
could not set up the work environment.arcpy
and/or a Spatial Analyst extension are not available. Read more on setting up the Python environment.ERROR: Could not transfer net SHArea gain.
main()
function in ProjectMaker/s40_compare_wua.py
raises this error message when it could not copy the calculated SHArea from SHArea_evaluation_unit.xlsx
to REACH_stn_costs_vii.xlsx
.SHArea_evaluation_template_unit.xlsx
and verify the calculated values. Traceback potential error sources in the CHSI Rasters /SHArC/
folder and other error messages.ERROR: Could not transfer SHArea data for [FISH].
main()
function in ProjectMaker/s40_compare_wua.py
raises this error message when it could not retrieve SHArea data from the /SHArC/SHArea/
module to SHArea_evaluation_UNIT.xlsx
.SHArea_evaluation_TEMPLATE_UNIT.xlsx
and verify the calculated values. Traceback potential error sources in the CHSI Rasters /SHArC/
folder and other error messages.ERROR: Could not write flow data set.
write_flow_duration2xlsx(self, ...)
function of the SeasonalFlowProcessor()
class (riverpy/cFlows.py
) when it could not write flow duration data set to RiverArchitect/00_Flows/CONDITION/flow_duration_FILI.xlsx
.00_Flows/CONDITION/flow_duration_FILI.xlsx
and traceback earlier warning and error messages.ERROR: Could not write flow duration curve data (...).
make_flow_duration(self, ...)
or make_condition_flow_duration(self, ...)
functions (SeasonalFlowProcessor()
in RiverArchitect/.site_packages/riverpy/cFlows.py
) when it could not write flow duration curve data to RiverArchitect/00_Flows/CONDITION/flow_duration_FILI.xlsx
.00_Flows/CONDITION/flow_duration_FILI.xlsx
.ERROR: Could not write value to CELL [...]
save_close_wb(self, ...)
(Write()
in RiverArchitect/.site_packages/riverpy/cInputOutput.py
) or write_data_cell(self, column, row, value)
(MakeTable
in .site_packages/riverpy/cMakeTable.py
) when it cannot write a value to RiverArchitect/SHArC/SHArea/
condition_FILI.xlsx`.RiverArchitect/SHArC/SHArea/CONDITION_FILI.xlsx
. Detailed information on SHArC workbook outputs are available in the HHSI input preparation section.ERROR: Could not write SHArea data for [FISH].
main()
function in ProjectMaker/s40_compare_wua.py
raises this error message when it could not write the calculated SHArea to when it cannot write a value to SHArea_evaluation_template_unit.xlsx
.ERROR: Cover Raster calculation (check input data).
ERROR: Extent is not FLOAT. Substituting to extent = 7000.00.
save_design(self, name)
orsave_lifespan(self, name)
functions of the ArcPyAnalysis
class in LifespanDesign/cLifespanDesignAnalysis.py
when the output folder for Rasters (the folder directory is stated in the logfile) contains Rasters of the same name which cannot be deleted.LifespanDesign/Products/Rasters/CONDITION
.ERROR: Existing files are locked. Consider deleting [...] file structure.
get_map_extent(self, direction)
function of the Info()
class in either LifespanDesign/cReadInpLifespan.py
or MaxLifespan/cReadActionInput.py
when mapping.inp
has bad assignments of x-y coordinates (not a number).ERROR: Failed checking *PAR* of *FEATURE*.
ERROR: Function analysis
, which may occur after code modifications.self.parameter_list
s of features (Code Extension / Extend Features within the LifespanDesign module) has valid entries that also occur in analysis_call(*args)
(LifespanDesign/feature_analysis.py
).LifespanDesign/cLifespanDesignAnalysis.py
(Add analysis within the LifespanDesign module).ERROR: Failed to access [...].
open_wb(self, ...)
function of the Read()
(or the inheriting Write()
)class in RiverArchitect/.site_packages/riverpy/cInputOutput.py
or the MakeFlowTable
class in RiverArchitect/.site_packages/riverpy/cMakeTable.py
) when a workbook could not be opened.SHArC
:
00_Flows/CONDITION/flow_duration_FILI.xlsx
, where FILI
is a placeholder of the first two letters of the selected species and lifestage (Physical Habitat), respectively. For example for Chinook Salmon - Juvenile, FILI
becomes chju
, or for All Aquatic - hydrologic year, FILI
becomes alhy
.SHArC/SHArea/CONDITION_sharea_FILI.xlsx
) has been manually deleted, restore it by clicking on the Make HSI Raster (...)
dropdown menu > Select “Hydraulic” or “Cover” options to open the popup window > Select a Condition > Wait until the green button View discharge dependency workbook
becomes active > RETURN to MAIN WINDOW
and repeat habitat raster, raster combination and/or SHArea analysis.SHArC/SHArea/CONDITION_sharea_FILI.xlsx
, verify the data contents and make sure that the file is not opened in any other program.ERROR: Failed to access computation_extents.xlsx.
get_reach_coordinates(self, internal_reach_id)
function of the Read()
class in RiverArchitect/.site_packages/riverpy/cReachManager.py
) when the reach coordinate spreadsheet (ModifyTerrain/.templates/computation_extents.xlsx
) could not be read.ModifyTerrain/.templates/computation_extents.xlsx
(reach preparation within the ModifyTerrain module).ERROR: Failed to access / Failed to load [...]
open_wb(self)
and make_condition_xlsx(self, fish_sn)
functions of the MakeTable()
class in .site_packages/riverpy/cMakeTable.py
) when the template workbook contains errors.ConditionCreator
(cConditionCreator.py
)..site_packages/templates/Fish.xlsx
(SHArC Fish section) and the completeness of SHArC/.templates/Q_sharea_template_si.xlsx
and SHArC/.templates/Q_sharea_template_us.xlsx
. If either template workbook is corrupted or does not exist, re-install missing files.ERROR: Failed to access WORKBOOK.
write_volumes(self, ...)
function of the Writer()
class in RiverArchitect/.site_packages/riverpy/cReachManager.py
) or the __init__(..)
function of the Read()
class in RiverArchitect/.site_packages/riverpy/cInputOutput.py
when The WORKBOOK
is inaccessible or locked by another program.ERROR: Failed to add Raster.
read_hyd_Rasters(self)
of SHArC’s HHSI()
class in SHArC/cHSI.py
when is could not find hydraulic input Rasters.SHArC/
nor the RiverArchitect/01_Conditions/
directories.ERROR: Failed to create WORKBOOK.
- Cause: Error raised by the write_volumes(self, ...)
function of the Writer()
class in .site_packages/riverpy/cReachManager.py
) when the template
it could not add new sheets in VolumeAssessment/Output/CONDITION_volumes.xlsx
or write to copies of VolumeAssessment/templates/volume_template.xlsx
.
VolumeAssessment/Output/CONDITION_volumes.xlsx
and ensure that VolumeAssessment/templates/volume_template.xlsx
was not deleted.ERROR: Failed to open Fish.xlsx. Ensure that the workbook is not open.
edit_xlsx(self)
function of the Fish()
class in .site_packages/riverpy/cFish.py
when .site_packages/templates/Fish.xlsx
is opened by another program or non-existent..site_packages/templates/Fish.xlsx
exists and close any software that may use the workbook.ERROR: Failed to load [...].
make_condition_xlsx(self, ...)
function of the MakeTable()
class in .site_packages/riverpy/cMakeTable.py
when it could not copy a template workbook for creating fish-lifestage-specific flow tables (copy of empty.xlsx
).SHArC/.templates/
exist as provided with the installation files (in particular: empty.xlsx
, CONDITION_sharea_template_si.xlsx
, CONDITION_sharea_template_us.xlsx
, and flow_duration_template.xlsx
).ERROR: Failed to read coordinates from computation_extents.xlsx (return 0).
get_reach_coordinates(self, internal_rach_id)
function of the Read()
class in .site_packages/riverpy/cReachManager.py
) when the reach coordinate spreadsheet (ModifyTerrain/.templates/computation_extents.xlsx
) contains invalid data.ModifyTerrain/.templates/computation_extents.xlsx
(reach preparation within the ModifyTerrain module).ERROR: Failed to read maximum depth to water value for [...].
lower_dem_for_plants* function of the
ModifyTerrain class in
ModifyTerrain/cModifyTerrain.py) when the threshold workbook (
LifespanDesign/.templates/thresh old_values.xlsx`) is not accessible or does not contain values for Depth to water table (min) / max contains invalid data.LifespanDesign/.templates/threshold_values.xlsx
(Modify Threshold Values within the LifespanDesign module). Note that ModifyTerrain starts reading depth to water table values column by column, until it meets a non-numeric value.ERROR: Failed to save PDF map assembly.
make_pdf_maps(self, ...)
function of the Mapper()
class (.site_packages/riverpy/cMapper.py
) raises this error when the map assembly is corrupted.RiverArchitect/02_Maps/CONDITION/maps_CONDITION_lyrXY.aprx
and to export PDF maps in ArcGIS Pro: (1) Go to desired layout tab; (2) Ensure map layout fits desired export; (3) Go to the Share
ribbon and click on the green arrow Layout
(export layout).LifespanDesign/.cache/
, MaxLifespan/.cache/
, ModifyTerrain/.cache/
, LifespanDesign/Output/
, MaxLifespan/Output/
, or ModifyTerrain/Output/
directories or their contents (close ArcGIS Pro and verify read/write rights for RiverArchitect/02_Maps/CONDITION/
).ERROR: Failed to save WORKBOOK.
calculate_sha(self)
of SHArC’s CHSI()
class in SHArC/cHSI.py
when it could not save CONDITION_FILI.xlsx
.SHArC/SHArea/CONDITION_FILI.xlsx
.ERROR: Failed to set reach extents -- output is corrupted.
lower_dem_for_plants(self, feat_id, extents)
function of the ModifyTerrain()
class (ModifyTerrain/cModifyTerrain.py
) or the creation of volume difference Rasters in the make_volume_diff_rasters(self)
function of the VolumeAssessment()
class (VolumeAssessment/cVolumeAssessment.py
) raise this error when the reach extents defined in ModifyTerrain/.templates/computation_extents.xlsx
are not readable.ERROR: FEAT SHORTNAME contains non-valid data or is empty.
get_design_data(self)
in MaxLifespan/cActionAssessment.py
when the feature shortname
Raster is empty or the `shortname* itself does not match the code conventions.shortname
s as listed in the River Design and Restoration Features pages. If a new feature was added, it also needs to be appended in the container lists (self.id_list, self.threshold_cols, self.name_list
) of the Feature()
class in .site_packages/riverpy/cDefinit ions.py
. A new feature also requires modifications of the RiverArchitect/LifespanDesign/.templates/threshold_values.xlsx
spreadsheet (Modify Threshold Values within the LifespanDesign module), in line with the column state in the self.threshold_cols* list of the
Feature()` class.ERROR: Flow series analysis failed.
make_flow_duration(self, ...)
function in riverpy/cFlows.py
(SeasonalFlowAssessment
class) raises this error message when executing the self.build_flow_duration_data(self)
function failed.00_Flows7InputFlowSeries/flow_series_example_data.xlsx
and follow up previous warning and error messages.ERROR: Incoherent data in RAS (Raster comparison).
compare_Raster_set(self, ...)
function of the ArcPyAnalysis()
class in LifespanDesign/cLifespanDesignAnalysis.py
when the provided input Raster RAS
(hydraulic or scour fill or morphological units) are invalid.RAS
Raster and ensure that it complies with the requirements for input Rasters stated in the Conditions / Input Rasters section.01_Conditions/CONDITION/input_definitions.inp
(lines 8 to 18) correspond to the GRID Raster names in the select conditions folder in 01_Conditions/
.ERROR: Input file not available.
get_line_entries(self, line_no)
function of the Info()
class in LifespanDesign/cRead InpLifespan.py
when it cannot access input files.01_Conditions/CONDITION/input_definitions.inp
exists in the directory LifespanDesign/.templates/
corresponding to the definitions in the Input definitions files of the LifespanDesign module.mapping.inp
exists in the directory LifespanDesign/.templates/
corresponding to the definitions in LifespanDesign Output maps.01_Conditions/CONDITION/input_definitions.inp
and mapping.inp
with the original files and re-apply modifications strictly following the Conditions / Input Rasters section.ERROR: Input Rasters contain invalid data.
D2W
class (GetStarted/cDepth2Groundwater.py
) or the DET
class (GetStarted/cDetrendedDEM.py
) when the defined DEM or flow depth GeoTIFF are not usable.ERROR: Insufficient data. Check Raster consistency and add more flows(?).
compare_Raster_set(self, Raster_set, threshold)
function in LifespanDesign/cLifespanDesignAnalysis.py
raises this error when insufficient hydraulic Rasters are provided or when the provided hydraulic Rasters have inconsistent data.u
and h
) Rasters that correspond to two different discharges (one u
and one h
Raster per discharge).01_Conditions/CONDITION/input_definitions.inp
(Input definitions files of the LifespanDesign module).ERROR: Invalid cell assignment for discharge / Rasters.
make_condition_xlsx(self, fish_sn)
function of the MakeTable()
class in .site_packages/riverpy/cMakeTable.py
) when it cannot write discharge values to RiverArchitect/SHArC/SHArea/CONDITION_FILI.xlsx
.RiverArchitect/SHArC/SHArea/CONDITION_FILI.xlsx
is not used by any other application.ERROR: Invalid date and / or flow ranges in discharge series.
make_flow_season_data(self, ...)
function (SeasonalFlowProcessor
class in .site_packages/riverpy/cFlows.py
) when the data provided in the flow series workbook cannot be interpreted.00_Flows/InputFlowSeries/flow_series_example_data.xlsx
). In particular, the date and discharge columns and start rows are hard-coded (we will work on the issue in future …) and need to correspond those in the sample data set.ERROR: Invalid date assignment (Fish.xlsx).
get_season_dates(self, ...)
function of the Fish()
class in .site_packages/riverpy/cFish.py
ot the build_flow_duration_data(self)
function (SeasonalFlowProcessor
class in .site_packages/riverpy/cFlows.py
) when either function cannot read the dates defined in .site_packages/templates/Fish.xlsx
..site_packages/templates/Fish.xlsx
corresponds to template conditions.ERROR: Invalid feature ID.
__init__(self, ...)
function of the ThresholdDirector()
class in /LifespanDesign/cThresholdDirector.py
, when the feature IDs (shortnames) in /LifespanDesign/.templates/threshold_values.xlsx
are incorrectly defined./LifespanDesign/.templates/threshold_values.xlsx
(Modify Threshold Values within the LifespanDesign module).ERROR: Invalid file name or data.
save_close_wb(self, *args)
function of the MakeTable()
or Write()
class in .site_packages/riverpy/cMakeTable.py
) or RiverArchitect/.site_packages/riverpy/cInputOutput.py
), respectively, when it cannot save a workbook (typically RiverArchitect/SHArC/SHArea/CONDITION_FILI.xlsx
or a copy of the cost master workbook).CONDITION_FILI.xlsx
and ensure that its template exists. Detailed information on SHArC workbook outputs are available in the HHSI input preparation.REACH_stn_costs_VERSION.xlsx
) and ensure that it exists. Detailed information is available in ProjectMaker Cost quantity section.ERROR: Invalid interpolation data type (type(Q flowdur) == ...)
interpolate_flow_exceedance(self, Q_value)
of SHArC’s FlowAssessment()
class in SHArC/cFlows.py
when the flow duration curve contains invalid data.SHArC/FlowDurationCurves/
. The file structure must correspond to that of the provided template flow_duration_template.xlsx
. Review the HHSI input preparation for details.ERROR: Invalid x-y coordinates in extent source [mapping.inp / reaches].
make_pdf_maps(self, ...)
function of the Mapper
class in .site_packages/riverpy/cMapper.py
raises this error when either the LifespanDesign/.templates/mapping.inp
, MaxLifespan/.templates/mapping.inp
, or ModifyTerrain/.templates/computation_extents.xlsx
contains invalid map definitions (extents).LifespanDesign/.templates/mapping.inp
and/or ModifyTerrain/.templates/computation_extents.xlsx
are valid numeric values according to the module descriptions.ERROR: Invalid keyword for feature type.
Manager
class in MaxLifespan/cFeatureActions.py
raises this error when it received a feature_type
argument that is not "terraforming"
, "plantings"
, "nature-based engineering"
, or "maintenance"
. The error may occur either after code modifications or whengeo_file_maker(condition, feature_type, *args)
in MaxLifespan/action_planner.py
was executed as standalone or imported as a package in an external application.geo_file_maker(condition, feature_type, *args)
contain an acceptable feature_type
(i.e., feature_type=
either "terraforming"
, "plantings"
, "nature-based engineering"
, or "maintenance"
).ERROR: Invalid reference map for [...] (skipping).
ERROR: Invalid volume name.
write_volumes(self, ...)
function of the Writer()
class in .site_packages/riverpy/cReachManager.py
, when the template
sheet in the output (or template) workbook (VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
) are inaccessible.VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
are not opened in any other program.ERROR: Lifespan data fetch failed.
get_lifespan_data(self)
orget_design_data(self)
function of the ArcpyContainer
class in MaxLifespan/cActionAssessment.py
raise this error when it could not retrieve lifespan or design maps from the defined lifespan/design input directory.ERROR: Mapping could not assign xy-values. Undefined zoom.
zoom2map(self, xy)
functions of the Mapper()
class (.site_packages/riverpy/cMapper.py
) when it receives a bad format of x-y values.mapping.inp
is correct.ModifyTerrain/.templates/computation_extents.xlsx
(reach preparation within the ModifyTerrain module).ERROR: Mapping failed.
make_pdf_maps(self, ...)
function of the Mapper()
class (.site_packages/riverpy/cMapper.py
) raises this error when it could not create PDF
maps.RiverArchitect/02_Maps/templates/river_template.aprx
and/or RiverArchitect/02_Maps/CONDITION/map_CONDITION_design.aprx
. Note that modifying layout and/or layer names may cause this error. Therefore, the template layer and layout names must not be changed. Read more about modifications of the smybology, legend, map extents, or code modifications in the Mapping wiki.ERROR: Map layout preparation failed.
prepare_layout(self, ...)
function of the Mapper()
class (.site_packages/riverpy/cMapper.py
) raises this error when it encounters problems with either the provided Rasters or the layouts in the ArcGIS project file (.aprx
).ERROR: Missing (or wrong format of) Raster input definitions.
get_line_entries(self, line_no)
function of the Info()
class in LifespanDesign/cReadInpLifespan.py
when 01_Conditions/CONDITION/input_definitions.inp
is corrupted.01_Conditions/CONDITION/input_definitions.inp
exists in the directory LifespanDesign/.templates/
corresponding to the definitions in the input definitions files. In case of doubts: Replace 01_Conditions/CONDITION/input_definitions.inp
with the original file and re-apply modifications strictly following the Conditions / Input Rasters section.ERROR: Multiple openings of Fish.xlsx. Close all office apps ...
assign_fish_names(self)
function of the Fish()
class in .site_packages/riverpy/cFish.py
when .site_packages/templates/Fish.xlsx
is opened by another program or non-existent..site_packages/templates/Fish.xlsx
exists and close any software that may use the workbook.ERROR: No HSI assigned for parameter type ...
get_hsi_curve(self, species, lifestage, par)
function of the Fish()
class in SHArC/cFish.py
when .site_packages/templates/Fish.xlsx
it expected a habitat suitability curve for `par*, but it could not find values...site_packages/templates/Fish.xlsx
has valid contents according to SHArC Fish section.ERROR: No project/layout available (...).
ERROR: No reference layout found for [...] (skipping).
ERROR: No reference map found for [...] (skipping).
ERROR: *PAR* - Raster copy to Output/Rasters folder failed.
.cache
folder does not exist or does not contain GRID Rasters or the output folder is not accessible. This error is likely to occur when other errors occurred previously..cache
, 01_Conditions/
, LifespanDesign/Output/Rasters/
and 02_Maps/CONDITION/
.ERROR: Raster copy to Output folder failed.
save_Rasters(self)
function of the ModifyTerrain()
class in ModifyTerrain/cModifyTerrain.py
raises this error when saving a terrain difference or new DEM Raster failed.ERROR: Raster could not be saved.
message.ERROR: Raster could not be saved.
save_rasters(self)
function of the ModifyTerrain()
(ModifyTerrain/cModifyTerrain.py
) or the VolumeAssessment
class (VolumeAssessment/cVolumeAssessment.py
) raise this error when a terrain differences or new DEM Raster is corrupted.NoData
pixels only. The design parameters or Raster of the concerned feature need to be reviewed.ModifyTerrain/.cache/
folder is locked by another program. Close potential applications, and if necessary, reboot the system.ModifyTerrain/.cache/
was not empty before the module execution, error may occur. Manually delete ModifyTerrain/.cache/
if it still exists after a run task.ModifyTerrain/Output/Rasters/CONDITION/
or VolumeAssessment/Output/PSEUDO_CONDITION/
was deleted or it is locked by another program. Ensure that the directory exists and no other program uses ModifyTerrain/Output/Rasters/CONDITION/
or VolumeAssessment/Output/PSEUDO_CONDITION/
or their contents.ERROR: Scale is not INT. Substituting scale: 2000.
get_map_scale(self)
function of the Info()
class in either LifespanDesign/cReadInpLifespan.py
or MaxLifespan/cReadActionInput.py
when it cannot interpret the value assigned to the map scale.mapping.inp
(in LifespanDesign/.templates/
or MaxLifespan /.templates/
) has a correct assignment of the map scale according to the descriptions in LifespanDesign Output maps.ERROR: Shapefile conversion failed.
calculate_sha(self)
of SHArC’s CHSI()
class in SHArC/cHSI.py
when it could not convert the CHSI Raster to a shapefile.SHArC/.cache/
nor the directory SHArC/SHArea/
or their contents are in use by other programs.ERROR: TEMPLATE sheet does not exist.
make_condition_xlsx(self, fish_sn)
of the MakeTable()
class in .site_packages/riverpy/cMakeTable.py
) when the template
sheet in the output (template) workbooks SHArC/.templates/CONDITION_sharea_template_[...].xlsx
) are corrupted.SHArC/.templates/CONDITION_sharea_template_[...].xlsx
contains the summary
sheet and that SHArC/.templates/empty.xlsx
is available; re-install the templates if necessary.ERROR: The provided boundary file (%s) is invalid.
make_sub_condition
in RiverArchitect/GetStarted/fSubCondition.py
), when the defined shapefile or Raster contains invalid data.ERROR: The Raster name is not coherent with the name conventions. Name correction needed.
MakeFlowTable
class (riverpy/cMakeTable.py
) when a Raster was wrongly identified as being a flow depth Raster because of a violation of file name conventions.01_Conditions/CONDITION/
folder follow the file name conventions. If the Condition folder contains other files than flow depth and velocity GeoTiffs starting with the letter h
or u
, rename these files or remove them from the Condition folder.ERROR: The selected folder does not contain any depth/velocity Raster containing the defined string.
ConditionCreator
class (GetStarted/cConditionCreator.py
) when the defined folder does not contain any valid depth or velocity Raster.ERROR: The source discharge file contains non-detectable formats (...).
RiverArchitect/SHArC/FlowDurationCurves/flow_series_example_data.xlsx
) as template workbook for preparing flow series. The flow series workbook must be an .xlsx
file and the dates must be contained in col. A
, starting from row 3
. The default format is DD-MMM-YY
(e.g., 14-June-88 for June 14th, 1988).ERROR: u/h/hyd--Raster analysis does not accept ras_*name* Raster.
Raster_info
.ERROR: Volume value assignment failed.
write_volumes(self, ...)
function of the Writer()
class in .site_packages/riverpy/cReachManager.py
) when it received invalid volume data.VolumeAssessment/Output/CONDITION_volume.xlsx
and traceback earlier errors (modified DEM Rasters may be corrupted).ERROR: Writing failed.
write_volumes(self, ...)
function of the Writer()
class in .site_packages/riverpy/cReachManager.py
) when the template
it could not add new sheets in VolumeAssessment/Output/CONDITION_volumes.xlsx
or write to copies of VolumeAssessment/templates/volume_template.xlsx
.ERROR: Failed to create WORKBOOK
.ERROR: Wrong format of lifespan list (.inp)
lifespan_read(self)
(in LifespanDesign/cReadInpLifespan.py
) when the lifespan list in 01_Conditions/CONDITION/input_definitions.inp
has a wrong format or is empty.01_Conditions/CONDITION/input_definitions.inp
(in LifespanDesign/.templates/
) contains a lifespan list (return periods list) with not more than six comma-separated entries according to the definitions in the Input definitions files of the LifespanDesign module.ExceptionERROR: (arcpy) [...].
arcpy
application of any module encountered problems; e.g., the analysis_...
and design_...
functions in LifespanDesign/cLifespanDesignAnalysis.py
raise this error when Raster calculations could not be performed. Missing Rasters, bad Raster assignments or bad Raster calculation expressions are possible reasons. The error can also occur when the SpatialAnalyst
license is not available.SpatialAnalyst
license is available.analysis_...
and design_...
functions (LifespanDesign/cLifespanDesignAnalysis.py
).analysis_...
and design_...
functions (LifespanDesign/cLifespanDesignAnalysis.py
).cParameters.py
and input files *.inp
according to the Conditions / Input Rasters section).ExceptionERROR: Cannot find package files [...].
ExceptionERROR: Cannot open reference (condition) ...
ModifyTerrain()
class (__init__(self,condition, feature_type, *args)
) in ModifyTerrain/cModifyTerrain.py
when it cannot find a … Raster in 01_Conditions/CONDITION/
(or other user-defined input directory), where … is either a dem.tif
or a wt_depth_base.tif
Raster. A wt_depth_base.tif
Raster is required for automated terrain modification after grading and/or widen features.dem
or a wt_depth_base
) exists in 01_Conditions/CONDITION/
, or if applies, the user-defined input directory. If no wt_depth_base.tif
Raster is available, the terrain modification of grading and/or widen features cannot be automated. In this case, consider adding a new DEM automation function (explained in the Add Routine section in the ModifyTerrain module) or modifying the DEM manually.ExceptionERROR: Could not find base Raster for assigning lifespans.
ArcpyContainer()
class (__init__(self,condition, feature_type, *args)
) in MaxLifespan/cActionAssessment.py
when it cannot find its zero Raster template in MaxLifespan/.templates/Rasters/zeros.tif
.ExceptionERROR: Unable to create ZERO Raster. Manual intervention required:...
to manually create the MaxLifespan/.templates/Rasters/zeros.tif
Raster.ExceptionERROR: Missing fundamental packages (required: ...).
ExceptionERROR: Unable to create ZERO Raster. Manual intervention required
Geoprocessing
dropdown menu: Python
).Enter the following sequences (replace REPLACE_...
according to the local environment):
import os
from arcpy.sa import *
zero_ras_str = os.getcwd() + ".templates\Rasters\zeros.tif"
condition = "REPLACE_CONDITION"
base_dem = arcpy.Raster("REPLACE_PATHRiverArchitectLifespanDesignInput" + condition + "dem.tif")<br/>
arcpy.gp.overwriteOutput = True<br/>
arcpy.env.extent = base_dem.extent<br/>
arcpy.env.workspace = “D:\PythonRiver\Architect\LifespanDesign\Input" + condition + “”<br/>
zero_ras = Con(IsNull(base_dem), 0, 0)<br/>
zero_ras.save(zero_ras_str)`
ExecuteERROR: (arcpy) [...].
ExceptionERROR: (arcpy) ...
. The error is raised by arcpy
applications of all modules; e.g., by the analysis_...
and design_...
functions in LifespanDesign/cLifespanDesignAnalysis.py
or when Raster calculations could not be performed. Missing Rasters, bad Raster assignments or bad Raster calculation expressions are possible reasons. The error can also occur when the SpatialAnalyst
license is not available.ExceptionERROR: (arcpy) [...]
Internal Error: ... .
OSError: ....
arcpy
raises this error for various reasons; in particular, if code was modified or the code environment is not set up properly.WindowsError: [Error 32] The process cannot access the file because ...
.cache
folder or the Output
folder are used by another program.WARNING: .cache folder will be removed by package controls.
clear_cache(self)
of SHArC’s CHSI()
class in SHArC/cHSI.py
when it could not clear and remove the .cache/
folder.SHArC/.cache/
, and if necessary, delete the folder manually after quitting the module.WARNING: ### is not a number.
float
-number type was expected, but another, non-convertible format was provided.nan
formats (NoData
for Rasters and empty cells for workbooks) only.WARNING: Bad value ( ... ).
calculate_sha(self)
of SHArC’s CHSI()
class in SHArC/cHSI.py
when a CHSI polygon contains an invalid value.SHArC/CHSI/CONDITION/
.WARNING: Cannot identify reaches.
VolumeAssessment().__init__(...)
in VolumeAssessment/cVolumeAssessment.py
when the provided reach names are inconsistent with those listed in ModifyTerrain/.templates/computation_extents.xlsx
.ModifyTerrain/.templates/computation_extents.xlsx
does not contain more than eight reaches (i.e., only cells B6:C13
contain reach names and identifiers, also see reach preparation within the ModifyTerrain module).WARNING: Cannot load ...\LifespanRasterSymbology.lyrx.
prepare_layout(...)
of the Mapper()
(.site_packages/riverpy/cMapper.py
) when it cannot load /RiverArchitect/02_Maps/templates/symbology/LifespanRasterSymbology.lyrx
./RiverArchitect/02_Maps/templates/symbology/LifespanRasterSymbology.lyrx
exists and that the layer file is not broken (e.g., by opening the file in ArcGIS Pro).WARNING: Cannot zoom to defined extent.
zoom2map(...)
function of the Mapper()
class (.site_packages/riverpy/cMapper.py
) when it cannot interpret the provided coordinates.mapping.inp
and the reach definitions
files contain valid data.
+ LifespanDesign: Ensure that either a correct background Raster dataset was defined prior to mapping.WARNING: computation_extents.xls contains too many reach names.
Read().get_reach_info(self, type)
in .site_packages/riverpy/cReachManager.py
when ModifyTerrain/.templates/computation_extents.xlsx
contains more than eight reach names in columns B
and/or C
.ModifyTerrain/.templates/computation_extents.xlsx
does not contain more than eight reaches (i.e., only cells `B6:C13* contain reach names and identifiers, also see reach preparation within the ModifyTerrain module).WARNING: Conversion to polygon failed (FEAT).
identify_best_features(self)
in MaxLifespan/cActionAssessment.py
when the arcpy.RasterToPolygon_conversion(FEAT Raster)
failed (e.g., because of an empty FEAT
Raster).FEAT
Raster of best lifespans occurs when the feature has no spatial relevance. Consider other terrain modifications or maintenance features to increase the features lifespans and start over planning the feature (set).WARNING: Could not access hydraulic Raster extents. Using MAXOF instead.
D2W
class (GetStarted/cDepth2Groundwater.py
) when the defined flow depth GeoTIFF has no valid extents.WARNING: Could not clear/remove .cache.
.cache
folder was accessed and locked by another software.explorer.exe
, uses the MODULE/.cache
folder.WARNING: Could not clean up PDF map temp_pages.
make_pdf_maps(self, map_name, *args, **kwargs)
functions of the Mapper()
class (.site_packages/riverpy/cMapper.py
) creates single PDF
s of every map image (extents defined in mapping.inp or the reach coordinates workbook). These single-page PDF
s are finally combined into one PDF
map assembly and the single-page PDF
s are deleted afterward.PDF
files in RiverArchitect/02_Maps/CONDITION/
while mapping is in progress (close ArcGIS Pro).WARNING: Could not crop lifespan Raster extents to wetted area.
ArcPyAnalysis
class (LifespanDesign/cLifespanDesignAnalysis.py
) when it failed to crop lifespan maps (Rasters) to the extents of the depth Raster associated with the highest discharge analyzed.NoData
values (otherwise, all NoData
pixels are excluded from the lifespan Raster):Con((IsNull(hQQQQQQ) == 1), (IsNull(hQQQQQQ) * 0), Float(hQQQQQQ))
WARNING: Could not divide [...] by [...]
calculate_relative_exceedance(self)
of SHArC’s FlowAssessment()
class in SHArC/cFlows.py
when the flow duration curve contains invalid data.SHArC/FlowDurationCurves/
. The data types and file structure must correspond to that of the provided template flow_duration _template.xlsx
and all discharge values need to be positive floats. Review the HHSI input preparation for details.WARNING: Could not find Lifespan Raster (...).
ProjectMaker/s30_terrain_stabilization/
’s or ProjectMaker/s21_plantings_stabilization/
’s main()
function when it cannot find lifespan Rasters.Grains / Boulders
(lf_grains.tif
), and optionally requires Streamwood
(lf_wood.tif
) and nature-based engineering (other)
(lf_bio.tif
).WARNING: Could not get flow depth Raster properties. Setting [...]
crop_input_Raster(self, ...)
function (SHArC/cHSI.py
) prints this warning message when it cannot read the Raster properties from the defined input flow depth Raster.RiverArchitect/01_Conditions/CONDITION/
.WARNING: Could not get minimum flow depth [...]. Setting h min [...]
crop_input_Raster(self, ...)
function (SHArC/cHSI.py
) prints this warning message when it could not read the minimum flow depth from Fish.xlsx
. A default value of 0.1 (ft or m) is used to delineate relevant flow regions.Fish.xlsx
according to the definitions in CoverHSI.WARNING: Could not identify maximum flow in flow duration curve.
get_flow_duration_data(self, ...)
function (riverpy/cFlows.py
) prints this warning message when it could not identify a maximum flow for interpolating flow exceedance probabilities.00_Flows/CONDITION/flow_duration_fili
and verify that the discharges in the first spreadsheet are correct.WARNING: Could not load /01_Conditions/CONDITION/back.tif - ...
sect_extent()
function (LifespanDesign/cLifespanDesignAnalysis.py
) prints this warning message when it could not load the back.tif
Raster in the CONDITION
folder. This warning message can only occur when the checkbox Limit computation extent to background (back.tif) Raster
is activated.back.tif
Raster in the CONDITION
folder. Otherwise, uncheck the checkbox, but using a background Raster back.tif
is strongly recommended.WARNING: Could not reset styles.
Write().write_volumes(self, ...)
in .site_packages/riverpy/cReachManager.py
when the template
sheet in the output (template) workbook (VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
) is either locked or not accessible.VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
and that both workbooks have not been accidentally deleted.WARNING: Could not read project area extents.
SHArC.get_extents(self, ...)
in ProjectMaker/cSHArC.py
when the function failed to read the project area extents from the ProjectArea.shp
shapefile.ProjectArea.shp
shapefile is correctly created (in particular the Attributes Table), according to Project Area Polygon preparation.WARNING: Could not remove .cache folder.
.cacheXXXXXXX
folder failed..cache
folders in the concerned modules manually.WARNING: Could not set project area extents ().
SHArC().set_env(self)
in /ProjectMaker/cSHArC.py
when the function failed to set project area extents.WARNING: Design map - Could not assign frequency threshold. [...]
design_...
functions ) LifespanDesign/cLifespanDesignAnalysis.py
) cannot identify a particularthreshold_freq
value,design_...
functions automatically try to use hydraulic data related to the first entry of lifespans* (
Return periods entry in
01_Conditions/CONDITION/input_definitions.inp`, see the Input definitions files of the LifespanDesign module).Mobility frequency threshold
row of the LifespanDesign/.templates/threshold_values.xlsx
spreadsheet (see also Modify Threshold Values within the LifespanDesign module).Mobility frequency threshold* float is consistent with the defined
Return periods in
01_Conditions/CONDITION/input_definitions.inp` (see the Input definitions files of the LifespanDesign module).WARNING: Empty design Raster [...]
WARNING: Empty lifespan Raster [...]
WARNING: Failed to align input raster [...].
ConditionCreator().fix_alignment
in GetStarted/cConditionCreator.py
when it could not align the stated raster.Tools/rename_files.py
script (see inline code comments for instructions) to adapt all files to the River Architect filename convention and re-run Align Rasters
(if required).WARNING: Failed to arrange worksheets.
Write().write_volumes(self, ...)
in .site_packages/riverpy/cReachManager.py
when it could not bring to the front the latest copy of the template
sheet in the output (template) workbook (VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
), which contains the calculation results.VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
and that both workbooks have not been accidentally deleted.WARNING: Failed to write unit system to worksheet.
Write().write_volumes(self, ...)
in .site_packages/riverpy/cReachManager.py
when it could not write volume (numbers) to a copy of the template
sheet in the output (template) workbook (VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
).VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
and that both workbooks have not been accidentally deleted.WARNING: Flow_duration[...].xlsx has different lengths of [...]"
get_flow_data(self, *args)
of SHArC’s FlowAssessment()
class in SHArC/cFlows.py
when the flow duration curve contains invalid data.B
and C
of the flow duration curve workbook have the same length (in particular the last value/row must be the same) and check for empty cells.WARNING: Identification failed (FEAT).
identify_best_features(self)
in MaxLifespan/cActionAssessment.py
when the analyzed feature cannot be matched with the internal best lifespan Raster.WARNING: Invalid curve data (Fish.xlsx): PAR= ... , HSI= ... .
HHSI().nested_con_raster_calc(self, ...)
in SHArC/cHSI.py
when the HSI curve data provided in .site_packages/templates/Fish.xlsx
are non-numeric or otherwise invalid.Fish.xlsx
are correctly defined according to the definitions.Fish.xlsx
are suitable numeric values for linear interpolation.WARNING: Invalid feature names for column headers.
Write().write_volumes(self, ...)
in .site_packages/riverpy/cReachManager.py
when it could not write feature names to a copy of the template
sheet in the output (template) workbook (VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
).ModifyTerrain/.templates/computation_extents.xlsx
contains valid reach descriptions (reach preparation within the ModifyTerrain module).VolumeAssessment/Output/CONDITION_ volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
and that both workbooks have not been accidentally deleted.WARNING: Invalid alignment Raster name ([...]).
ConditionCreator().fix_alignment(self, ...)
in GetStarted/cConditionCreator.py
when it could not open the stated raster.Tools/rename_files.py
script (see inline code comments for instructions) to adapt all Raster filenames to the River Architect filename convention and re-run Align Rasters
(if required).WARNING: Invalid type assignment -- setting reach names to IDs.
Read().get_reach_info(self, type)
in .site_packages/riverpy/cReachManager.py
when The type
argument is notfull_name* or
Id. In this case, the [*ModifyTerrain*][5] module uses column
C in
ModifyTerrain/.templates/computation_extents.xlsx` for reach names and IDs.type* variable is in the
allowed_types = [“full_name”, “id”]` list.WARNING: Invalid unit_system identifier.
ModifyTerrain.__init__()
( ModifyTerrain/cModifyTerrain.py
) or the VolumeAssessment.__init__()
( VolumeAssessment/cVolumeAssessment.py
) when the unit system identifier is not either us
or si
. The program will use the default unit system (U.S. customary).var = mt.ModifyTerrain(condition=..., unit_system=..., ...)
.WARNING: Merge operation failed (empty shapefiles?).
ProjectMaker/s30_terrain_stabilization/
’s main()
function when the nature-based engineering and Angular Boulder shapefiles for stabilizing the terrain failed.ProjectMaker/ProjectName/Geodata/Shapefiles/Terrain_stab.shp
or .../Terrain_boulder_stab.shp
) may be empty. Check source data or consider to change the user-defined requried critical lifespan.WARNING: No Lifespan / Design Raster found (...).
MaxLifespan
’s Director
class (MaxLifespan/cFeatureActions.py
) when it cannot find any valid lifespan or design Raster for a condition.LifespanDesign/Output/Rasters/CONDITION/
(e.g., empty Rasters and Raster names must contain lf
or ds
to be recognized).WARNING: Non-numeric values in data.
Interpolator
class (.site_packages/riverpy/cInterpolator.py
) when the x data points that should get an interpolated y-value are not numeric.WARNING: Old logfile is locked [...].
logging_start(logfile_name)
function (multiple classes) when the logfiles are locked by another process. The parenthesis [...]
indicates the concerned run task.WARNING: PlantExisting.shp is corrupted or non-existent.
ProjectMaker/s20_plantings_delineation/
’s main()
function when it could not process the existing plants shapefile.ProjectMaker/ProjectName/Geodata/Shapefiles/PlantExisting.shp
) is correctly set up according to the descriptions in the wiki. However, this raster is not absolutely required.WARNING: Substituting user-defined crit. lifespan (...) with ....
ProjectMaker/s30_terrain_stabilization/
’s main()
function when the user-defined critical lifespan for terrain stabilization does not exaclty correspond to the available hydraulic Rasters defined for the provided Condition.WARNING: The provided path to Rasters for mapping is invalid. Using templates instead.
Mapper()
class in .site_packages/riverpy/cMapper.py
when it could not process the provided input Raster path.Mapper()
received correct CONDITION
and map_type
arguments. Otherwise, Mapper()
will use the template Raster files located in RiverArchitect/02_Maps/templates/Rasters/
.WARNING: Volume value assignment failed.
Write().write_volumes(self, ...)
in .site_packages/riverpy/cReachManager.py
when it could not write volume (numbers) to a copy of the template
sheet in the output (template) workbook (VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
).VolumeAssessment/Output/CONDITION_volumes.xlsx
or VolumeAssessment/.templates/volume_template.xlsx
and that both workbooks have not been accidentally deleted.