Comments (4)
Comment by cefect
Wednesday Feb 24, 2021 at 23:25 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT
For the first problem, it looks like you're trying to pass an L2 inventory (w/ tag and cap values) through the L1 model. Try removing 'f0_tag' and 'f0_cap' from the inventory to make it an L1 inventory. This error catch is there to make sure an L1 model isn't run when an L2 is expected by the user (but perhaps it should be switched to a warning).
For the second problem, it looks like you're trying to run the risk calculator w/ only 2 events. Section 4.2.3 'Events without Failure' tries to explain this, but the ead algorithm needs at least 3 events to run (but even this will give you a very coarse answer.. we usually try to have at least 8 to get a good representation of the risk). If you're fine with just impact values (not interested in calculating risk), then then you can just use the 'dmgs' output from the 'Impacts (L2)' (although the fancy results analysis tools mostly work on risk results for now).
Hopefully this helps
from canflood.
Comment by mbrwn
Thursday Feb 25, 2021 at 15:57 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT
Thanks that does help. Yes I think for the R1 error it should be a warning instead. So the same dataset can be used for simple analysis/output and more detailed analysis/output.
I added more hazard rasters (5 in total) and redid all steps. L1 analysis ran ok. R2 analysis now gives a different error:
Adding a note in the user manual explicitly telling the user that 3 hazard rasters are needed for a R2 analysis would be helpful/more user friendly.
from canflood.
Comment by cefect
Thursday Feb 25, 2021 at 16:47 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT
The 'rtail' error is thrown because the risk curve can not be extrapolated into the range of calculated values. If your smallest event is indeed a 2-year.. then I'd hope these impacts are quite small, and you could apply an rtail=None (no extrapolation). Alternatively, select a larger rtail value (or 'extrapolate' ) in the control file. This parameter is described in Section 4.2 Parameter Summary.
As for your other points:
- I've removed the error catch.. and risk (L1) models should now run with 2 events (didn't test L2)
- I've loosened the expectations on the inventory, and L1 models now run with extra nest fields (e.g., a L2 inventory can be used in L1 analysis)
You should see these reflected in the next release.
On a side note.. I'm not thrilled with the reporting of warnings as it is now... I'll chat with the team and see if we can switch to some sort of pop-up message.
from canflood.
Comment by mbrwn
Thursday Feb 25, 2021 at 19:56 GMT # Sample: Friday Sep 13, 2013 at 22:58 GMT
Thanks for your help! Changing rtail=none worked.
I have 2, 5, 10, 25, 50 and 100 yr hazard rasters. Asset flooding only occurs during 25, 50 and 100 yr. So I tried resolving this issue two ways to compare results:
-
only sample the hazard raster that result in impacts (25, 50 and 100 yr) and keep rtail = 0.5 default.
from canflood.
Related Issues (20)
- Building class information for the IBI 2020 curve? HOT 2
- Moving French Documentation to this repo HOT 4
- Implement CI build/test project actions
- improve Inventory Construction Helper
- simplify 'Build' UI
- create a tutorial on how to create an input dataset.
- Create a project website
- Documentation cross-reference and table improvements HOT 1
- one sentence per-line
- clarify value sampling of polygons
- Relative filepaths
- area-threshold
- fX_tag got nulls | IBI 2020 Curves | FBC Dataset HOT 8
- Negative depth values being calculated in Impacts (L2) analysis HOT 5
- Run CanFlood in Batch HOT 4
- Sampling rasters with building voids HOT 2
- Missing Depth-Damage Curves in IBI 2020 Dataset HOT 1
- update requirements
- vFunc Library: ImportError: Pandas requires version '2.0.1' or newer of 'xlrd'
- vFunc Library: AssertionError: total.inStk.scaled failed the check. dfunc 'total.inStk.scaled' missing keys: {'impact_units'}
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 canflood.