QF-Error-Tracking / QFVD5

0 stars 0 forks source link

Plotting perc_massburnt index out of range, what am I doing wrong? #17

Open mathfire opened 1 year ago

mathfire commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

-% mass burnt
 * time 1/13
 * time 2/13
 * time 3/13
 * time 4/13
 * time 5/13
 * time 6/13
 * time 7/13
 * time 8/13
 * time 9/13
 * time 10/13
 * time 11/13
 * time 12/13
 * time 13/13
 * time 1/13
 * time 2/13
 * time 3/13
 * time 4/13
 * time 5/13
 * time 6/13
 * time 7/13
 * time 8/13
 * time 9/13
 * time 10/13
 * time 11/13
 * time 12/13
 * time 13/13
 * time (3d) 2/13

list index out of range (base) cotopaxi:python3 amasarie$

To Reproduce Link to input files [e.g. Google Drive or Box] or Email: Dev Team will reach out if input files are needed

Here’s my original call (its drawfire to visual a 500m watershed focus area)
(base) cotopaxi:python3 amasarie$ python3 drawfire.py /Users/amasarie/Research/QF_5.2.3/proj/Chambers-500m/ 0 1

Desktop (please complete the following information):

Screenshots If applicable, add screenshots to help explain your problem.

Thanks will do - 
QF_GitHub_01 QF_GitHub_02
zacharycope0 commented 1 year ago

Could you debug this issue a further and figure out exactly what the problem is? If there is a problem with drawfire.py than that would be good to share with Sara.

ntutland commented 11 months ago

I believe this issue is fixed in the new drawfire released with QFVD 5.3.1. Line 382 in gen_images.py

was:

loc_var = plotvar[i].squeeze()

now:

plotvar = read_fireca_field("mburnt_integ-", 1, [qf.time[i]], qf, True, output_folder)[0]
loc_var = plotvar.squeeze()