소스 검색

Changed JPG to PNG and satellite height

I've changed the last line which saves the image from JPG format to PNG in order to be compatible with receive_meteor.sh script. I've also changed satellite height to 830 km since according to https://www.n2yo.com/satellite/?s=40069 perigee is 826.8 km, and apogee is 833.6 km as of 14 October 2020.
tags/v.1.4
mihajlo2003petkovic 4 년 전
committed by GitHub
부모
커밋
537101b95a
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      rectify.py

+ 2
- 2
rectify.py 파일 보기

@@ -8,7 +8,7 @@ from math import atan,sin,cos,sqrt,tan,acos,ceil
from PIL import Image

EARTH_RADIUS = 6371.0
SAT_HEIGHT = 822.5
SAT_HEIGHT = 830.0
SAT_ORBIT_RADIUS = EARTH_RADIUS + SAT_HEIGHT
SWATH_KM = 2800.0
THETA_C = SWATH_KM / EARTH_RADIUS
@@ -180,4 +180,4 @@ if __name__ == "__main__":
# It's a dead pool now
p.join()

rectified_img.save(out_fname + ".jpg", "JPEG", quality=90)
rectified_img.save(out_fname + ".png", "PNG")

불러오는 중...
취소
저장