Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable fetching of archived HRRR from GCP #514

Open
nwagenbrenner opened this issue Mar 12, 2024 · 3 comments
Open

Enable fetching of archived HRRR from GCP #514

nwagenbrenner opened this issue Mar 12, 2024 · 3 comments

Comments

@nwagenbrenner
Copy link
Member

We can subset now with the GDAL /vsigs/ virtual file system driver.

https://gdal.org/user/virtual_file_systems.html

@nwagenbrenner
Copy link
Member Author

@masonwillman Take a look at the nomads class for a reference on how our wx model fetching is implemented. These archived HRRR files are at https://console.cloud.google.com/storage/browser/high-resolution-rapid-refresh. You can see attached for a python script that downloads a full file from the server.

fetchArchivedHrrr.zip

The process we implement in WindNinja will need to clip out a small subset of the full dataset on disk based on our DEM extents using the GDAL /vsigs/ virtual file system driver. This is an example that should work from the command line (you'll need to get a free GCP API key to use and associated client email to populate in the command below in place of the XXXX's).

gdal_translate -b 697 -projwin -113.55 45.00 -112.55 44.00 -projwin_srs EPSG:4326 -of GTiff /vsigs/high-resolution-rapid-refresh/hrrr.20210525/conus/hrrr.t01z.wrfprsf00.grib2 --config GS_OAUTH2_PRIVATE_KEY_FILE XXXX --config GS_OAUTH2_CLIENT_EMAIL XXX out.tif

@nwagenbrenner
Copy link
Member Author

HRRR is also available on AWS:

https://registry.opendata.aws/noaa-hrrr-pds/

@RuiZhang-kwf8
Copy link
Contributor

RuiZhang-kwf8 commented Sep 3, 2024

Fetching for one band is possible now from both AWS and GCP. Currently working on identifying the correct abbreviation for certain parts of the band. Have some questions about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants