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

Doc: Model result properties and image properties #344

Open
rburghol opened this issue Aug 11, 2022 · 0 comments
Open

Doc: Model result properties and image properties #344

rburghol opened this issue Aug 11, 2022 · 0 comments
Labels

Comments

@rburghol
Copy link
Contributor


ds <- RomDataSource$new(site, rest_uname)
ds$get_token(rest_pw)

# post a file
vahydro_post_metric_to_scenprop(scenprop$pid, 'external_file', remote_url, 'logfile', NA, ds)


#scenprop$pid, , NULL, , wd_mgd
if (is.null(met.propcode)) {
  met.propcode <- ''
}
metprop <- RomProperty$new(
  ds, 
  metinfo <- list(
    varkey = 'om_class_Constant',
    propname = 'wd_mgd',
    featureid = as.integer(scenprop$pid),
    entity_type = "dh_properties",
    bundle = "dh_properties"
  ), 
  TRUE
)
metprop$propcode <- as.character(met.propcode)
metprop$propvalue <- as.numeric(met.value)
metprop$save(TRUE)


img_prop <- RomProperty$new(
  ds, list(
    varkey = 'dh_image_file',
    propname="mllr_plot", 
    featureid=ts$tid, 
    entity_type="dh_timeseries",
    bundle='dh_properties'
  ),TRUE
)
# now add the image
img_prop$propcode <- furl
img_prop$save(TRUE)

@rburghol rburghol added the doc label Aug 11, 2022
@rburghol rburghol changed the title Use: Model result properties and image properties Doc: Model result properties and image properties Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant