csdms-contrib / fwdet

Calculate floodwater depth based on an inundation polygon (e.g. from remote sensing) and a DEM. See: http://csdms.colorado.edu/wiki/Model:FwDET
GNU General Public License v2.0
57 stars 28 forks source link

The Lyons.gdb data isn't projecting correctly #5

Open WeatherGod opened 4 years ago

WeatherGod commented 4 years ago

I have tried a few different tools and a few different transform options, but I can't seem to get the data in the test_case/Lyons.gdb to project into WGS84 anywhere close to Colorado. Instead, it keeps ending up at the right longitudes (I believe), but over the equator. My guesses are that either the data's projection information is incorrect, or that the y coordinates are incorrect. Perhaps there is some constant y-offset for that needs to be applied?

cefect commented 3 years ago

had the same problem.. couldn't track down any properly referenced data. tool should still run on the data with broken CRS (so long as everything lines up)

sagycohen commented 2 years ago

I uploaded a new case study (Pee Dee River).

vaib290592 commented 2 years ago

QGIS version: 3.12.1-București QGIS code revision: 121cc00ff0 Qt version: 5.11.2 GDAL version: 3.0.4 GEOS version: 3.8.1-CAPI-1.13.3 PROJ version: Rel. 6.3.1, February 10th, 2020 Processing algorithm… Algorithm 'FwDET v1' starting… Input parameters: { 'DEM_INPUT' : 'D:/BIHAR DEM/reproflood.tif', 'FLOOD_DEPTH_OUTPUT' : 'TEMPORARY_OUTPUT', 'FLOOD_POLYGON_INPUT' : 'D:/BIHAR DEM/flood.shp|layername=flood' }

D:/BIHAR DEM/reproflood.tif shapes_grid "Clip Grid with Polygon" -INPUT "C:/Users/vaibhav/AppData/Local/Temp/processing_JnBfmY/86b6d6622fd64c38a1acef999779cbe8/reproflood.sgrd" -POLYGONS "D:\BIHAR DEM\flood.shp" -OUTPUT "C:/Users/vaibhav/AppData/Local/Temp/processing_JnBfmY/80166a5300a9464b9155cd01374b7fb2/FLOOD_DEPTH_OUTPUT\clippingMask.sdat"

C:\Windows\system32>set SAGA=C:/PROGRA~2/QGIS3~1.12/apps\saga-ltr

C:\Windows\system32>set SAGA_MLB=C:/PROGRA~2/QGIS3~1.12/apps\saga-ltr\modules

C:\Windows\system32>PATH=C:\PROGRA~2\QGIS3~1.12\apps\Python37\lib\site-packages\pywin32_system32;C:\PROGRA~2\QGIS3~1.12\apps\qgis\bin;C:\PROGRA~2\QGIS3~1.12\apps\Python37;C:\PROGRA~2\QGIS3~1.12\apps\Python37\Scripts;C:\PROGRA~2\QGIS3~1.12\apps\qt5\bin;C:\PROGRA~2\QGIS3~1.12\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32\WBem;C:\PROGRA~2\QGIS3~1.12\apps\Python37\lib\site-packages\numpy.libs;C:\PROGRA~2\QGIS3~1.12\apps\Python37\lib\site-packages\scipy.libs;;C:/PROGRA~2/QGIS3~1.12/apps\saga-ltr;C:/PROGRA~2/QGIS3~1.12/apps\saga-ltr\modules

C:\Windows\system32>call saga_cmd shapes_grid "Clip Grid with Polygon" -INPUT "C:/Users/vaibhav/AppData/Local/Temp/processing_JnBfmY/86b6d6622fd64c38a1acef999779cbe8/reproflood.sgrd" -POLYGONS "D:\BIHAR DEM\flood.shp" -OUTPUT "C:/Users/vaibhav/AppData/Local/Temp/processing_JnBfmY/80166a5300a9464b9155cd01374b7fb2/FLOOD_DEPTH_OUTPUT\clippingMask.sdat" Error: Grid file could not be saved.



SAGA Version: 2.3.2 (32 bit)


library path: C:\PROGRA~2\QGIS3~1.12\apps\saga-ltr\modules\ library name: shapes_grid library : Grid Tools tool : Clip Grid with Polygon author : copyrights (c) 2006 Stefan Liersch processors : 8 [8]


Load grid: C:/Users/vaibhav/AppData/Local/Temp/processing_JnBfmY/86b6d6622fd64c38a1acef999779cbe8/reproflood.sgrd...

Load shapes: D:\BIHAR DEM\flood.shp...

Parameters

Grid system: 0.008983; 83x 82y; 85.676820x 25.723258y Output: No objects Input: 1 object (reproflood) Polygons: flood Exclude No-Data Area: no

failed

C:\Windows\system32>exit Traceback (most recent call last): File "C:/PROGRA~2/QGIS3~1.12/apps/qgis/./python/plugins\processing\algs\saga\SagaAlgorithm.py", line 355, in processAlgorithm with open(prjFile, 'w') as f: FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/vaibhav/AppData/Local/Temp/processing_JnBfmY/80166a5300a9464b9155cd01374b7fb2/FLOOD_DEPTH_OUTPUT\clippingMask.prj'

There were errors executing the algorithm. There were errors executing the algorithm. Execution failed after 2.48 seconds

Loading resulting layers Algorithm 'FwDET v1' finished i keep getting this error please help