NREL / rex

REsource eXtraction Tool (rex)
https://nrel.github.io/rex
BSD 3-Clause "New" or "Revised" License
19 stars 10 forks source link

Unable to access 2021 NSRDB data #164

Closed annacheyette closed 1 year ago

annacheyette commented 1 year ago

I am unable to access 2021 NSRDB data using NSRDBX:

from rex import NSRDBX

nsrdb_file = f'/nrel/nsrdb/v3/nsrdb_2021.h5'
nrel = (39.741931, -105.169891)

with NSRDBX(nsrdb_file, hsds=True) as f:
    nrel_dni = f.get_SAM_lat_lon((nrel))

results in OSError: [Errno 503] Service Unavailable. Previous years work successfully. It appears that 2021 data should be published already (e.g. https://nsrdb.nrel.gov/data-sets/us-data). Is there a delay getting this data access via rex? If so, is there a timeline for when new data will be available via rex?

Thank you for your help.

grantbuster commented 1 year ago

sounds like the public HSDS service is down, see this: https://nrel.github.io/rex/misc/examples.hsds.html

annacheyette commented 1 year ago

I've been able to follow these instructions and get HSDS downloaded locally on my laptop. I am successfully able to download data for years prior to 2021 (e.g., i can run

nsrdb_file = f'/nrel/nsrdb/v3/nsrdb_2020.h5'
nrel = (39.741931, -105.169891)

with NSRDBX(nsrdb_file, hsds=True) as f:
    nrel_dni = f.get_SAM_lat_lon((nrel))

successfully). I am just unable to get the 2021 data to work. Do you know if the server will update with 2021 data? Thanks!

grantbuster commented 1 year ago

Try using the path /nrel/nsrdb/current/nsrdb_2021.h5. The /v3/ folder is deprecated. I'll ask to have it removed.

annacheyette commented 1 year ago

Thanks so much, that new path works! I'm also able to download the 2022 data at this path, which is great. Do you know generally how long it takes to get data added? e.g., how long after 2023 ends will it take for 2023 data to get uploaded?

grantbuster commented 1 year ago

It typically takes a few months, at the latest we release the data in the following september. This is driven mostly by the DOE fiscal year.