FetchResourceFiles() can't find files

  • Dan
  • Topic Author
More
17 Nov 2021 22:24 #10272 by Dan
I'm trying to pull weather data from a place near Austin Tx, but the pySAM FetchResourceFiles() tool can't find any nearby stations.  I also tried this with Python 3.7.12 and got the same result.
lon_lats = [(-97.74, 30.25)]
nsrdbfetcher = tools.FetchResourceFiles(                
         tech='solar',                
         nrel_api_key=sam_api_key,                
         nrel_api_email=sam_email,
         workers=1,                
         resource_type='psm3-tmy',                
         resource_year='tmy',                
         resource_interval_min=60,) 
Traceback.  I hope the insecureRequestWarning isn't causing the issue.
Starting data download for solar using 1 thread workers.
Getting list of available NSRDB files for 30.25, -97.74
./Users/dan/.pyenv/versions/3.9.7/envs/sandbox/lib/python3.9/site-packages/urllib3/connectionpool.py:1013: 
InsecureRequestWarning: Unverified HTTPS request is being made to host 'developer.nrel.gov'. 
Adding certificate verification is strongly advised. 
See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings  warnings.warn(
No data found for 30.25, -97.74.

Please Log in or Create an account to join the conversation.

  • Paul Gilman
More
18 Nov 2021 00:43 #10275 by Paul Gilman
Replied by Paul Gilman on topic FetchResourceFiles() can't find files
Hi Dan,

Did you set the values to nrel_api_key and nrel_api_email?

If you don't have an NREL Developer API key, you can get one here: developer.nrel.gov/signup/.

Thanks,
Paul.

Please Log in or Create an account to join the conversation.

  • Dan
  • Topic Author
More
18 Nov 2021 15:18 #10284 by Dan
Replied by Dan on topic FetchResourceFiles() can't find files
Thank you.  I was trying to use my SAM registration key which is different than the NREL Developer API key.  Works great now.  

Please Log in or Create an account to join the conversation.

Moderators: Paul Gilman
Powered by Kunena Forum