Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
blaylockbk committed Aug 12, 2023
1 parent f48ba8c commit a4b4797
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 28 deletions.
37 changes: 18 additions & 19 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@ dependencies:
# ===========
# Handy Tools
# ===========
- cartopy>=0.20.3
- cfgrib>=0.9.10.1
- eccodes>=2.26.0
# - cartopy>=0.22
- cfgrib>=0.9.10.4
- eccodes>=2.31
- geopandas
- h5py
- jupyter
- jupyterlab
- matplotlib>=3.4.3
- metpy
- netcdf4
- numpy>=1.23.1
- pandas>=1.4.3
- numpy>=1.25
- pandas>=2.0
- pygrib>=2.1.4
- pylint
- pyproj>=3.3.1
- requests>=2.27.1
- pyproj>=3.6
- requests>=2.31
- s3fs
- scipy
- toml
- xarray>=2022.6.0
- xarray>=2023.7
- zarr

# ===================
Expand Down Expand Up @@ -63,19 +63,19 @@ dependencies:
- myst-parser
- linkify-it-py

#- pip:
# Herbie: Development version from GitHub
#- git+https://github.com/blaylockbk/Herbie.git
- pip:
- cartopy>=0.22
# Herbie: Development version from GitHub
#- git+https://github.com/blaylockbk/Herbie.git

# Install a specific branch
#- git+https://github.com/blaylockbk/Herbie.git@blaylockbk/issue98
# Install a specific branch
#- git+https://github.com/blaylockbk/Herbie.git@blaylockbk/issue98

# Borrow some tools from my garage
#- git+https://github.com/blaylockbk/Carpenter_Workshop.git

# Create idx files on the fly!! -- Waiting for package maturity
#- git+https://github.com/joxtoby/beltzer.git
# Borrow some tools from my garage
#- git+https://github.com/blaylockbk/Carpenter_Workshop.git

# Create idx files on the fly!! -- Waiting for package maturity
#- git+https://github.com/joxtoby/beltzer.git
# =============================================================================
# Extra Setup Steps
# =============================================================================
Expand All @@ -87,7 +87,6 @@ dependencies:
# cd Carpenter_Workshop
# pi install -e .


# =============================================================================
# Notes
# =============================================================================
Expand Down
20 changes: 11 additions & 9 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: herbie
channels:
- conda-forge
dependencies:
- python>=3.10
- python>=3.11
- pip
- rclone # Not used by Herbie, useful if you are downloading data (https://rclone.org/)

Expand All @@ -12,24 +12,26 @@ dependencies:
# Dependencies
#==============
- curl
- cartopy>=0.20.3
- cfgrib>=0.9.10.1
- cartopy>=0.22
- cfgrib>=0.9.10.4
- dask
- eccodes
- geos
- matplotlib>=3.5.3
- metpy
- numpy
- pandas
- proj
- pygrib
- requests
- netcdf4
- numpy>=1.25
- pandas>=2.0
- pygrib>=2.1.4
- pylint
- pyproj>=3.6
- requests>=2.31
- s3fs
- toml
#- wgrib2 # ONLY AVAILABLE ON LINUX. Uncomment if you want this optional dependency.
- jupyter
- jupyterlab
- xarray>=2022.6.0
- xarray>=2023.7
- zarr

- pip:
Expand Down
3 changes: 3 additions & 0 deletions herbie/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,6 +995,9 @@ def subset(searchString, outFile):
outFile.parent.mkdir(parents=True, exist_ok=True)
print(f"👨🏻‍🏭 Created directory: [{outFile.parent}]")

# ===============
# Do the Download
# ===============
if searchString in [None, ":"] or self.idx is None:
# Download the full file from remote source
urllib.request.urlretrieve(self.grib, outFile, _reporthook)
Expand Down

0 comments on commit a4b4797

Please sign in to comment.