Skip to content

Commit

Permalink
Merge pull request #73 from leosaffin/witrack
Browse files Browse the repository at this point in the history
Witrack
  • Loading branch information
leosaffin authored Dec 6, 2024
2 parents 93f5638 + 5467bc9 commit f8cae13
Show file tree
Hide file tree
Showing 6 changed files with 3,498 additions and 1 deletion.
2 changes: 2 additions & 0 deletions huracanpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"example_TE_file",
"example_CHAZ_file",
"example_MIT_file",
"example_WiTRACK_file",
"_accessor",
]

Expand All @@ -39,6 +40,7 @@
example_TE_file,
example_CHAZ_file,
example_MIT_file,
example_WiTRACK_file,
)
from ._basins import basins
from ._interp import interp_time
Expand Down
2 changes: 2 additions & 0 deletions huracanpy/_data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"example_TE_file",
"example_CHAZ_file",
"example_MIT_file",
"example_WiTRACK_file",
]

import pathlib
Expand Down Expand Up @@ -43,3 +44,4 @@

example_CHAZ_file = str(testdata_dir / "CHAZ_sample.nc")
example_MIT_file = str(testdata_dir / "MIT_sample.nc")
example_WiTRACK_file = str(testdata_dir / "event_tracks_2017_ERA5.dat")
5 changes: 4 additions & 1 deletion huracanpy/_data/_load.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pandas as pd


from . import _csv, _TRACK, _netcdf, _tempestextremes
from . import _csv, _TRACK, _netcdf, _tempestextremes, witrack
from . import ibtracs


Expand Down Expand Up @@ -52,6 +52,7 @@ def load(
* **track**
* **track.tilt**
* **te**, **tempest**, **tempestextremes**, **uz** (For textual format, not csv)
* **witrack**
* **ibtracs**
* **csv**
* **netcdf**, **nc** (includes support for CHAZ & MIT-Open file provided appropriate variable_names)
Expand Down Expand Up @@ -168,6 +169,8 @@ def load(
tempest_extremes_unstructured,
tempest_extremes_header_str,
)
elif source == "witrack":
data = witrack.load(filename)
elif source == "ibtracs":
data = ibtracs.load(ibtracs_subset, filename, **kwargs)
elif source == "netcdf":
Expand Down
Loading

0 comments on commit f8cae13

Please sign in to comment.