Skip to content

Mesh() error when threshold_area is too small  #19

@JoseBecerra1

Description

@JoseBecerra1

I got this error when the threshold_area I provided was too small:

RuntimeError: GDAL Error: Attempt to write non-linestring (POINT) geometry to ARC type shapefile.. Failed to write record: fiona.Feature(geometry=fiona.Geometry(coordinates=(462403.9949140873, 3806450.5908913515), type='Point'), id='95', properties=fiona.Properties(FID=96, STRM_VAL=1.0), type='Feature')

I first used a threshold of 15,000, which resulted in this error. I then used 150,000, which is more applicable for catchment size and cell resolution and Mesh() worked.

Perhaps we can send an error message like "threshold_area too small"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions