-
Notifications
You must be signed in to change notification settings - Fork 10
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
Time change seems to be causing issues #130
Comments
I just deleted that single row from my dataset and everything ran fine. |
Hey Noah, I think an improvement would be to remove Lines 14 to 24 in d0a8436
|
what do others think? @lawinslow @rBatt @riwoolway |
You're probably right, Jake. Dealing with a time change probably requires
having the user do some sort of standardization on their dates ahead of
time, or implementing a localized time conversion. The second one would be
a nightmare. Should probably make sure the units fall in line with the sun
rise/ set function, which I believe uses latitude and time of year to
determine time of day for the rise/set. What units are those times in?
Gosh, I haven't thought about that in a while, because I didn't usually
have to deal with a time change ...
…On Tue, Jun 5, 2018 at 5:14 PM, Jake Zwart ***@***.***> wrote:
what do others think? @lawinslow <https://github.com/lawinslow> @rBatt
<https://github.com/rBatt> @riwoolway <https://github.com/riwoolway>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#130 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFXrf0g2zuia7Up6dlyEin77dXrwiIxrks5t5vSqgaJpZM4UXy4y>
.
--
Ryan D. Batt, Ph.D.
Aquatic Ecologist
Postdoctoral Fellow, National Academy of Sciences, US EPA
Website: batt.limnology.wisc.edu
Pronouns: he/ him
|
If the user wants to put everything into GMT then that is an option for avoiding daylight savings issues, but I don't think the functions should have a timezone set to GMT. I think the user should get out the time zone that they put into the function. |
The trick is getting things from some unknown or arbitrary time zone into something like GMT. Once in GMT, everything is easy, and I agree it's a simpler standard to work with. But I also agree that maybe we don't want to take on the task of converting everything to GMT ourselves. Quick Aside: I worry about what time zone our Interestingly, in R's For example:
Once a user has their data in POSIX format with the time zone specified, they might have an easier time solving the problem. Maybe the solution here is to leave our code untouched, but start compiling a list of examples or FAQ's in the GitHub wiki that we can reference to show people how to make such a conversion in their own code when using LakeMetabolizer. I.e., just give an example with this initial problem, and show how to solve it. |
I'm getting the following error running k.read.base:
Error in data.frame(dateTime = dat$dateTime, C_D = C_D, alh = alh, ash = ash) :
arguments imply differing number of rows: 16035, 16036
I believe that I have tracked it down to calc.zeng line 20. My dataframe includes the following data
2017-03-12 02:00:00 which returns an NA for line 20 which then shortens the dataframe to 16035 rows. There also seem to be a whole bunch of errors that cascade off of that length mismatch (e.g., line 53 atm.press is 16036 while e_a(line 52) is 16035.
The text was updated successfully, but these errors were encountered: