Skip to content

Using Herbie in a Colab notebook #282

Answered by blaylockbk
purpal9 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Christina! It has been a while. Good to hear from you.

Sounds interesting what you are doing. I don't have any experience using colab and haven't used pynio in a very long time.

Let's see how I do at answering your questions and giving some ideas...


If you like using pynio, you could just use Herbie to download the files you want and then use pynio to read those downloaded file.

from herbie import Herbie

H = Herbie('2024-01-01', model='rap')
my_file = H.download()

# The value of `my_file` is PosixPath('/home/blaylock/data/rap/20240101/rap.t00z.awp130pgrbf00.grib2')

# Use pynio to read/process that file

When you download a Herbie object, it returns the path to the downloaded file. Y…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@purpal9
Comment options

@blaylockbk
Comment options

@purpal9
Comment options

@blaylockbk
Comment options

Answer selected by purpal9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants