Skip to content

Commit

Permalink
Fix no coops station case & storm name lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Mar 6, 2024
1 parent 51dab5e commit 69a1a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion singularity/info/files/hurricane_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def main(args):
geometry=gs, data={'RADII': len(gs) * [34]}, crs="EPSG:4326"
)
gdf_windswath.to_file(swath_out)
if coops_ssh is not None:
if coops_ssh is not None and len(coops_ssh) > 0:
coops_ssh.to_netcdf(sta_dat_out, 'w')
coops_ssh[['x', 'y']].to_dataframe().drop(columns=['nws_id']).to_csv(
sta_loc_out, header=False, index=False)
Expand Down
2 changes: 1 addition & 1 deletion singularity/info/info.def
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ From: continuumio/miniconda3:23.3.1-0-alpine
mamba clean --all --yes

conda run -n info --no-capture-output \
pip install stormevents==2.2.0
pip install stormevents==2.2.1


conda clean --all
Expand Down

0 comments on commit 69a1a00

Please sign in to comment.