cimiss_obs_by_period_and_staIds: Retrieve station records from CIMISS by same period.

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
13
cimiss_obs_by_period_and_staIds(
  minYear,
  maxYear,
  minMD,
  maxMD,
  staIds = "54511",
  dataCode = "SURF_CHN_MUL_HOR_N",
  transType = TRUE,
  eleValueRanges = NULL,
  orderby = NULL,
  limitCnt = NULL,
  elements = "Station_Id_C,Station_Id_d,lat,lon,Datetime,TEM"
)

Arguments

dataCode

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

elements

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

transType:

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

minYear:

start year, like "2005"

maxYear:

end year, like "2015"

minMD:

start date, like "0125" is 01/25

maxMD:

end date, like "0205" is 02/25

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_period_and_staIds(2015, 2018, "0501", "0505", staIds="54511")

## End(Not run)

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