Skip to content

Commit

Permalink
Implemented conversion of Burned Area from m2 to hectares before the …
Browse files Browse the repository at this point in the history
…fuel load is calculated in fuelload.py. This addresses issue #10.
  • Loading branch information
cvitolo committed Apr 23, 2021
1 parent 9acf34f commit f9306f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/fuelload.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ def fuelload(path_agb: str, path_ba: str, path_fl: str = None) -> xarray.Dataset
agb_data.values[agb_data.values == AGB_THRESH] = np.nan
ba_data.values[ba_data.values < BA_THRESH] = np.nan

# AGB units are Mg/h
# BA units are m2, therefore we convert BA to hectares.
ba_data = ba_data * 0.0001

# Now that units are consistent we calculate LOAD = AGB * BA
fuel_load_dataset = agb_data * ba_data

if path_fl is not None:
Expand Down

0 comments on commit f9306f2

Please sign in to comment.