fire2a / C2F-W

Joint version of Cell2Fire, beta version with S&B and Kitral
GNU General Public License v3.0
1 stars 1 forks source link

canada fbp, instancias no simulan, fuelmodel error? #14

Open fdobad opened 6 months ago

fdobad commented 6 months ago

Revelstoke/Fire1 Se cae simulador con siguiente error

----------------------------- Results -----------------------------
Total Available Cells: 4269 - % of the Forest: 97.0227%
Total Burnt Cells: 1 - % of the Forest: 0.0227273%
Total Non-Burnable Cells: 130 - % of the Forest: 2.95455%
Total Firebreak Cells: 0 - % of the Forest: 0%
D1/ not a recognizable fuel type
...
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
M1/ not a recognizable fuel type
prob in mixedwood d1 not found 
Cell2Fire simulator finished.

firesim_231226_132021.zip

fdobad commented 6 months ago

Revelstoke/Fire2

Total Non-Burnable Cells: 365 - % of the Forest: 6.34783%
Total Firebreak Cells: 0 - % of the Forest: 0%
M1/ not a recognizable fuel type
M1/ not a recognizable fuel type
prob in mixedwood d1 not found
Cell2Fire simulator finished.

firesim_231226_133644.zip

fdobad commented 6 months ago

MicaCreek/Fire1

Total Firebreak Cells: 0 - % of the Forest: 0%
M1/ not a recognizable fuel type
M1/ not a recognizable fuel type
prob in mixedwood d1 not found 
Cell2Fire simulator finished.

firesim_231226_134740.zip

fdobad commented 6 months ago

MicaCreek/Fire2 OK GlacierNationalPark 1

fdobad commented 6 months ago

GlacierNationalPark 2

Selected (Random) ignition point for Year 1, sim 478: 7342 D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
...
D1/ not a recognizable fuel type
prob in mixedwood d1 not found 
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
Cell2Fire simulator finished.

firesim_231226_141844.zip

fdobad commented 6 months ago

CentralKootenay

Total Non-Burnable Cells: 1206 - % of the Forest: 14.4952%
Total Firebreak Cells: 0 - % of the Forest: 0%
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
...
D1/ not a recognizable fuel type

----------------------------- Results -----------------------------
Total Available Cells: D1/ not a recognizable fuel type
7113 - % of the Forest: 85.4928%
Total Burnt Cells: 1 - % of the Forest: D1/ not a recognizable fuel type
0.0120192%
Total Non-Burnable Cells: 1206 - % of the Forest: 14.4952%
Total Firebreak Cells: 0 - % of the Forest: 0%
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
...
M1/ not a recognizable fuel type
D1/ not a recognizable fuel type
prob in mixedwood d1 not found 
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
D1/ not a recognizable fuel type
Cell2Fire simulator finished.

firesim_231226_141844.zip

fdobad commented 6 months ago

simulado con https://github.com/fire2a/fire-analytics-qgis-processing-toolbox-plugin/tree/fbp-canada y https://github.com/fire2a/C2F-W/commit/398446f9bbae092154b9bd2ba7c0787e07c9e941

fdobad commented 6 months ago

Ejemplo MicaCreek Fire2

error de C2F-W/Cell2FireC/Cell2Fire

4968 M1/ not a recognizable fuel type
prob in mixedwood d1 not found 

viene de C2F-W/Cell2FireC/FuelModelFBP.cpp

305 :     printf(" %s not a recognizable fuel type\n ",fuel);

376     for(i=0;strncmp(ptr->fueltype,"D1",2)!=0 && i<numfuels;ptr++,i++);
377 :     if(i>=numfuels) { printf(" prob in mixedwood   d1 not found \n");exit(9);}

393     for(i=0;strncmp(ptr->fueltype,"D1",2)!=0 && i<numfuels;ptr++,i++);
394  :    if(i>=numfuels) { printf(" prob in mixedwood   d1 not found \n");exit(9);}

pero paso por: C2F-W/Cell2FireC/DataGeneratorC.py

22              line = line.replace("-","")
186             "D1": np.nan, "D2": np.nan,
3   import numpy as np
  1 data = np.loadtxt('Forest.asc',skiprows=6)
  2 In [9]: np.unique(data)
  3 Out[9]: array([  1.,   2.,   5.,  13.,  31.,  60., 101., 102.])
  4     
  5 fbp_lookup_table.csv:
  6         ...
  7         13,13,Aspen,D-1/D-2,196,189,151,35,70,174
  8         ...

@matiasuno

matiasuno commented 3 months ago

@fdobad como lo solucionaste? yo tenia el mismo error pero le saque el guión en el lookup table a la mala nomas

fdobad commented 3 months ago

Buena, hay una solución entonces... me imagino que te refieres al slash como guión

Dejé sólo los que preparó david que sí corren.

Entonces la solución va por editar los fuels.asc ?

O ahora el simulador usa un canada* modificado lookup table?

@jaimecarrasco tu eres el que sabe de esto ayuda please

matiasuno commented 3 months ago

si, borré del slash en adelante, a la mala digo porque no sé que repercusión tiene eso en la quema, me imagino que no está definido ese tipo de combustible en el simulador. en todo caso habría que saber que significa primero.

se puede solucionar por ahora editando los fuels que sean conflictivos (los q tienen x/y) o editar el lookup table