-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sam iotools #1371 #1556
base: main
Are you sure you want to change the base?
sam iotools #1371 #1556
Conversation
adds a sam.py, and pytest
@shirubana when sticker turns green we'll approve and run the tests. |
@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! |
@shirubana The rolling seems to work based on a quick test. I'm getting the time zone in the output file as "UTC" instead of "0". I think users would expect the time zone in the metadata returned from read_surfrad to work, or to get an error/warning. I've also just realized that it would be helpful to be able to split out hourly averaging from the other standardSAM behaviors (skipping leap day and making the file start with Jan 1 12:00 AM), since SAM does not require hour intervals but does require the other items. I would suggest either:
|
adds a sam.py, and pytest
docs/sphinx/source/reference
for API changes.docs/sphinx/source/whatsnew
for 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.