Code Monkey home page Code Monkey logo

Comments (9)

sr-murthy avatar sr-murthy commented on May 24, 2024

@rkbanagar during the peril lookup the distance of each location lon./lat. point to the convex hull of all the peril area points is computed, and depending on the value of loc_to_global_areas_boundary_min_distance (in the lookup configuration file lookup.json) the peril lookup will pass if the computed distance is <= the min. distance, or fail if otherwise.

You can adjust the value of loc_to_global_areas_boundary_min_distance in your lookup JSON file and try again.

from oasislmf.

sr-murthy avatar sr-murthy commented on May 24, 2024

The idea is that the exposure locations shouldn't be too "far" from the region covered by peril area points (which are used for peril component of the lookup). The peril lookup uses an Rtree spatial index representation of the peril areas dict file, which is fixed for the PiWind model and shouldn't really be changed. So you can get it working by modifying the value of loc_to_global_areas_boundary_min_distance in the lookup JSON.

from oasislmf.

sr-murthy avatar sr-murthy commented on May 24, 2024

Also, if individual locations are too far away from the peril areas region then this wouldn't stop the lookup from processing keys for all locations. You would just get messages for those locations which indicate that they are too far away too receive an area peril (peril area) ID - the vuln. lookup is separate and wouldn't be affected. The overall lookup status for a location is success if both the peril and vuln. lookups succeed, or fail or nomatch otherwise.

from oasislmf.

sr-murthy avatar sr-murthy commented on May 24, 2024

@rkbanagar This is not a bug with the MDK package - so I'm closing this.

Please note that PiWind is a windstorm model for a small town in the UK whose minimum bounding rectangle is given by (-0.9176515, 52.7339933, -0.8569864, 52.7946584). If your exposure locations are too far away from the region that this represents, then the peril component of the lookup will fail for those locations. So this is not a package error, but simply a result of your exposure locations being too far away from the geographic region that the model is based on.

from oasislmf.

rkbanagar avatar rkbanagar commented on May 24, 2024

Your comments are helpful.
Thank you very much.

from oasislmf.

mpinkerton-oasis avatar mpinkerton-oasis commented on May 24, 2024

May I ask what you are trying to achieve with Oasis? I'm not sure which organization you are with. Feel free to email if more appropriate ([email protected] ).

from oasislmf.

rkbanagar avatar rkbanagar commented on May 24, 2024

I am trying to run the Oasis model for a dummy data outside the Pi city domain.

Can I create a areaperil_dict.csv lying outside the Pi city or the global domain is hard coded?

Can the Global boundary(-0.9176515, 52.7339933, -0.8569864, 52.7946584) for PIwind be customized?

from oasislmf.

sr-murthy avatar sr-murthy commented on May 24, 2024

@rkbanagar I will create a new issue in the PiWind repository as that is the right place for further discussion.

from oasislmf.

sr-murthy avatar sr-murthy commented on May 24, 2024

@rkbanagar Please follow the discussion here

OasisLMF/OasisPiWind#21

from oasislmf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.