bbcrown / solrad

Calculate solar radiation and related variables based on location, time and topographical conditions
GNU Affero General Public License v3.0
9 stars 2 forks source link

Problems determining SLon and DS #1

Open jwingnut opened 5 years ago

jwingnut commented 5 years ago

Thanks for making this available, several functions are already very useful, however to fully utilize the capabilities of this package I need to know how to determine SLon and DS.

I've done extensive searches but nothing has come up and both seem to be key arguments for some of the more advanced functions in this package.

How can I determine SLon and DS for a given site?

For example Kansas (39.0119° N, 98.4842° W).

bbcrown commented 5 years ago

Thanks for your interest. SLon is the standard time latitude, coming from the time zone time. DS is the daylight saving. As these two variables are based on the user-defined time zone, it would be a little tricky to fix them in the code. For example, some users some users might use a different time zone than the site's local time. But I agree that a default value would help. I will try to add a new argument as the time-zone, that way the user doesn't need to enter the SLon and DS. Thanks for your feedback.

For now, you can use this for your site in Kansas:

In the future release, I may probably get rid of these two and only have the time-zone input based on UTC, making the user responsible for daylight saving.

I hope this helps.

bbcrown commented 5 years ago

@jpwhitney please let me know if that was helpful.

clgiebink commented 4 years ago

@bnasr It was very helpful for me, thanks!