sam iotools #1371#1556
Conversation
adds a sam.py, and pytest
|
@williamhobbs, since you opened #1371, would you be interested in taking a look at this PR from a user's perspective? |
Sure! I just ran a test with some data I previously grabbed with
|
got it wrong, it should be left labeled. Added other values of use for SAM for wind simulations
The function description states that it reads SAM files, but the SAM files does not need a 'Local Time Zone' in the metadata, as well as the Minute column is optional. When Minutes are included in the SAM file, it considers the sun position needs to be calculated at that specific point, instead of calculating it for left labeled data (timestamp 10 AM is data left averaged from 10 AM to 11 AM, and SAM places Sun position at 10:30 AM).
-metadata now uses and expects 'tz' (non caps). -If tz data is not numberic, it throws an error. -function renamed to write_sam() -source value set to 'pvlib export' if not defined.
|
@williamhobbs do you have an example of your rolling method? I addressed everything else except that and seems veyr important to do so, and also the timezone string to number function, is a nice add on in general but I probably won't get around to that specifically for this PR. |
|
@williamhobbs I added a rolling method. Whenever you get an opporutnity can you re-try your surfrad data? Thanks! |

adds a sam.py, and pytest
docs/sphinx/source/referencefor API changes.docs/sphinx/source/whatsnewfor all changes. Includes link to the GitHub Issue with:issue:`num`or this Pull Request with:pull:`num`. Includes contributor name and/or GitHub username (link with:ghuser:`user`).remote-data) and Milestone are assigned to the Pull Request and linked Issue.