Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion isofit/utils/add_HRRR_profiles_to_modtran_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

import click
import numpy as np
import pygrib

from isofit.core.common import json_load_ascii

Expand Down Expand Up @@ -297,6 +296,13 @@ def download_HRRR(


def get_HRRR_data(filename):
try:
import pygrib
except ImportError:
raise ImportError("""
pygrib is not installed automatically with this fork of isofit.
Please install pygrib to use this util.
""")
grbs = pygrib.open(filename)

msgs = [str(grb) for grb in grbs]
Expand Down
1 change: 0 additions & 1 deletion recipe/environment_isofit_basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ dependencies:
- pandas>=0.24
- pep8>=1.7.1
- pre-commit
- pygrib
- pytest>=3.5.1
- python-xxhash<3
- pyyaml>=5.1.2
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ install_requires =
numpy >= 1.20
pandas >= 0.24.0
pep8 >= 1.7.1
pygrib
pytest >= 3.5.1
pyyaml >= 5.3.2
ray >= 1.2.0
Expand Down