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

Generalize read_field_obs, resample_to_field, and plot_var_compare #191

Merged
merged 14 commits into from
Jan 28, 2016

Conversation

lawinslow
Copy link
Member

Goal is to use this comparison functionality on any parameter. These changes currently break backward compatibility with field data using "wtemp" header. This also changes output of get_var to no longer be wtr_ and elev_, now is temp_ for temp (generalized to varname_ based on parameter passed) and varname.elev_ for any bottom referenced data.

We may want to maintain more backwards compatibility, but that does make the other functionality harder to implement as it is easy to assume the header is varname and varname_depth as opposed to sometimes temp being named wtr or wtemp.

@lawinslow
Copy link
Member Author

@jread-usgs thoughts? This is based on requests from @dzrobert and @hdugan.

x = as.numeric(as.POSIXct(data$DateTime))
y = data$Depth
z = data$Observed_wTemp
z = data[,paste0('Observed_', var_name)]
Copy link
Member

Choose a reason for hiding this comment

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

didn't know that data[, paste0('Observed','_temp')] is the same as data[[paste0('Observed_', var_name)]].

@jordansread
Copy link
Member

Looks good to me. It would be nice to add a test to verify this working across variables though.

@lawinslow
Copy link
Member Author

Those files have all lines changed because they were in the old weirdo mac format with only \CR as a newline character (which is why the old files show up in github as being all one line). I've switched them all to *nix format.

@lawinslow
Copy link
Member Author

Failures are github 403's. Tests added. Merging.

lawinslow pushed a commit that referenced this pull request Jan 28, 2016
Generalize read_field_obs, resample_to_field, and plot_var_compare
@lawinslow lawinslow merged commit a6f62f4 into GLEON:master Jan 28, 2016
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.

None yet

2 participants