• Title/Summary/Keyword: Python 3

Search Result 236, Processing Time 0.027 seconds

Development of a G-Code Generator for Color Gradation Generations in a Mixing Chamber FDM 3D Printers (Mixing chamber를 사용하여 그라데이션 색상을 구현하기 위한 G-code 생성기 개발)

  • Noh, Kyoung-Seok;Seo, Hae-Won;Kim, Tae-Young;Lee, Yong-Gu
    • Korean Journal of Computational Design and Engineering
    • /
    • v.22 no.1
    • /
    • pp.10-17
    • /
    • 2017
  • The recent 3D printing industry has been focusing on developing 3D printers to fulfill the user's need to bring more colorful and realistic outcomes. Several 3D printers have deployed multiple extruders to print different colors. However, this method has a limit on its availability of colors. To solve this, recent research is focused on using mixing chambers to mix the possible colors to provide more color availability. In this paper, we discuss the environment and algorithm behind the development of G-code which allows a gradation effect of the mix of two filaments. The generation algorithm to make gradient G-code has been implemented in Cura using C ++ and Python.

A Study on the Perception Change of Bats after COVID-19 by Social Media Data Analysis (소셜미디어 데이터 분석을 활용한 COVID-19 전후 박쥐의 인식변화 연구)

  • Lee, Jukyung;Kim, Byeori;Kim, Sun-Sook
    • Journal of Environmental Impact Assessment
    • /
    • v.31 no.5
    • /
    • pp.310-320
    • /
    • 2022
  • This study aimed to identify the change in the public perception of "bats" after the outbreak of the coronavirus (COVID-19) infection. Text mining and network analysis were conducted for blog posts, the largest social network in Korea. We collected 9,241 Naver blog posts from 2019 to 2020 just before the outbreak of COVID-19 in Korea. The data were analyzed with Python and NetMiner 4.3.2, and the public's perception of bats was examined through the relationship of keywords by period. Findings indicated that the frequency of bat keywords in 2020 increased more than 25 times compared to 2019, and the centrality value increased more than three times. The perception of bats changed before and after the outbreak of the pandemic. Prior to COVID-19, bats were highly recognized as a species of wildlife while in the first half of 2020, they were strongly considered as a threat to human society in relation to infectious diseases and health. In the second half of 2020, it was confirmed that the area of interest in bats expanded as the proportion of ecological and cultural types ofresearch increased. This study seeks to contribute to the expansion and direction of future research in bats by understanding the public's interest in the potential impact of the species as disease hosts post the COVID-19 pandemic.

LSTM Prediction of Streamflow during Peak Rainfall of Piney River (LSTM을 이용한 Piney River유역의 최대강우시 유량예측)

  • Kareem, Kola Yusuff;Seong, Yeonjeong;Jung, Younghun
    • Journal of Korean Society of Disaster and Security
    • /
    • v.14 no.4
    • /
    • pp.17-27
    • /
    • 2021
  • Streamflow prediction is a very vital disaster mitigation approach for effective flood management and water resources planning. Lately, torrential rainfall caused by climate change has been reported to have increased globally, thereby causing enormous infrastructural loss, properties and lives. This study evaluates the contribution of rainfall to streamflow prediction in normal and peak rainfall scenarios, typical of the recent flood at Piney Resort in Vernon, Hickman County, Tennessee, United States. Daily streamflow, water level, and rainfall data for 20 years (2000-2019) from two USGS gage stations (03602500 upstream and 03599500 downstream) of the Piney River watershed were obtained, preprocesssed and fitted with Long short term memory (LSTM) model. Tensorflow and Keras machine learning frameworks were used with Python to predict streamflow values with a sequence size of 14 days, to determine whether the model could have predicted the flooding event in August 21, 2021. Model skill analysis showed that LSTM model with full data (water level, streamflow and rainfall) performed better than the Naive Model except some rainfall models, indicating that only rainfall is insufficient for streamflow prediction. The final LSTM model recorded optimal NSE and RMSE values of 0.68 and 13.84 m3/s and predicted peak flow with the lowest prediction error of 11.6%, indicating that the final model could have predicted the flood on August 24, 2021 given a peak rainfall scenario. Adequate knowledge of rainfall patterns will guide hydrologists and disaster prevention managers in designing efficient early warning systems and policies aimed at mitigating flood risks.

Using Omnidirectional Images for Semi-Automatically Generating IndoorGML Data

  • Claridades, Alexis Richard;Lee, Jiyeong;Blanco, Ariel
    • Journal of the Korean Society of Surveying, Geodesy, Photogrammetry and Cartography
    • /
    • v.36 no.5
    • /
    • pp.319-333
    • /
    • 2018
  • As human beings spend more time indoors, and with the growing complexity of indoor spaces, more focus is given to indoor spatial applications and services. 3D topological networks are used for various spatial applications that involve navigation indoors such as emergency evacuation, indoor positioning, and visualization. Manually generating indoor network data is impractical and prone to errors, yet current methods in automation need expensive sensors or datasets that are difficult and expensive to obtain and process. In this research, a methodology for semi-automatically generating a 3D indoor topological model based on IndoorGML (Indoor Geographic Markup Language) is proposed. The concept of Shooting Point is defined to accommodate the usage of omnidirectional images in generating IndoorGML data. Omnidirectional images were captured at selected Shooting Points in the building using a fisheye camera lens and rotator and indoor spaces are then identified using image processing implemented in Python. Relative positions of spaces obtained from CAD (Computer-Assisted Drawing) were used to generate 3D node-relation graphs representing adjacency, connectivity, and accessibility in the study area. Subspacing is performed to more accurately depict large indoor spaces and actual pedestrian movement. Since the images provide very realistic visualization, the topological relationships were used to link them to produce an indoor virtual tour.

Galaxy Rotation Coherent with the Average Motion of Neighbors

  • Lee, Joon Hyeop;Pak, Mina;Lee, Hye-Ran;Song, Hyunmi
    • The Bulletin of The Korean Astronomical Society
    • /
    • v.44 no.1
    • /
    • pp.34.3-34.3
    • /
    • 2019
  • We report our discovery of observational evidence for the coherence between galaxy rotation and the average motion of neighbors. Using the Calar Alto Legacy Integral Field Area (CALIFA) survey data analyzed with the Python CALIFA STARLIGHT Synthesis Organizer (PyCASSO) platform, and the NASA-Sloan Atlas (NSA) catalog, we estimate the angular momentum vectors of 445 CALIFA galaxies and build composite maps of their neighbor galaxies on the parameter space of velocity versus distance. The composite radial profiles of the luminosity-weighted mean velocity of neighbors show striking evidence for dynamical coherence between the rotational direction of the CALIFA galaxies and the average moving direction of their neighbor galaxies. The signal of such dynamical coherence is significant for the neighbors within 800 kpc distance from the CALIFA galaxies with a confidence level of $3.5{\sigma}$, when the angular momentum is measured at the outskirt ($Re<R{\leq}2Re$) of each CALIFA galaxy. We also find that faint or kinematically misaligned galaxies show stronger coherence with neighbor motions than bright or kinematically well-aligned galaxies do. Our results show that the rotation of a galaxy, particularly at its outskirt, may be significantly influenced by recent interactions with its neighbors.

  • PDF

A study on applying random forest and gradient boosting algorithm for Chl-a prediction of Daecheong lake (대청호 Chl-a 예측을 위한 random forest와 gradient boosting 알고리즘 적용 연구)

  • Lee, Sang-Min;Kim, Il-Kyu
    • Journal of Korean Society of Water and Wastewater
    • /
    • v.35 no.6
    • /
    • pp.507-516
    • /
    • 2021
  • In this study, the machine learning which has been widely used in prediction algorithms recently was used. the research point was the CD(chudong) point which was a representative point of Daecheong Lake. Chlorophyll-a(Chl-a) concentration was used as a target variable for algae prediction. to predict the Chl-a concentration, a data set of water quality and quantity factors was consisted. we performed algorithms about random forest and gradient boosting with Python. to perform the algorithms, at first the correlation analysis between Chl-a and water quality and quantity data was studied. we extracted ten factors of high importance for water quality and quantity data. as a result of the algorithm performance index, the gradient boosting showed that RMSE was 2.72 mg/m3 and MSE was 7.40 mg/m3 and R2 was 0.66. as a result of the residual analysis, the analysis result of gradient boosting was excellent. as a result of the algorithm execution, the gradient boosting algorithm was excellent. the gradient boosting algorithm was also excellent with 2.44 mg/m3 of RMSE in the machine learning hyperparameter adjustment result.

Research on the Drinking Culture of the Choseon dynasty's Ruling Class using Semantic Network Analysis

  • Mi-Hye, Kim;Yeon-Hee, Kim
    • CELLMED
    • /
    • v.13 no.2
    • /
    • pp.3.1-3.21
    • /
    • 2023
  • In this study, the drinking culture of the Choseon dynasty is examined with the text frequency analysis technique on the entire 『Choseonwangjosilok (朝鮮王朝實錄)』. This study examined a total of 1,968 volumes and 948 books about 27 kings of Choseon , which spans a total of 518 years, through web crawling on the National Institute of Korean History website. Python 3.8 was used to extract sentences related to alcohol, Rhino 1.4.5 was used for morphological analysis to extract nouns, and Gephi 0.9.2 was used for semantic network analysis. According to 『Choseonwangjosilok (朝鮮王朝實錄)』 about alcohol culture, the results of the analysis are as follow: Alcoholic beverages were more often used in court or in ritual ceremonies rather than those based on specific ingredients or manufacturing methods commonly used by the general public. regarding the ruling class through semantic network analysis l in the 『Choseonwangjosilok (朝鮮王朝實錄)』, the Choseon dynasty was found to be highly associated with political issues related to maintaining the power relations within the Korean royal court system. At times, alcohol was used to maintain personal relationships, while at other times it was seen as an essential item in state ceremonies. It was also used as a highly political means to maintain and strengthen national power.

Trends Analysis on Research Articles of the Sharing Economy through a Meta Study Based on Big Data Analytics (빅데이터 분석 기반의 메타스터디를 통해 본 공유경제에 대한 학술연구 동향 분석)

  • Kim, Ki-youn
    • Journal of Internet Computing and Services
    • /
    • v.21 no.4
    • /
    • pp.97-107
    • /
    • 2020
  • This study aims to conduct a comprehensive meta-study from the perspective of content analysis to explore trends in Korean academic research on the sharing economy by using the big data analytics. Comprehensive meta-analysis methodology can examine the entire set of research results historically and wholly to illuminate the tendency or properties of the overall research trend. Academic research related to the sharing economy first appeared in the year in which Professor Lawrence Lessig introduced the concept of the sharing economy to the world in 2008, but research began in earnest in 2013. In particular, between 2006 and 2008, research improved dramatically. In order to grasp the overall flow of domestic academic research of trends, 8 years of papers from 2013 to the present have been selected as target analysis papers, focusing on titles, keywords, and abstracts using database of electronic journals. Big data analysis was performed in the order of cleaning, analysis, and visualization of the collected data to derive research trends and insights by year and type of literature. We used Python3.7 and Textom analysis tools for data preprocessing, text mining, and metrics frequency analysis for key word extraction, and N-gram chart, centrality and social network analysis and CONCOR clustering visualization based on UCINET6/NetDraw, Textom program, the keywords clustered into 8 groups were used to derive the typologies of each research trend. The outcomes of this study will provide useful theoretical insights and guideline to future studies.

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.

Analysis of User Reviews of Running Applications Using Text Mining: Focusing on Nike Run Club and Runkeeper (텍스트마이닝을 활용한 러닝 어플리케이션 사용자 리뷰 분석: Nike Run Club과 Runkeeper를 중심으로)

  • Gimun Ryu;Ilgwang Kim
    • Journal of Industrial Convergence
    • /
    • v.22 no.4
    • /
    • pp.11-19
    • /
    • 2024
  • The purpose of this study was to analyze user reviews of running applications using text mining. This study used user reviews of Nike Run Club and Runkeeper in the Google Play Store using the selenium package of python3 as the analysis data, and separated the morphemes by leaving only Korean nouns through the OKT analyzer. After morpheme separation, we created a rankNL dictionary to remove stopwords. To analyze the data, we used TF, TF-IDF and LDA topic modeling in text mining. The results of this study are as follows. First, the keywords 'record', 'app', and 'workout' were identified as the top keywords in the user reviews of Nike Run Club and Runkeeper applications, and there were differences in the rankings of TF and TF-IDF. Second, the LDA topic modeling of Nike Run Club identified the topics of 'basic items', 'additional features', 'errors', and 'location-based data', and the topics of Runkeeper identified the topics of 'errors', 'voice function', 'running data', 'benefits', and 'motivation'. Based on the results, it is recommended that errors and improvements should be made to contribute to the competitiveness of the application.