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

Search Result 28, Processing Time 0.025 seconds

Development of Google Map-based USGS HYSEP and Application (Web 기반 USGS HYSEP 기저유출 분리 시스템 개발과 평가)

  • Jang, Won-Seok;Park, Youn-Shik;Kim, Jong-Gun;Engel, Bernard A.;Lim, Kyoung-Jae
    • Proceedings of the Korea Water Resources Association Conference
    • /
    • 2009.05a
    • /
    • pp.1417-1421
    • /
    • 2009
  • 최근 들어 유역의 정확한 수문현상을 파악하기 위하여 유역의 유출량 자료를 직접 유출과 기저유출로 분리한 후 수문 모형의 직접유출 및 기저유출의 수문컴포넌트 검증에 활용하는 연구가 많이 이루어지고 있다. 미국 국립지리국 (USGS) 에서 개발한 HYSEP 모형이 지난 수 년 동안 유출 컴포넌트 분리에 널리 이용되어 오고 있다. 그러나 USGS 기반의 HYSEP의 경우 능숙한 컴퓨터 사용자가 아닌 비전문가들이 HYSEP을 운영하기에는 여러 가지 많은 제한점이 있어 왔다. 그리하여 본 연구에서는 고해상도 위성영상 Google Map 기반의 기저유출분리 프로그램인 Web-based HYSEP 인터페이스를 개발하였다. 이 시스템에는 HYSEP에서 제공하는 3가지 방법인 Fixed Interval / Sliding Interval / Local Minimum 방법이 제공되고 있다. 본 연구에서 개발된 Google Map 기반의 HYSEP 시스템은 USGS 유량 관측지점들에 대해 XML 데이터 포맷으로 DB를 구축하여 Google Map 과 연계하였으며 이를 통해 사용자가 원하는 관측소의 실시간 유량자료를 다운로드 할 수 있도록 개발되어졌다. Google Map 기반의 HYSEP 기저유출 분리 시스템(http://www.EnvSys.co.kr/${\sim}$hysep)은 Perl/CGI 및 자바스크립트, Google Map script 등을 이용하여 개발되었다. 현재 개발된 Google Map 기반의 USGS HYSEP 시스템은 한 곳의 유량관측지점에 대해서 총 3가지 기저유출 모듈을 적용하여 결과를 제공하고 있으며, 그 결과를 테이블이나 그래프 형태로 제공하도록 되어 있다. 본 연구에서는 Google Map 기반의 USGS HYSEP 시스템을 이용하여 미국 인디애나 주의 Little Eagle Creek 유역의 유량자료와 Fixed Interval / Sliding Interval / Local Minimum 방법을 이용하여 기저유출을 분리하였으며, 기존에 널리 활용되는 기저유출 분리 프로그램인 Web 기반의 WHAT 시스템 (http://www.EnvSys.co.k.r/~what) 산정 기저유출량과 비교분석하였다. 분석결과 HYSEP 예측 기저유출치가 전반적으로 WHAT 예측치보다 크게 산정되었다. WHAT 시스템과 본 연구에서 개발한 Web 기반의 HYSEP 일단위 기저유출량을 비교해 본 결과 $R^{2}$가 0.56, EI는 0.52로 어느 정도 비슷한 경향을 나타냈으나, 유역의 특성을 반영하는 WHAT 시스템과는 달리 주어진 유량자료만을 이용하여 기저유출을 분리하는 Web 기반의 HYSEP 기저유출 분리모듈을 개선할 필요가 있는 것으로 판단된다.

  • PDF

Development of a gridded crop growth simulation system for the DSSAT model using script languages (스크립트 언어를 사용한 DSSAT 모델 기반 격자형 작물 생육 모의 시스템 개발)

  • Yoo, Byoung Hyun;Kim, Kwang Soo;Ban, Ho-Young
    • Korean Journal of Agricultural and Forest Meteorology
    • /
    • v.20 no.3
    • /
    • pp.243-251
    • /
    • 2018
  • The gridded simulation of crop growth, which would be useful for shareholders and policy makers, often requires specialized computation tasks for preparation of weather input data and operation of a given crop model. Here we developed an automated system to allow for crop growth simulation over a region using the DSSAT (Decision Support System for Agrotechnology Transfer) model. The system consists of modules implemented using R and shell script languages. One of the modules has a functionality to create weather input files in a plain text format for each cell. Another module written in R script was developed for GIS data processing and parallel computing. The other module that launches the crop model automatically was implemented using the shell script language. As a case study, the automated system was used to determine the maximum soybean yield for a given set of management options in Illinois state in the US. The AgMERRA dataset, which is reanalysis data for agricultural models, was used to prepare weather input files during 1981 - 2005. It took 7.38 hours to create 1,859 weather input files for one year of soybean growth simulation in Illinois using a single CPU core. In contrast, the processing time decreased considerably, e.g., 35 minutes, when 16 CPU cores were used. The automated system created a map of the maturity group and the planting date that resulted in the maximum yield in a raster data format. Our results indicated that the automated system for the DSSAT model would help spatial assessments of crop yield at a regional scale.

R Based Parallelization of a Climate Suitability Model to Predict Suitable Area of Maize in Korea (국내 옥수수 재배적지 예측을 위한 R 기반의 기후적합도 모델 병렬화)

  • Hyun, Shinwoo;Kim, Kwang Soo
    • Korean Journal of Agricultural and Forest Meteorology
    • /
    • v.19 no.3
    • /
    • pp.164-173
    • /
    • 2017
  • Alternative cropping systems would be one of climate change adaptation options. Suitable areas for a crop could be identified using a climate suitability model. The EcoCrop model has been used to assess climate suitability of crops using monthly climate surfaces, e.g., the digital climate map at high spatial resolution. Still, a high-performance computing approach would be needed for assessment of climate suitability to take into account a complex terrain in Korea, which requires considerably large climate data sets. The objectives of this study were to implement a script for R, which is an open source statistics analysis platform, in order to use the EcoCrop model under a parallel computing environment and to assess climate suitability of maize using digital climate maps at high spatial resolution, e.g., 1 km. The total running time reduced as the number of CPU (Central Processing Unit) core increased although the speedup with increasing number of CPU cores was not linear. For example, the wall clock time for assessing climate suitability index at 1 km spatial resolution reduced by 90% with 16 CPU cores. However, it took about 1.5 time to compute climate suitability index compared with a theoretical time for the given number of CPU. Implementation of climate suitability assessment system based on the MPI (Message Passing Interface) would allow support for the digital climate map at ultra-high spatial resolution, e.g., 30m, which would help site-specific design of cropping system for climate change adaptation.

Application of the weather radar-based quantitative precipitation estimations for flood runoff simulation in a dam watershed (기상레이더 강수량 추정 값의 댐 유역 홍수 유출모의 적용)

  • Cho, Yonghyun;Woo, Sumin;Noh, Joonwoo;Lee, Eulrae
    • Journal of Korea Water Resources Association
    • /
    • v.53 no.3
    • /
    • pp.155-166
    • /
    • 2020
  • In this study, we applied the Radar-AWS Rainrates (RAR), weather radar-based quantitative precipitation estimations (QPEs), to the Yongdam study watershed in order to perform the flood runoff simulation and calculate the inflow of the dam during flood events using hydrologic model. Since the Yongdam study watershed is a representative area of the mountainous terrain in South Korea and has a relatively large number of monitoring stations (water level/flow) and data compared to other dam watershed, an accurate analysis of the time and space variability of radar rainfall in the mountainous dam watershed can be examined in the flood modeling. HEC-HMS, which is a relatively simple model for adopting spatially distributed rainfall, was applied to the hydrological simulations using HEC-GeoHMS and ModClark method with a total of eight independent flood events that occurred during the last five years (2014 to 2018). In addition, two NCL and Python script programs are developed to process the radar-based precipitation data for the use of hydrological modeling. The results demonstrate that the RAR QPEs shows rather underestimate trends in larger values for validation against gauged observations (R2 0.86), but is an adequate input to apply flood runoff simulation efficiently for a dam watershed, showing relatively good model performance (ENS 0.86, R2 0.87, and PBIAS 7.49%) with less requirements for the calibration of transform and routing parameters than the spatially averaged model simulations in HEC-HMS.

Optimal Water Allocation considering Reservoir Operation Rules (저수지 운영률을 고려한 최적용수배분)

  • Kang Jaewon;Rieu Seung-yup;Cha Donghoon;Ko Ick Hwan
    • Proceedings of the Korea Water Resources Association Conference
    • /
    • 2005.05b
    • /
    • pp.1430-1434
    • /
    • 2005
  • 금강 유역과 같이 복잡한 하천유역 시스템의 관리를 위해서는 시스템 요소들을 통합적으로 분석할 수 있는 효과적인 의사결정지원 도구가 필요하다. K-MODSIM 모형은 단기 물관리, 장기 운영계획, 가뭄 대비계획 및 물관련 분쟁 해결을 위해 보다 개선된 유역관리 전략을 수립하기 위한 컴퓨터 기반 도구로 개발되었으며, 본 연구에서는 K-MODSIM 모형에 저수지 운영률을 반영하여 유역의 용수배분을 평가하였다. 유역 저수지군 운영 환경 및 제약조건을 반영한 네트워크를 구성한 후, 두 단계의 모형 검정을 수행하였다. 먼저 물리적 검정을 통해서 전체 대상 수계의 상하류 물수지를 검토하고, 다음 단계인 운영 측면의 검정에서 물리적으로 나타나는 상황이 댐 운영이나 제약 조건 등에 부합하는지의 여부를 검토하였다. 대청댐과 용담댐의 통합 운영을 위한 최적 운영률의 개발은 동적계획법 소프트웨어인 CSUDP를 이용하여 수행하였으며, 여기서 사유한 접근법은 음해 추계학적 동적계획법이다. 이 접근방법은 유입량 시계열을 추계학적으로 모의발생시키고, CSUDP 모형은 모의발생시킨 유입량 시계열에 대한 최적운영률을 찾기 위해 사용하며, CSUDP의 최적화 결과에 대한 통계적인 분석을 통해 월단위 운영률을 도출하였다. K-MODSIM 모형에 저수지 운영률을 반영하여 유역의 용수배분을 평가하였다. 유역 저수지군 운영 환경 및 제약조건을 반영한 네트워크를 구성하고, 대청댐과 용담댐의 통합 운영을 위한 최적연계 운영를을 개발하여 다음과 같은 운영 시나리오들을 개발하고 평가하였다. $\cdot$ 금강수계에 대한 용당댐의 영향 평가 $\cdot$ 댐 연계운영시 수요량 변화에 따른 영향 평가 $\cdot$ 하도추적을 고려한 일별모형의 검증 개발된 운영률과 하도추적방법을 K-MODSIM 모형에서 검증하기 위해서 vb.net 스크립트 파일을 개발하여 적용하였다.L이하로 이를 유등천 상류부에 공급할 경우 유등천의 수질은 BOD 6.7mg/L, TN 9.80mg/L, TP 0.90mg/L를 나타낼 것으로 예측된다. 고도처리시설의 도입 후 금강 합류점에서 갑천의 예측 BOD는 7.4mg/L로 현재 9.0mg/L에 비하여 개선되지만 이는 금강수계 오염총량 관리계획의 시$\cdot$도 경계지점 목표수질인 5.9mg/L를 만족시키지 못하므로, 이를 만족시키기 위해서는 방류수 BOD 7.2mg/L이하로 처리해야 할 것으로 판단된다.which support only concepts or image features.방하는 것이 선계기준에 적합한 것으로 나타났다. 밸브 개폐에 따른 수압 변화를 모의한 결과 밸브 개폐도를 적절히 유지하여 필요수량의 확보 및 누수방지대책에 활용할 수 있을 것으로 판단된다.8R(mm)(r^2=0.84)$로 지수적으로 증가하는 경향을 나타내었다. 유거수량은 토성별로 양토를 1.0으로 기준할 때 사양토가 0.86으로 가장 작았고, 식양토 1.09, 식토 1.15로 평가되어 침투수에 비해 토성별 차이가 크게 나타났다. 이는 토성이 세립질일 수록 유거수의 저항이 작기 때문으로 생각된다. 경사에 따라서는 경사도가 증가할수록 증가하였으며 $10\% 경사일 때를 기준으로 $Ro(mm)=Ro_{10}{\times}0.797{\times}e^{-0.021s(\%)}$로 나타났다.천성 승모판 폐쇄 부전등을 초래하는 심각한 선천성 심질환이다. 그러나 진단 즉시 직접 좌관상동맥-대동맥 이식술로 수술적 교정을 해줌으로써 좋은 성적을 기대할 수 있음을 보여주었다.특히 교사들이 중요하게 인식하는 해방적 행동에 대한 목표를 강조하여 적용할 필요가 있음을 시사하고 있다.교하여 유의한 차이가 관찰되지 않았다. 또한 HSP 환자군에서도 $IL1RN^{*}2$ allele 빈도와

  • PDF

Pedestrian Multi-Agent Model in College Town Streets (대학촌 가로의 보행환경 개선을 위한 보행자 멀티에이전트(Pedestrian Multi-Agent) 모델링)

  • Moon, Tae-Heon;Han, Soo-Chel;Sung, Han-Uk;Jeong, Kyeong-Seok
    • Journal of the Korean Association of Geographic Information Studies
    • /
    • v.9 no.2
    • /
    • pp.194-205
    • /
    • 2006
  • The purpose of this study is to develop a pedestrian multi-agent model and simulation system using multi-agent theory, which may be utilized as a planning support system for building a comfort and safe environment of pedestrian street. Differing from existing pedestrian models, however, every single pedestrian was regarded as an individual agent in the model. Multiple agents like multiple pedestrians in the street then maintain their own characteristics and respond to surrounding environment. In addition their moving behavior are made by their own decision rules that they have or had acquired through the interactive communications or learning between agents like real world. After verifying the model validation, as the $R^2$ between the predicted value and observed value was up to 0.781, the developed model was applied to Gazwa district within Gyeongsang university village. The simulation system was developed by Flash MX action scripts and the physical environment of the streets was configured with the digital map and ArcGis within computer virtual space. The attribute data of buildings such as type and size of commercial business were collected through the field survey and combined with physical features. Then the effect of the variation of building attractiveness and the occurrence of street events to pedestrian environment were simulated. Through the experiments this study could make suggestions to improve pedestrian environment.

  • PDF

Production of Realistic Explosion Effects through Four Types of Solutions (4가지 솔루션을 통한 사실적인 폭발효과 제작)

  • Kim, Dong Sik;Hwang, Min Sik;Lee, Hyun Seok;Kim, Yong Hee;Yun, Tae Soo
    • Smart Media Journal
    • /
    • v.4 no.4
    • /
    • pp.120-129
    • /
    • 2015
  • Explosion effect on CG (Computer Graphic) a visual effect on which a higher degree of technological difficulty is required with a variety of effect elements such as Fire, Smoke, Flame, Dust, Debris, etc. integrated on it. As skills for CG software have been advanced, solutions loaded with functions of various fluid simulation have been developed. So more realistic special effects came to be available. However, in Korea, it depends just on CG program functions. Besides, enough R&D's concerned have not been followed up. Accordingly, this study is aimed at offering a production method that may effectively implement more realistic explosion effects under experimentations. To begin with, the study derives problems through a precedent study of the implementation of existing explosion effects. Then to solve them, experimental studies are performed depending on four solutions. There are accesses to the four solutions: first, Numerous Turbulent Flow, a method to allow an attribute of turbulent air in the stage of fluid simulation; second, Cache Retiming Solution produced in script; third, Multiple Volume Container based on cached data; and fourth, RGB Lighting Pipeline, a method to enhance the completion of the result from the stage of composition. Characteristics of effects applied in each stage and consecutive connections of them proved the effective implementation of more realistic explosion effects. This study may not only suppose the production method for efficient explosion effects differentiated from the previous ones but also be utilized as basic data for relevant researches.

A Performance Comparison of the Mobile Agent Model with the Client-Server Model under Security Conditions (보안 서비스를 고려한 이동 에이전트 모델과 클라이언트-서버 모델의 성능 비교)

  • Han, Seung-Wan;Jeong, Ki-Moon;Park, Seung-Bae;Lim, Hyeong-Seok
    • Journal of KIISE:Information Networking
    • /
    • v.29 no.3
    • /
    • pp.286-298
    • /
    • 2002
  • The Remote Procedure Call(RPC) has been traditionally used for Inter Process Communication(IPC) among precesses in distributed computing environment. As distributed applications have been complicated more and more, the Mobile Agent paradigm for IPC is emerged. Because there are some paradigms for IPC, researches to evaluate and compare the performance of each paradigm are issued recently. But the performance models used in the previous research did not reflect real distributed computing environment correctly, because they did not consider the evacuation elements for providing security services. Since real distributed environment is open, it is very vulnerable to a variety of attacks. In order to execute applications securely in distributed computing environment, security services which protect applications and information against the attacks must be considered. In this paper, we evaluate and compare the performance of the Remote Procedure Call with that of the Mobile Agent in IPC paradigms. We examine security services to execute applications securely, and propose new performance models considering those services. We design performance models, which describe information retrieval system through N database services, using Petri Net. We compare the performance of two paradigms by assigning numerical values to parameters and measuring the execution time of two paradigms. In this paper, the comparison of two performance models with security services for secure communication shows the results that the execution time of the Remote Procedure Call performance model is sharply increased because of many communications with the high cryptography mechanism between hosts, and that the execution time of the Mobile Agent model is gradually increased because the Mobile Agent paradigm can reduce the quantity of the communications between hosts.