cimiss_obs_in_basin_by_time: Retrieve station records from CIMISS in basin region by time.

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
cimiss_obs_in_basin_by_time(
  times,
  basinCodes = "CJLY",
  dataCode = "SURF_CHN_MUL_HOR_N",
  transType = TRUE,
  staLevels = NULL,
  eleValueRanges = NULL,
  orderby = NULL,
  limitCnt = NULL,
  elements = "Station_Id_C,Datetime,Lat,Lon,TEM"
)

Arguments

times

: times for retrieve, 'YYYYMMDDHHMISS,YYYYMMDDHHMISS,...', seperate by ","

dataCode

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

elements

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

basinCodes:

basin codes, sperated by ",", like "CJLY" is Yangzi River, "sta_2480" is 2480 stations

transType:

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

staLevels:

station levels, seperated by ',', "011,012,013" is National Reference Climate Station, Basic weather station, General weather station, ...

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
  data <- cimiss_obs_in_basin_by_time('20200206000000', basinCodes="CJLY")

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