forefireAPI / firefront

ForeFire is an open-source code for wildland fire spread models
GNU General Public License v2.0
36 stars 19 forks source link

Use in my region #24

Closed Nikolaos96 closed 6 months ago

Nikolaos96 commented 10 months ago

In order to use it for my area, is it enough to change only the coordinates where the fire starts?

ludobegins commented 10 months ago

You will need a landscape file for your region of interest. Please refer to the wiki for more details.

Nikolaos96 commented 10 months ago

Thank you for your response. Could you help me a bit more on how to make the landscape file please. How do I use the landscape_gen_funcs.py program?

Do you have an example code that creates this file?

Thank you.

filippi commented 10 months ago

Try py3_tools/landscape_eda.ipynb to get e batter understanding. You will need some python skills to run and adapt the script to your needs, xarray/netcdf/panda/shell/numpy Regards

Nikolaos96 commented 10 months ago

I read the py3_tools/landscape_eda.ipynbfile and understood that it contains the data for altitude, fuel, wind. If I assume that the same data applies to my area, why doesn't it work?

Thank you.

filippi commented 10 months ago

You have to create similar file for your area for it to work. Regards

Nikolaos96 commented 10 months ago

The fuctions in py3_tools/forefirepy/landscape_gen_funcs.py can be used to generate the file landscape ?

Thank you.

filippi commented 10 months ago

Yes indeed, And it will require to generate base data such as potential wind for every directions, find fuel data, classify it... as it very much depends on what data is available in your region, there are unfortunately no reals standard/general way to generate this base data.

Nikolaos96 commented 10 months ago

Well, I will have to find the corresponding files for my area fuel.tif, elevation.tif so I can run the example_landscape_gen function and it will generate the custom_landscape.nc for my area. Correctly ?

Thank you.

filippi commented 10 months ago

Hi, Yes that and a netcdf file for precomputed wind in 8 direction using a mass conserving solver.

Nikolaos96 commented 10 months ago

where can i find your fuel.tif file to match fuel.ff ? i will run program py3_tools/forefirepy/landscape_gen_funcs.py with your fuel.tif file and my elevation.tif file.

Thank you.

filippi commented 10 months ago

Hi, The fuel field is already in a sample netcdf. Fuel.tif is the fuel distribution, It would maybe make little sense to take land use of somewhere with the elevation of somewhere else and a corresponding fuel.ff that you should do yourself to match your fuel indices. See https://github.com/forefireAPI/firefront/blob/master/doc/UserGuide/ForeFireUserGuide.pdf.

We are sorry, but this code is intended mainly for combustionists or fire analysts that are also developers and handle numerics, it do require an advance knowledge and practice in Python, C++, GDAL, mostly under Unix platforms. For more user friendly approaches you have FlamMap from USFS which would provide similar results.

Also, we do collaborate with people in many countries especially in Europe, if you tell me from where you are, I can maybe guess someone near you that could help (or already did the job)

Regards

Nikolaos96 commented 10 months ago

I'm from Athens, Greece. I have found the elevetion.tif file for my region.I need the find file fuels.tif and fuels.ff for my region.

Nikolaos96 commented 10 months ago

I'm running the example you have and I want to change the direction of the wind. Can I set the wind direction inside the aullene.ff file?

Thank you.

filippi commented 10 months ago

Hi.. I am sorry, We have something for Crete, not for Athens. As for the wind, you need to re-generate potential wind for your region using a mass consistant solver first.

Nikolaos96 commented 10 months ago

So I can't run your example for a different wind direction?

I saw that I can change the wind speed from the command trigger[wind;loc=(0.,0.,0.);vel=(7.458691406250001,6.4,0.);t=0.]

filippi commented 10 months ago

Yes it works for this dataset , Aullene, that is the activation vector for the pre computed vector field coefficients

Nikolaos96 commented 10 months ago

I didn't understand if I can change the direction of the wind for Aullene example. Can I change the wind direction for your example?

Thanks and sorry for the many questions.

filippi commented 10 months ago

Hi, yes in the example, trigger[wind;loc=(0.,0.,0.);vel=(4.5,6.4,0.);t=0.] will change the activation wind vector to 4.5 6.4 the wind field will be extrapolated from that

Nikolaos96 commented 10 months ago

What is the unit of measurement ? m/s ?

Thank you.

filippi commented 10 months ago

Hi yes meter per second


Jean-Baptiste Filippi
Chargé de Recherches
SPE - UMR 6134 CNRS
Université de Corse
Quartier grossetti
BP 52, 20250 Corte
Tel. +33 495 450 158

Le mer. 20 sept. 2023 à 13:50, Nikolaos Makrygeorgos < @.***> a écrit :

What is the unit of measurement ? m/s ?

Thank you.

— Reply to this email directly, view it on GitHub https://github.com/forefireAPI/firefront/issues/24#issuecomment-1727570559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUZ7CUEMAGQ7J5BXIALHVTX3LJ7XANCNFSM6AAAAAA4L2HQDQ . You are receiving this because you commented.Message ID: @.***>