Comments (12)
Have you got a log file under "u'C:\Users\pc04.qgis2\processing\outputs" ?
from qgis-swmm.
Normally you should have the generated swmm input file in there too.
from qgis-swmm.
I uninstalled the plugin then reinstalled it
Running a new simulation I get the following error:
there were errors, look into logs for details See log for more details
Now in the output folder
I have swmm.inp
I have no log file
I have an output file with many error of this kind:
ERROR 211: invalid number PyQt4.QtCore.QDateTime(1988, at line 120 of [TIMESERIES] section:
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0
The date in tables linked to postgres are as follows:
1988-01-01T00:00:00
from qgis-swmm.
Can you check if there is something strange in the swmm.inp, in the TIMESERIES section
from qgis-swmm.
This is my swmm.inp, TIMESERIES section
[TIMESERIES]
;name datetime value
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 15) 40.0
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 0) 40.0
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 15) 0.0
INFLOW@82309 PyQt4.QtCore.QDateTime(1988, 1, 1, 12, 0) 0.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 15) 45.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 0) 45.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 15) 0.0
INFLOW@80408 PyQt4.QtCore.QDateTime(1988, 1, 1, 12, 0) 0.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 0) 0.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 0, 15) 50.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 0) 50.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 3, 15) 0.0
INFLOW@81009 PyQt4.QtCore.QDateTime(1988, 1, 1, 12, 0) 0.0
from qgis-swmm.
The date as not been converted to string, does the date otherwise correspond to the dates you have entered in your time series ?
from qgis-swmm.
Where do your timeseries come from ?
I suspect the plugin expects strings for dates, not QDateTime.
from qgis-swmm.
Found it, its in https://github.com/Oslandia/qgis-swmm/blob/master/SwmmAlgorithm.py#L210
We should test the type of v and act accordingly to handle this case. PR welcome if you are willing to code, otherwise you can convert your input data to string instead of QDateTime
from qgis-swmm.
My timeseries is stored in postgreSQL.
The format is "datetime timestamp without time zone"
Now I try to convert to text to see if it works
from qgis-swmm.
Now error are of this kind:
ERROR 211: invalid number 01/01/1988 at line 113 of [TIMESERIES] section:
INFLOW@82309 0.0 01/01/1988 00:00
The input file is:
[TIMESERIES]
;name value datetime
INFLOW@82309 0.0 01/01/1988 00:00
INFLOW@82309 40.0 01/01/1988 00:15
...omissis....
from qgis-swmm.
the date format is YYYY-mm-dd HH:MM:ss
from qgis-swmm.
In my DB the date format is correct: YYYY-mm-dd HH:MM:ss.
from qgis-swmm.
Related Issues (14)
- no output file HOT 5
- Control Rules using TIMEOPEN and TIMECLOSED
- Setting up Qgis swmm HOT 1
- Possible Collaboration with Open Water Analytics HOT 1
- Producing the .inp file rather then running the swmm model HOT 2
- SWMM broken plugin for QGis 2.8.6-wien HOT 4
- Error after running the simulation HOT 9
- Separate in 3 steps HOT 2
- QGIS 3 HOT 7
- qgis to swmm HOT 1
- Provide better use cases with sample data
- Swmm plugin breaking in qgis 2.8 HOT 11
- I got this error on execute the sample data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qgis-swmm.