Skip to content
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

Fix for sunrise/sunset north/south of the polar circles #208

Merged
merged 3 commits into from
Mar 11, 2020
Merged

Fix for sunrise/sunset north/south of the polar circles #208

merged 3 commits into from
Mar 11, 2020

Conversation

thomasremke
Copy link
Contributor

Fix for sunrise/sunset north/south of the polar circles in set_min_max_hour routine. This will allow (and prevent abortion) to simulate MetSim for latitudes north/south of the polar circles.

So far, values of (in set_min_max_hour) greater or smaller zero get eliminated. This results in numpy arrays of lesser dimensions (i.e. less than 365 days) as required in subsequent computation.
This circumstance got fixed by setting radiation to zero for days without sunrise or its maximum value for days without sunset.

Thomas Remke added 3 commits February 28, 2020 15:40
…x_hour routine, thus, allowing latitudes north/south of the polar circles.
…attributes. Fix to transform input parameters expected as float to floats.
@arbennett arbennett changed the base branch from master to develop March 11, 2020 16:58
@arbennett arbennett self-requested a review March 11, 2020 18:28
Copy link
Member

@arbennett arbennett left a comment

Choose a reason for hiding this comment

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

These changes look good and appear to fix the problem. I think that in the future we might revisit how the temperature disaggregation is done in polar regions, and have started a discussion at #210.

@arbennett arbennett merged commit e702ff2 into UW-Hydro:develop Mar 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants