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

Incorporating Fausto's flags #121

Open
bpbond opened this issue Apr 1, 2024 · 0 comments
Open

Incorporating Fausto's flags #121

bpbond opened this issue Apr 1, 2024 · 0 comments

Comments

@bpbond
Copy link
Member

bpbond commented Apr 1, 2024

df_troll<-df_troll %>% 
  mutate(flag_out_of_water = ifelse((wl_below_surface_m < ((ground_to_sensor_cm/100)* -0.98)|
                                    (site=="CRC" & datetime>"2022-07-19 00:00:00" & datetime<"2022-07-28 00:00:00")| 
                                    (site=="OWC" & datetime>"2022-07-21 08:00:00" & datetime<"2022-07-31 08:00:00")| 
                                    (site=="PTR" & location =="UP" & datetime>"2022-08-02 08:00:00" & datetime<"2022-08-12 08:00:00")|
                                    (site=="PTR" & location !="UP" & datetime>"2022-07-19 08:00:00" & datetime<"2022-07-29 08:00:00")
                                     ),"TRUE","FALSE"
                                    )
         )

So there are two things happening here:

Algorithmic QA/QC

The wl_below_surface_m < ((ground_to_sensor_cm/100)* -0.98 line is checking for data out of bounds basically.

But where do wl_below_surface_m and ground_to_sensor_cm come from?

Out of service

All the site/date checks are based on his out-of-service records. These can be easily added to our existing out-of-service framework.

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

No branches or pull requests

1 participant