Skip to content

Commit

Permalink
Infer .grib2 as GRIB
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
pmav99 committed Apr 25, 2023
1 parent ef12fa6 commit b0b5754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inspectds/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def echo_dataset(
# 3. we want to allow the user to override the inferring
# This is why we keep this function
def infer_dataset_type(path: pathlib.Path) -> DATASET_TYPE:
if path.suffix == ".grib":
if path.suffix in (".grib", ".grib2"):
dataset_type = DATASET_TYPE.GRIB
elif path.is_dir() or path.suffix == ".zarr" or path.suffix == ".zip":
dataset_type = DATASET_TYPE.ZARR
Expand Down

0 comments on commit b0b5754

Please sign in to comment.