Hello,
I am trying to get the tmy3 data from nsrdb to use for SAM. In their website (https://nsrdb.nrel.gov/api-instructions) they have explained how to get weather/solar data for a particular year but how can I get tmy3 data? What changes should I make to the following?
url = 'http://developer.nrel.gov/api/solar/nsrdb_0512_download.csv?wkt=POINT({lon}%20{lat})&names={year}&leap_day={leap}&interval={interval}&utc={utc}&full_name={name}&email={email}&affiliation={affiliation}&mailing_list={mailing_list}&reason={reason}&api_key={api}&attributes=attr'.format(year=year, lat=lat, lon=lon, leap=leap_year, interval=interval, utc=utc, name=your_name, email=your_email, mailing_list=mailing_list, affiliation=your_affiliation, reason=reason_for_use, api=api_key, attr=attributes)
Thanks very much!
Shahab
Dear Shahab,
To request a typical year file instead of a file for a specific year, use 'tmy' for the names parameter instead of a year.
Best regards,
Paul.
Shahab
There is a slight error towards the end of the format string. 'attributes=attr' should be 'attributes={attr}' (curly braces are missing).
Kind regards
Angus
I am trying to get the solar weather data for Amman city to be used for SAM..i got error in the download weather file!!
Dear Ammar Sakaji,
Your question seems to be about SAM rather than the SDK. SAM's weather file download feature downloads data from the NREL National Solar Radiation Database, which does not have data for locations in the Middle East. Please see the Weather Data page for more information about where to find weather data to use with SAM.
Best regards,
Paul.
Ammar Sakaji
I've done some work with creating weather files for SAM using NASA MERRA data. Feel free to contact me directly if you're interested in following this up.
Kind regards
Angus
I have just posted an LK script that will run from SAM to download weather data from the NSRDB PSM v3 dataset, which is the most current version. You can find it on the SAM GitHub.com repository. The script is in the LK Scripts for SAM folder, and is called download-nsrdb-psm-v3.lk:
https://github.com/NREL/SAM/tree/develop/samples
Best regards,
Paul.
Dear Xinyue,
Please see the documentation of the NSRDB API for information about how to download data. They provide Python examples.
https://nsrdb.nrel.gov/api-instructions
Best regards,
Paul.