• Title/Summary/Keyword: R 스크립트

Search Result 28, Processing Time 0.042 seconds

The study on the design method for DLMS/COSEM meter S/W using Meter Configuration Script (Meter Configuration Script를 이용한 DLMS/COSEM 계량기 S/W 설계 방법에 대한 연구)

  • Im, Chang-Jun;Hahn, Kwang-Soo;Kim, Byung-Seop;Kim, Jong-Bae;Jung, Nam-Joon
    • Proceedings of the KIEE Conference
    • /
    • 2006.11a
    • /
    • pp.108-110
    • /
    • 2006
  • 계량기의 시장이 독점 시장에서 자유 시장으로 천이 되면서 시장은 계량기의 상호운용능력과 계량기의 지능, 관리능력 그리고 보안등의 부가적인 기능들을 요구 하게 되었다. 이러한 시장의 요구에 맞추어 DLMS 프로토콜을 표준으로 하고 COSEM 오브젝트 모델링 기법을 사용하는 계량기 표준인 IEC 62056이 제정되었다. 본 논문에서는 IEC 62056에서 정의한 프로토콜 및 서비스에 적합한 DLMS/COSEM 계량기의 S/W 아키텍처 및 그 설계 방법을 제안한다. 계량기 S/W는 크게 MCS와 MOM으로 구성되며, MCS는 계량기의 모델링 스크립트로 COSEM 오브젝트와 계량기의 구체적인 기능을 명시하고, MOM은 MCS를 읽어 계량기를 구동 시키는 모듈로 MCS에서 선언된 기능 및 동작을 해석하여 계량기를 전기, 가스, 수도 등의 기능을 갖는 계량기로 동작시키는 역할을 한다.

  • PDF

A Study on an R Web Application for Microclimate and Root Zone Data Utilization (온실의 미기후 및 근권 데이터 활용을 위한 R 웹 애플리케이션 연구)

  • Jung, Jimin;Noh, Hye-Min;Yeon, Hyojin;Kim, Taeyoung;Lee, Jihyun
    • Proceedings of the Korea Information Processing Society Conference
    • /
    • 2021.11a
    • /
    • pp.440-442
    • /
    • 2021
  • 농업에 ICT 기술을 접목한 스마트팜은 단순한 생육 환경 모니터링에서 벗어나 작물 생육을 위한 최적의 환경을 발견하고 인공지능에 기반한 자율제어가 가능한 농업으로 나아가고 있다. 자율제어가 가능한 농업의 시작은 최적의 작물 생육 환경을 아는 것이다. 이를 위해서는 관련 데이터를 수집하는 것도 중요하지만, 수집된 데이터들의 품질을 검증하고 데이터를 분석하여 작물 생육 환경을 제어하기 위한 유용한 정보를 도출해야 할 필요가 있다. 본 연구에서는 사용자들이 수집한 데이터를 활용하여 작물 생장에 필요한 정보를 얻을 수 있도록 지원하는 애플리케이션의 프로토타이핑 결과를 기술한다. 이 시스템에서 사용자는 웹브라우저를 통해 수집된 데이터들을 입력하고 원하는 분석을 요청하게 되고, 서버는 사용자의 요청과 관련된 R 스크립트를 실행하고 분석 결과를 사용자에게 전달한다.

Production and Analysis of Digital Climate Maps of Evapotranspiration Using Gridded Climate Scenario Data in Korean Peninsula (격자형 기후변화 시나리오 자료를 활용한 한반도의 증발산량 전자 기후도 생산 및 분석)

  • Yoo, Byoung Hyun;Lee, Kyu Jong;Lee, Byun Woo;Kim, Kwang Soo
    • Korean Journal of Agricultural and Forest Meteorology
    • /
    • v.19 no.2
    • /
    • pp.62-72
    • /
    • 2017
  • Spatio-temporal projection of evapotranspiration over croplands would be useful for assessment of climate change impact and development of adaptation strategies in agriculture. Potential evapotranspiration (PET) and dryness index (DI) during rice growing seasons were calculated using climate change scenario data provided by the National Institute of Meteorological Research (NIMR). A data processing tool for gridded climate data files, readGrADSWrapper, was used to calculate PET and DI during the current (1986-2005) and future (2006-2100) periods. Scripts were written to implement the formulas of PET and DI in R, which is an open source statistical data analysis tool. Evapotranspiration in rice fields ($PET_{Rice}$) was also determined using R scripts. The Spatio-temporal patterns of PET differed by regions in Korean Peninsula under current and future climate conditions. Overall, PET and $PET_{Rice}$ tended to increase throughout the $21^{st}$ century. Those results suggested that region-specific water resource managements would be needed to minimize the risk of water loss in the regions where considerable increases in PET would occur under the future climate conditions. For example, a number of provinces classified as a humid region were projected to become a sub-humid region in the future. The Spatio-temporal assessment of water resources based on PET and DI would help the development of climate change adaptation strategies for rice production in the 21st century. In addition, the studies on climate change impact would be facilitated using specialized data tools, e.g., readGrADSWrapper, for geospatial analysis of climate data.

Implementation of R-language-based REST API and Solution for Security Issues (R 언어 기반의 REST API 구현 및 보안문제의 해결 방안)

  • Kang, DongHoon;Oh, Sejong
    • Asia-pacific Journal of Multimedia Services Convergent with Art, Humanities, and Sociology
    • /
    • v.9 no.1
    • /
    • pp.387-394
    • /
    • 2019
  • Recently, the importance of big data has been increased, and demand for data analysis for the big data is also increased. R language is developed for data analysis, and users are analyzing data by using algorithms of various statistics, machine learning and data mining packages in R language. However, it is difficult to develop an application using R. Early study proposed a method to call R script through another language such as PHP, Java, and so on. However, it is troublesome to write such a development method in addition to R in combination with other languages. In this study, we introduce how to write API using only R language without using another language by using Plumber package. We also propose a solution for security issues related with R API. If we use propose technology for developing web application, we can expect high productivity, easy of use, and easy of maintenance.

A Tutorial on Covariance-based Structural Equation Modeling using R: focused on "lavaan" Package (R을 이용한 공분산 기반 구조방정식 모델링 튜토리얼: Lavaan 패키지를 중심으로)

  • Yoon, Cheol-Ho;Choi, Kwang-Don
    • Journal of Digital Convergence
    • /
    • v.13 no.10
    • /
    • pp.121-133
    • /
    • 2015
  • This tutorial presents an approach to perform the covariance based structural equation modeling using the R. For this purpose, the tutorial defines the criteria for the covariance based structural equation modeling by reviewing previous studies, and shows how to analyze the research model with an example using the "lavaan" which is the R package supporting the covariance based structural equation modeling. In this tutorial, a covariance-based structural equation modeling technique using the R and the R scripts targeting the example model were proposed as the results. This tutorial will be useful to start the study of the covariance based structural equation modeling for the researchers who first encounter the covariance based structural equation modeling and will provide the knowledge base for in-depth analysis through the covariance based structural equation modeling technique using R which is the integrated statistical software operating environment for the researchers familiar with the covariance based structural equation modeling.

A Study on the Double Mediation Analysis in Structural Equating Models with Bootstrapping Using R (구조방정식모형에서의 R을 이용한 부트스트랩 기반의 이중매개효과 분석 방안에 대한 연구)

  • Yoon, Cheolho;Choi, Kwangdon
    • Journal of Digital Convergence
    • /
    • v.14 no.9
    • /
    • pp.111-121
    • /
    • 2016
  • This study provides an approach to perform the double mediation analysis in structural equation models using the R. For this purpose, the study reviews a variety of techniques for mediation analysis, selects the bootstrapping technique as the most suitable way for performing the double mediation analysis and develops an approach for the double mediation analysis in structural equating models with the bootstrapping using the plspm which is the R package for the performing PLS path analysis. This study will be useful for the studies including the double mediation analysis in structural equation modeling, which is not supported by most of SEM packages, also will provide the knowledge base for in-depth analysis through suggesting the new mediation analysis technique using R for the researchers.

Visualization analysis using R Shiny (R의 Shiny를 이용한 시각화 분석 활용 사례)

  • Na, Jonghwa;Hwang, Eunji
    • Journal of the Korean Data and Information Science Society
    • /
    • v.28 no.6
    • /
    • pp.1279-1290
    • /
    • 2017
  • R's {shiny} package provides an environment for creating web applications with only R scripts. Shiny does not require knowledge of a separate web programming language and its development is very easy and straightforward. In addition, Shiny has a variety of extensibility, and its functions are expanding day by day. Therefore, the presentation of high-quality results is an excellent tool for R-based analysts. In this paper, we present actual cases of large data analysis using Shiny. First, geological anomaly zone is extracted by analyzing topographical data expressed in the form of contour lines by analysis related to spatial data. Next, we will construct a model to predict major diseases by 16 cities and provinces nationwide using weather, environment, and social media information. In this process, we want to show that Shiny is very effective for data visualization and analysis.

The use of MODIS atmospheric products to estimate cooling degree days at weather stations in South and North Korea (MODIS 대기자료를 활용한 남북한 기상관측소에서의 냉방도일 추정)

  • Yoo, Byoung Hyun;Kim, Kwang Soo;Lee, Jihye
    • Korean Journal of Agricultural and Forest Meteorology
    • /
    • v.21 no.2
    • /
    • pp.97-109
    • /
    • 2019
  • Degree days have been determined using temperature data measured at nearby weather stations to a site of interest to produce information for supporting decision-making on agricultural production. Alternatively, the data products of Moderate Resolution Imaging Spectroradiometer (MODIS) can be used for estimation of degree days in a given region, e.g., Korean Peninsula. The objective of this study was to develop a simple tool for processing the MODIS product for estimating cooling degree days (CDD), which would help assessment of heat stress conditions for a crop as well as energy requirement for greenhouses. A set of scripts written in R was implemented to obtain temperature profile data for the region of interest. These scripts had functionalities for processing spatial data, which include reprojection, mosaicking, and cropping. A module to extract air temperature at the surface pressure level was also developed using R extension packages such as rgdal and RcppArmadillo. Random forest (RF) models, which estimate mean temperature and CDD with a different set of MODIS data, were trained at 34 sites in South Korea during 2009 - 2018. Then, the values of CDD were calculated over Korean peninsula during the same period using those RF models. It was found that the CDD estimates using the MODIS data explained >74% of the variation in the CDD measurements at the weather stations in North Korea as well as South Korea. These results indicate that temperature data derived from the MODIS atmospheric products would be useful for reliable estimation of CDD. Our results also suggest that the MODIS data can be used for preparation of weather input data for other temperature-based agro-ecological models such as growing degree days or chill units.

SOAP-based Distributed Processing Scheduling Framework: pyBubble (SOAP기반의 분산처리 스케줄링 프레임웍: pyBubble)

  • ;;;R.S.Ramakrishna
    • Proceedings of the Korean Information Science Society Conference
    • /
    • 2004.04a
    • /
    • pp.742-744
    • /
    • 2004
  • 본 논문은 웹 서비스 프로토콜인 SOAP기반의 병렬처리 프레임웍인 pyBubble의 설계와 구현에 관한 것이다. 그리드 어플리케이션 프로그래밍의 어려움을 덜기 위해 그리드 미들웨어들로부터의 복잡성에 투명성을 제공하는 것을 본 논문의 목표로 한다. 이는 RPC스타일의 프로그래밍 인터페이스를 지원하면서 파이썬 스크립트 언어의 이식성과 확장성을 통해 기존 병렬처리 어플리케이션의 그리드화와 다양한 자원 스케줄링을 연구 할 수 있도록 하는 스케줄링 프레임웍이 주요 기능적 요소이다. 병렬처리를 위해 비동기 SOAP과 이를 이용한 Task-Farming과 DAG기반의 스케줄링의 지원함으로써 고성능의 그리드 계산환경을 제공하고자 한다.

  • PDF

A Benchmark of Open Source Data Mining Package for Thermal Environment Modeling in Smart Farm(R, OpenCV, OpenNN and Orange) (스마트팜 열환경 모델링을 위한 Open source 기반 Data mining 기법 분석)

  • Lee, Jun-Yeob;Oh, Jong-wo;Lee, DongHoon
    • Proceedings of the Korean Society for Agricultural Machinery Conference
    • /
    • 2017.04a
    • /
    • pp.168-168
    • /
    • 2017
  • ICT 융합 스마트팜 내의 환경계측 센서, 영상 및 사양관리 시스템의 증가에도 불구하고 이들 장비에서 확보되는 데이터를 적절히 유효하게 활용하는 기술이 미흡한 실정이다. 돈사의 경우 가축의 복지수준, 성장 변화를 실시간으로 모니터링 및 예측할 수 있는 데이터 분석 및 모델링 기술 확보가 필요하다. 이를 위해선 가축의 생리적 변화 및 행동적 변화를 조기에 감지하고 가축의 복지수준을 실시간으로 감시하고 분석 및 예측 기술이 필요한데 이를 위한 대표적인 정보 통신 공학적 접근법 중에 하나가 Data mining 이다. Data mining에 대한 연구 수행에 필요한 다양한 소프트웨어 중에서 Open source로 제공이 되는 4가지 도구를 비교 분석하였다. 스마트 돈사 내에서 열환경 모델링을 목표로 한 데이터 분석에서 고려해야할 요인으로 데이터 분석 알고리즘 도출 시간, 시각화 기능, 타 라이브러리와 연계 기능 등을 중점 적으로 분석하였다. 선정된 4가지 분석 도구는 1) R(https://cran.r-project.org), 2) OpenCV(http://opencv.org), 3) OpenNN (http://www.opennn.net), 4) Orange(http://orange.biolab.si) 이다. 비교 분석을 수행한 운영체제는 Linux-Ubuntu 16.04.4 LTS(X64)이며, CPU의 클럭속도는 3.6 Ghz, 메모리는 64 Gb를 설치하였다. 개발언어 측면에서 살펴보면 1) R 스크립트, 2) C/C++, Python, Java, 3) C++, 4) C/C++, Python, Cython을 지원하여 C/C++ 언어와 Python 개발 언어가 상대적으로 유리하였다. 데이터 분석 알고리즘의 경우 소스코드 범위에서 라이브러리를 제공하는 경우 Cross-Platform 개발이 가능하여 여러 운영체제에서 개발한 결과를 별도의 Porting 과정을 거치지 않고 사용할 수 있었다. 빌트인 라이브러리 경우 순서대로 R 의 경우 가장 많은 수의 Data mining 알고리즘을 제공하고 있다. 이는 R 운영 환경 자체가 개방형으로 되어 있어 온라인에서 추가되는 새로운 라이브러리를 클라우드를 통하여 공유하기 때문인 것으로 판단되었다. OpenCV의 경우 영상 처리에 강점이 있었으며, OpenNN은 신경망학습과 관련된 라이브러리를 소스코드 레벨에서 공개한 것이 강점이라 할 수 있다. Orage의 경우 라이브러리 집합을 제공하는 것에 중점을 둔 다른 패키지와 달리 시각화 기능 및 망 구성 등 사용자 인터페이스를 통합하여 운영한 것이 강점이라 할 수 있다. 열환경 모델링에 요구되는 시간 복잡도에 대응하기 위한 부가 정보 처리 기술에 대한 연구를 수행하여 스마트팜 열환경 모델링을 실시간으로 구현할 수 있는 방안 연구를 수행할 것이다.

  • PDF