FetchResourceFiles() can't find files

  • d.goodrick
  • Topic Author
More
17 Nov 2021 15:24 #10272 by d.goodrick
FetchResourceFiles() can't find files was created by d.goodrick
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.
Code:
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.
Code:
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.

  • pgilman
More
17 Nov 2021 17:43 #10275 by pgilman
Replied by pgilman 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.

  • d.goodrick
  • Topic Author
More
18 Nov 2021 08:18 #10284 by d.goodrick
Replied by d.goodrick 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: pgilman
Powered by Kunena Forum