Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
changed station for SosPlot script
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Nüst committed Jul 12, 2013
1 parent c9be8db commit 8dac3e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Binary file added 52n-wps-webapp/src/main/webapp/R/scripts/.RData
Binary file not shown.
9 changes: 5 additions & 4 deletions 52n-wps-webapp/src/main/webapp/R/scripts/SosPlot.R
Expand Up @@ -33,14 +33,14 @@ offering_id <- "Luft"

# wps.in: offering_days, integer, temporal extent,
# the number of days the plot spans to the past,
# value = 7,
# value = 10,
# minOccurs = 0, maxOccurs = 1;
offering_days <- 7

# wps.in: offering_station, type = integer, title = identifier for the used offering,
# value = 38,
# minOccurs = 0, maxOccurs = 1;
offering_station <- 34 #round(runif(n = 1, min = 30, max = 40))
offering_station <- c(42,46) #round(runif(n = 1, min = 30, max = 40))

# wps.in: image_width, type = integer, title = width of the generated image in pixels,
# value = 800, minOccurs = 0, maxOccurs = 1;
Expand All @@ -64,13 +64,14 @@ sos <- SOS(url = sos_url, dataFieldConverters = converters)
offering <- sosOfferings(sos)[[offering_id]]
myLog(toString(offering))

stationFilter <- sosProcedures(offering)[[offering_station]]
stationFilter <- sosProcedures(offering)[offering_station]
observedPropertyFilter <- sosObservedProperties(offering)[1]
timeFilter <- sosCreateEventTimeList(sosCreateTimePeriod(sos = sos,
begin = (Sys.time() - 3600 * 24 * offering_days), end = Sys.time()))

# make the request
observation <- getObservation(sos = sos, # verbose = TRUE,
observation <- getObservation(sos = sos,# verbose = TRUE,
#inspect = TRUE,
observedProperty = observedPropertyFilter,
procedure = stationFilter,
eventTime = timeFilter,
Expand Down

0 comments on commit 8dac3e6

Please sign in to comment.