Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Geopressureviz without light_prob #5

Closed
grhyne opened this issue Sep 6, 2022 · 2 comments
Closed

Geopressureviz without light_prob #5

grhyne opened this issue Sep 6, 2022 · 2 comments

Comments

@grhyne
Copy link
Owner

grhyne commented Sep 6, 2022

I am wanting to edit some locations / stationary duration in geopressureviz (3-static), but am not using light data due to its poor quality, or in the case of CB606 and CB609, a complete absence of light data due to tag malfunction. When I try to run the shiny app to do this, I receive the following error:

> #Geopressureviz 
> geopressureviz <- list(
+   pam = pam,
+   static_prob = static_prob,
+   pressure_prob = pressure_prob,
+   #light_prob = light_prob,
+   pressure_timeserie = static_timeserie
+ )
> save(geopressureviz, file = paste0("data/3_static/", gpr$gdl_id, "geopressureviz.RData"))
> shiny::runApp(system.file("geopressureviz", package = "GeoPressureR"), launch.browser = getOption("browser"))
Error: "pam_data" %in% names(geopressureviz) is not TRUE

I was assuming these names are not TRUE is because I have negated light_prob values. I have tried setting light_prob = pressure_prob, but it does not accept that either. Since it would be painful to try and replicate a blank light_prob.Rdata files, are there any ways around this?

Rafnuss added a commit to Rafnuss/GeoPressureR that referenced this issue Sep 7, 2022
@Rafnuss
Copy link
Contributor

Rafnuss commented Sep 7, 2022

Ah, easy one, it should be:

  geopressureviz <- list(
    **pam_data** = pam,
    static_prob = static_prob,
    pressure_prob = pressure_prob,
    # light_prob = light_prob,
    pressure_timeserie = static_timeserie
  )
  save(geopressureviz, file = "~/geopressureviz.RData")

@grhyne
Copy link
Owner Author

grhyne commented Sep 7, 2022

Ah, easy! Thanks

@grhyne grhyne closed this as completed Sep 7, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants