cimiss_obs_by_time_range_and_staIds: Retrieve station records from CIMISS by time and station ID.

Description Usage Arguments Value Examples

View source: R/retrieve_cimiss_server.R

Description

1
2
Retrieve data by cimiss music REST API.
Refer to http://10.20.76.55/cimissapiweb/index_index.action

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
cimiss_obs_by_time_range_and_staIds(
  timeRange,
  dataCode = "SURF_CHN_MUL_HOR_N",
  transType = TRUE,
  hourSeparate = NULL,
  minSeparate = NULL,
  eleValueRanges = NULL,
  orderby = NULL,
  limitCnt = NULL,
  elements = "Station_Id_C,Datetime,TEM",
  staIds = "54511"
)

Arguments

timeRange

: time range for retrieve, "YYYYMMDDHHMISS,YYYYMMDDHHMISS", like, "201509010000,20150903060000"

dataCode

: dataset code, like "SURF_CHN_MUL_HOR", "SURF_CHN_MUL_HOR_N", and so on.

elements

: elements for retrieve, 'ele1,ele2,...'

staIds

: station ids, 'xxxxx,xxxxx,...'

transType:

transform the return data frame's column type to datetime, numeric.

hourSeparate:

hour space, 1, 24, like 6: 0,6,12,18

minSeparate:

minute space, 1, 60, like 10: 0,10,20,30,40,50

eleValueRanges:

elements value ranges, seperated by ';' range, (a,) is >a, [a,) is >=a, (,a) is <a, (,a] is <=a, (a,b) is >a & <b, [a,b) is >=a & <b, (a,b] is >a & <=b, [a,b] is >=a & <=b list, a,b,c; e.g., "VIS:(,1000);RHU:(70,)", "Q_PRE_1h:0,3,4" is PRE quantity is credible.

[a,) is >=a, (,a) is <a, (,a]: R:a,)%20is%20%3E=a,%20(,a)%20is%20%3Ca,%20(,a [a,b) is >=a & <b, (a,b]: R:a,b)%20is%20%3E=a%20&%20%3Cb,%20(a,b [a,b]: R:a,b

orderby:

elements order, seperated by ',', like "TEM:asc" is ascending order temperature, "TEM:asc,SUM_PRE_1h:desc" is ascending order temperature first and descending PRE_1h.

limitCnt:

the number of maximum returned records

Value

data frame of observations.

Examples

1
2
3
4
## Not run: 
  r1 <- cimiss_obs_by_time_range_and_staIds("[20060801000000,20060801000000]")

## End(Not run)

nmcdev/nmcMetIO documentation built on Jan. 30, 2022, 5:09 a.m.