kmaASOS: Korea Meteorological Administration, Automated Synoptic...

Description Usage Arguments Details Value Examples

View source: R/kmaASOS.R

Description

kmaASOS function import Korea Moteorological Administration's ASOS data of day.

Usage

1
2
kmaASOS(key, branchCode = NULL, fromDate = NULL, toDate = NULL,
  slow = F, errorCheck = T, verbose = F)

Arguments

key

character value. API key issued from <https://data.kma.go.kr>. Note that it's not from <data.go.kr>. no default.

branchCode

numeric value. the codes of branches. If insert "all", import all branches data. See kma_branch data for details.

fromDate

date value. 8-digits date which means starting date.

toDate

date value. 8-digits date which means end date.

slow

logical value. if TRUE, give sleep inbetween importing. default is TRUE.

errorCheck

logical value. if TRUE, one more try to get data which occured API error.

verbose

logical value. if TRUE, provide process bar. Default value set as false.

Details

ASOS is an observation conducted at the same time at all branches at a fixed time to understand the synoptic weather. Normaly, it refers to the size of anticyclone and cyclone or daily weather on weather map.
See more details about each data from <https://data.kma.go.kr/data/grnd/selectAsosRltmList.do>
The date argument range is from 1904-01-01 to previous day.
It should be noticed that this function needs the API key issued from https://data.kma.go.kr, not from https://data.go.kr.
Importing data from KMA is very unstable that it is recommended to checking error urls in result.

Value

data.frame and visualization.

Examples

1
2
3
 key <- 'your key issued from data.kma.go.kr'
 data <- kmaASOS(key, branchCode = c(108), fromDate = as.Date("2010-01-01"),
                 toDate = as.Date("2010-01-10"), slow = TRUE)

lawine90/datagokR documentation built on Sept. 24, 2020, 9:42 p.m.