Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-roof landuse not mapped #5

Open
schoeller opened this issue Oct 5, 2021 · 2 comments
Open

Non-roof landuse not mapped #5

schoeller opened this issue Oct 5, 2021 · 2 comments

Comments

@schoeller
Copy link
Contributor

schoeller commented Oct 5, 2021

Dear all,

thanks for this opensource.

When executing

./GisToSWMM5 raster_dem.asc raster_flowdir.asc raster_landuse.asc table_catchment_props.csv table_junctions.csv table_conduits.csv table_outfalls.csv table_header.csv table_evaporation.csv table_temperature.csv table_snowpacks.csv table_raingages.csv table_inflows.csv table_timeseries.csv table_pumps.csv table_curves.csv table_storage.csv table_dwf.csv table_patterns.csv table_losses.csv table_xsection.csv table_report.csv table_symbols.csv test/out 1

I receive

Report:
-> Running time: 0.137109 minutes
-> Total number of cells: 146
-> Number of active cells: 146
-> Catchment area: 5.6865 ha
-> Catchment average elevation: 0 m
-> Catchment average slope: 0
-> Landuse information (code, number of cells, area in ha, % of catchment):
        10      54      2.3627  41.5493
        12      51      1.9307  33.9523
        14      41      1.3931  24.4984
        26      0       0       0
        30      0       0       0
        32      0       0       0
        34      0       0       0
        60      0       0       0
        62      0       0       0
        64      0       0       0

This means that no non-roof landuse cells are mapped. The table_catchment_props.csv reads

id,imperv,dst_imp,n_imper,dst_per,n_perv,percz_i,rain_ga,conduct,initdef,suction,Snowpacks,Tag
10,100,0.87,0.012,0.87,0.012,0,STA01,4.21,0.217,88.9,sp_imp_nonplowable,Dach
12,100,0.87,0.012,0.87,0.012,0,STA01,4.21,0.217,88.9,sp_imp_nonplowable,Kiesdach
14,100,0.87,0.012,0.87,0.012,0,STA01,4.21,0.217,88.9,sp_imp_nonplowable,Gründach
26,100,0.87,0.012,0.87,0.012,0,STA01,4.21,0.217,88.9,sp_imp_nonplowable,Container
30,100,0.42,0.011,0.42,0.011,0,STA01,4.21,0.217,88.9,sp_imp_plowable,Asphalt
32,100,0.39,0.02,0.39,0.02,0,STA01,4.21,0.217,88.9,sp_imp_plowable,Pflaster
34,100,4.22,0.238,4.22,0.238,0,STA01,4.21,0.217,88.9,sp_imp_nonplowable,Senke
60,0,4.22,0.238,4.22,0.238,0,STA01,4.21,0.217,88.9,sp_per,Grünfläche
62,0,4.22,0.238,4.22,0.238,0,STA01,4.21,0.217,88.9,sp_per,Wald
64,100,4.22,0.238,4.22,0.238,0,STA01,4.21,0.217,88.9,sp_imp_nonplowable,Wasser

Header of raster_flowdir.asc

ncols        470
nrows        358
xllcorner    3476805.690999999642
yllcorner    5532655.959999999031
cellsize     1.000000000000
NODATA_value 247
 5 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ]

Header of raster_landuse.asc

ncols        466
nrows        490
xllcorner    3476809.000000000000
yllcorner    5532523.000000000000
cellsize     1.000000000000
NODATA_value  nan
 nan nan nan nan nan nan nan nan nan

Any hints very much appreciated.

Best regards

Sebastian

@schoeller
Copy link
Contributor Author

Corrected the input rasters to contain equal cols/rows, but still not working:

DEM:

ncols        470
nrows        358
xllcorner    3476805.690999999642
yllcorner    5532655.959999999031
cellsize     1.000000000000
NODATA_value  -9999
 -9999.0 -9999 -9999 -9999 

FLOWDIR:

ncols        470
nrows        358
xllcorner    3476805.690999999642
yllcorner    5532655.959999999031
cellsize     1.000000000000
NODATA_value 255
 255 255 255 255 255 255

LANDUSE:

ncols        470
nrows        358
xllcorner    3476805.690999999642
yllcorner    5532655.959999999031
cellsize     1.000000000000
NODATA_value  nan
 nan nan nan nan nan nan

Output:

...
-> Error, no data to calculate slope between cells 168213 and 167743.
-> Error, no data to calculate slope between cells 168214 and 167743.
...
-> Running time: 0.0958115 minutes
-> Total number of cells: 146
-> Number of active cells: 146
-> Catchment area: 5.6865 ha
-> Catchment average elevation: 0 m
-> Catchment average slope: 0
-> Landuse information (code, number of cells, area in ha, % of catchment):
        10      54      2.3597  41.4965
        12      51      1.9333  33.9981
        14      41      1.3935  24.5054
        26      0       0       0
        30      0       0       0
        32      0       0       0
        34      0       0       0
        60      0       0       0
        62      0       0       0
        64      0       0       0

@siamak6566
Copy link

Dear @schoeller
I have the same issue. Please let me know if you find any solution for this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants