From d66cb721ddd0f0974b21c50a23cf262ed767f05f Mon Sep 17 00:00:00 2001 From: SorooshMani-NOAA Date: Wed, 14 Aug 2024 15:51:22 -0400 Subject: [PATCH] Cache geodataset path in the section that runs on headnode --- stormworkflow/prep/hurricane_data.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stormworkflow/prep/hurricane_data.py b/stormworkflow/prep/hurricane_data.py index f9977ec..8ec20ba 100644 --- a/stormworkflow/prep/hurricane_data.py +++ b/stormworkflow/prep/hurricane_data.py @@ -17,6 +17,7 @@ import pandas as pd import geopandas as gpd +import geodatasets from searvey.coops import COOPS_TidalDatum from searvey.coops import COOPS_TimeZone from searvey.coops import COOPS_Units @@ -147,6 +148,9 @@ def main(args): if hr_before_landfall < 0: hr_before_landfall = 48 + # Caching for next steps! + geodatasets.get_path('naturalearth land') + ne_low = gpd.read_file(NE_LOW_ADMIN) shp_US = ne_low[ne_low.NAME_EN.isin(['United States of America', 'Puerto Rico'])].unary_union