Skip to content

Update Solar Resource File Converter.lk#1019

Merged
cpaulgilman merged 4 commits into
NatLabRockies:patchfrom
williamhobbs:patch
May 20, 2022
Merged

Update Solar Resource File Converter.lk#1019
cpaulgilman merged 4 commits into
NatLabRockies:patchfrom
williamhobbs:patch

Conversation

@williamhobbs

Copy link
Copy Markdown
Contributor

Description

I modified the solar resource file converter macro to move minutes in SolarAnywhere data to the middle of the interval instead of the beginning.

Fixes #1016.

I don't think any changes to documentation are required. And I'm not sure what testing is required - I was able to run the modified macro with 60min and 15min SolarAnywhere files and got the expected result.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

adjusts minute values to match the center of the interval for more accurate solar position calculations. Moving by 1/2 of of the time step since SolarAnywhere timestamps have minutes corresponding to the beginning of the interval.
@cpaulgilman cpaulgilman self-requested a review April 29, 2022 16:52
@cpaulgilman cpaulgilman added this to the 2021.12.02 Patch 2 milestone Apr 29, 2022

@cpaulgilman cpaulgilman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@williamhobbs Thanks for this fix. It broke the method the macro was using to identify files with multi-year data, but I fixed that in my latest commit.

@cpaulgilman cpaulgilman merged commit 6ceb073 into NatLabRockies:patch May 20, 2022
@cpaulgilman cpaulgilman added the added to release notes PR and/or issue has been added to release notes for a public release label Jun 2, 2022
@cpaulgilman

Copy link
Copy Markdown
Collaborator

Fix #1016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

added to release notes PR and/or issue has been added to release notes for a public release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants