- Posts: 1
Converting Wind Toolkit Data to SRW
- gerritdm
- Topic Author
Less
More
02 Jan 2018 19:57 #6000
by gerritdm
Converting Wind Toolkit Data to SRW was created by gerritdm
Hi,
I am trying to write a python script for wind, with a workflow similar to the solar example shown here:
nsrdb.nrel.gov/api-instructions
The workflow would be:
1. Download resource data for a desired lat/lon, using the NREL API
2. Simulate power output for a desired turbine type using the SCCAPI module
However, I am having trouble with the wind data formats. The Techno-Economic WIND Toolkit API returns the data in a format that is not compatible with the SRW format. Since all the API returns is 100m wind speed, 100m wind direction, 2m air temperature, surface air pressure, and air density at hub height (100m?), it seems like I am missing data for the SRW format (temperature and pressure at 100m).
Does this mean I need to use the Gridded Atmospheric WIND Toolkit (using HSDS) instead or are there standard assumptions for converting to different heights?
Are there example scripts or packages on how to convert this data (gridded or techno-economic WIND Toolkit) into SRW data? It seems like the SAM desktop version does this automatically when you use the "Download a wind resource file from the online NREL WIND Toolkit" functionality.
Also, are there any SSCAPI example scripts for the wind module (similar to the solar example above)?
Thank you for your time!
Gerrit
I am trying to write a python script for wind, with a workflow similar to the solar example shown here:
nsrdb.nrel.gov/api-instructions
The workflow would be:
1. Download resource data for a desired lat/lon, using the NREL API
2. Simulate power output for a desired turbine type using the SCCAPI module
However, I am having trouble with the wind data formats. The Techno-Economic WIND Toolkit API returns the data in a format that is not compatible with the SRW format. Since all the API returns is 100m wind speed, 100m wind direction, 2m air temperature, surface air pressure, and air density at hub height (100m?), it seems like I am missing data for the SRW format (temperature and pressure at 100m).
Does this mean I need to use the Gridded Atmospheric WIND Toolkit (using HSDS) instead or are there standard assumptions for converting to different heights?
Are there example scripts or packages on how to convert this data (gridded or techno-economic WIND Toolkit) into SRW data? It seems like the SAM desktop version does this automatically when you use the "Download a wind resource file from the online NREL WIND Toolkit" functionality.
Also, are there any SSCAPI example scripts for the wind module (similar to the solar example above)?
Thank you for your time!
Gerrit
Please Log in or Create an account to join the conversation.
- ozsolarwind
Less
More
- Posts: 77
04 Jan 2018 01:14 #6001
by ozsolarwind
Replied by ozsolarwind on topic Converting Wind Toolkit Data to SRW
Gerrit
I've used Python with the SSCAPI and can assist offline.
Kind regards
Angus
I've used Python with the SSCAPI and can assist offline.
Kind regards
Angus
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5423
04 Jan 2018 12:22 #6002
by pgilman
Replied by pgilman on topic Converting Wind Toolkit Data to SRW
Dear Gerrit,
I uploaded a new sample LK script that shows how to use the WIND Toolkit API to download SRW files in the way the download button on SAM's Wind Resource input page does. It should be straightforward to convert that into Python or another language.
You can find it here under "LK Script Cookbook":
sam.nrel.gov/samples
Best regards,
Paul.
I uploaded a new sample LK script that shows how to use the WIND Toolkit API to download SRW files in the way the download button on SAM's Wind Resource input page does. It should be straightforward to convert that into Python or another language.
You can find it here under "LK Script Cookbook":
sam.nrel.gov/samples
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman