dev (5) 썸네일형 리스트형 Sentinel Hub API로 위성 사진 수집하기 1. Introduction Sentinel Hub은 Sentinel, Landsat 등의 위성이 찍은 위성 사진을 제공하는 플랫폼이다. Sentinel Hub의 API와 위성 사진 처리를 위한 python library인 eo-learn을 사용하면 원하는 위치와 날짜의 위성 사진을 쉽게 수집할 수 있다. 이 코드는 OrbitalAI repository를 참고하였다. 2. Setup Install libraries pip install sentinelhub[AWS] pip install eo-learn lmport libraries import datetime import numpy as np from PIL import Image from typing import Tuple import matplotl.. GNU screen 사용법 0. 들어가며 GNU screen은 여러 개의 가상 터미널 세션을 사용할 수 있는 소프트웨어다. 이 글은 screen을 사용하는 방법을 다룬다. 1. 설치 아래 명령어로 screen을 설치할 수 있다. E: Unable to locate package screen 에러가 발생하면 apt-get update로 업데이트 후 다시 시도한다. code apt-get install screen 2. 주요 명령어 screen 외부 screen --help # 도움말 screen # screen 생성 후 진입 (이름은 무작위로 생성) screen -r {name} # 기존 screen 진입 (reattach) screen -S {name} # screen 생성 후 진입 (이름 지정) screen -R (name} #.. neo4j docker로 배포하기 0. 들어가며 neo4j를 docker로 배포하는 방법 1. 배포 ports 7474: HTTP 7473: HTTPS 7687: Bolt Bolt is an application protocol for the execution of database queries via a database query language, such as Cypher. [url] volumes: data와 logs 디렉토리를 연결한다. 필요할 경우 import, plugins와 같은 디렉토리도 연결할 수 있다. NEO4J_AUTH: admin name과 password admin name은 neo4j를 사용해야 한다. code docker run --name myneo4j -d -p 7474:7474 -p 7473:7473 -p.. GPU 서버 개발 환경 구축 0. 들어가며 GPU 서버에서 Docker 기반의 개발 환경을 구축하는 방법 1. Docker container 생성 1.1. 서버 접속 환경 구축을 진행할 서버에 접속한 뒤 원하는 경로로 이동한다. ssh -p {PORT} {USER}@{IP} cd {DIRECTORY} 1.2. Dockerfile 작성 Dockerfile을 작성한다. runtime vs devel: runtime은 가볍지만 nvcc가 설치되어있지 않다. 따라서 devel을 사용해야 한다. sending build context to Docker daemon에서 너무 많은 용량을 사용할 경우, 빈 폴더에 Dockerfile을 넣은 뒤 build한다. vim Dockerfile # base image FROM pytorch/pytorch.. Neo4j Python library 사용법 0. 들어가며 Graph database neo4j는 python에서 DB에 접근할 수 있는 driver인 neo4j-python-driver를 제공한다. neo4j-python-driver 사용법을 작성한 글이다. 1. 설치 pip install neo4j 2. Driver 불러오기 from neo4j import GraphDatabase uri = "bolt://localhost:7687" user = "neo4j" password = "neo4j" driver = GraphDatabase.driver(uri, auth=(username, password)) 실제 개발에서는 보안을 위해 접속 정보를 환경 변수로 처리하는 것이 좋다. 3. Query 실행 query = ''' MERGE (n:Perso.. 이전 1 다음