Skip to content
Snippets Groups Projects
Commit 0ed9a826 authored by gcorradini's avatar gcorradini
Browse files

Merge branch 'largefire-merge-hotfix' into 'conus-dps'

Largefire merge hotfix

See merge request !73
parents a35da195 8054a788
No related branches found
No related tags found
1 merge request!73Largefire merge hotfix
Pipeline #13355 passed with stage
in 4 seconds
......@@ -130,6 +130,6 @@ remove_static_sources_bool = True # remove areas with known flaring/gas sources
remove_static_sources_sourcefile = "VIIRS_Global_flaring_d.7_slope_0.029353_2017_web_v1.csv"
remove_static_sources_buffer = 0.01 # Buffer around static source points. Units defined by epsg.
opt_rmstatfire = True # do the removal of small fires with high pixel density
opt_rmstatfire = False # do the removal of small fires with high pixel density
number_of_multi_proc_workers = 3
......@@ -257,7 +257,7 @@ def make_sf_nfplist(allfires, t, regnm, fids):
sfkeys = list(dd.keys())
if t != allfires.t:
allfires = FireIO.load_fobj(t, regnm, activeonly=True)
allfires = FireIO.load_fobj(t, regnm, activeonly=False)
# record all nfps for all fires with fids to make nfplist at t
gdf_1d = None
for fid in fids:
......@@ -438,14 +438,14 @@ def save_sfts_all(queue: multiprocessing.Queue, t, regnm, layers=["perimeter", "
tstart = time.time()
# read allfires object
logger.info(f'Load allfires..')
allfires = FireIO.load_fobj(t, regnm, activeonly=True)
allfires = FireIO.load_fobj(t, regnm, activeonly=False)
t_pt = FireTime.t_nb(t, nb="previous")
try:
# read allfires object at previous time step
logger.info(f'Load allfires_pt...')
allfires_pt = FireIO.load_fobj(t_pt, regnm, activeonly=True)
allfires_pt = FireIO.load_fobj(t_pt, regnm, activeonly=False)
except:
allfires_pt = FireObj.Allfires(t_pt)
# find all large active fires and sleepers
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment