Skip to content

Commit 4089257

Browse files
committed
adding PcFillMethod option to stormevent.py
1 parent 3ae915c commit 4089257

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stormevents/stormevent.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from stormevents.nhc import VortexTrack
2828
from stormevents.nhc.atcf import ATCF_Advisory
2929
from stormevents.nhc.atcf import ATCF_FileDeck
30-
from stormevents.nhc.const import RMWFillMethod
30+
from stormevents.nhc.const import RMWFillMethod, PcFillMethod
3131
from stormevents.usgs import usgs_flood_storms
3232
from stormevents.usgs import USGS_StormEvent
3333
from stormevents.utilities import relative_to_time_interval
@@ -281,6 +281,7 @@ def track(
281281
filename: PathLike = None,
282282
forecast_time: datetime = None,
283283
rmw_fill: RMWFillMethod = RMWFillMethod.regression_penny_2023,
284+
pc_fill: PcFillMethod = PcFillMethod.persistent_holland_b,
284285
) -> VortexTrack:
285286
"""
286287
retrieve NHC ATCF track data
@@ -303,7 +304,7 @@ def track(
303304
end_date = self.end_date
304305

305306
if filename is not None:
306-
track = VortexTrack.from_file(filename)
307+
track = VortexTrack.from_file(filename, rmw_fill=rmw_fill, pc_fill=pc_fill)
307308
else:
308309
track = VortexTrack.from_storm_name(
309310
name=self.name,
@@ -314,6 +315,7 @@ def track(
314315
advisories=advisories,
315316
forecast_time=forecast_time,
316317
rmw_fill=rmw_fill,
318+
pc_fill=pc_fill,
317319
)
318320
return track
319321

0 commit comments

Comments
 (0)