- Posts: 3
Call actual meteorological year from SAM API
- kdoubled
- Topic Author
Less
More
26 Apr 2022 11:09 #10883
by kdoubled
Call actual meteorological year from SAM API was created by kdoubled
Hello,
I'm a brand new user to the SAM API, trying to figure out the simplest way to do a PVWatts calculation based on actual meteorological year (AMY) data from, e.g., 2019, as opposed to using the gridded TMY data. I see the SAM API has a "dataset" field that has the options "nsrdb", "tmy2", "tmy3", "intl". It looks like "nsrdb" is the gridded TMY. However, I don't see an option to specify a particular year, and get that directly from the NSRDB within a single SAM API call. Do I need to separately download the weather data from the NSRDB API, and then run SAM using a different method (like PySAM) than the API? Thanks for your help!
I'm a brand new user to the SAM API, trying to figure out the simplest way to do a PVWatts calculation based on actual meteorological year (AMY) data from, e.g., 2019, as opposed to using the gridded TMY data. I see the SAM API has a "dataset" field that has the options "nsrdb", "tmy2", "tmy3", "intl". It looks like "nsrdb" is the gridded TMY. However, I don't see an option to specify a particular year, and get that directly from the NSRDB within a single SAM API call. Do I need to separately download the weather data from the NSRDB API, and then run SAM using a different method (like PySAM) than the API? Thanks for your help!
Please Log in or Create an account to join the conversation.
- pgilman
Less
More
- Posts: 5447
27 Apr 2022 16:59 #10901
by pgilman
Replied by pgilman on topic Call actual meteorological year from SAM API
Hi Kate,
I assume that by "SAM API," you mean that you are running SSC from code you have written in Python or some other language using the SAM SDK tools .
Yes, you can make a separate API call to the NSRDB API to get the weather file you need, and then run the simulation using that weather file.
If you are using the PySAM Python package, you can use FetchResourceFiles() described in the Tools section of the documentation to download the weather file, and then run the pvwattsv8 module with data from that file.
Best regards,
Paul.
I assume that by "SAM API," you mean that you are running SSC from code you have written in Python or some other language using the SAM SDK tools .
Yes, you can make a separate API call to the NSRDB API to get the weather file you need, and then run the simulation using that weather file.
If you are using the PySAM Python package, you can use FetchResourceFiles() described in the Tools section of the documentation to download the weather file, and then run the pvwattsv8 module with data from that file.
Best regards,
Paul.
Please Log in or Create an account to join the conversation.
Moderators: pgilman