fits2image:将FITS文件转换为灰度jpeg图像

时间:2024-05-17 06:55:05
【文件属性】:

文件名称:fits2image:将FITS文件转换为灰度jpeg图像

文件大小:2KB

文件格式:ZIP

更新时间:2024-05-17 06:55:05

Python

将FITS文件转换为图像文件 import sys import numpy as np try : from astropy . io import fits except ImportError : import pyfits as fits from PIL import Image # Read command line arguments try : fitsfilename = sys . argv [ 1 ] vmin , vmax = float ( sys . argv [ 2 ]), float ( sys . argv [ 3 ]) except IndexError : sys . exit ( 'Usage: ' + sys . argv [ 0 ] + ' FITSFILENAME VMIN VMAX' ) # Try t


【文件预览】:
fits2image-master
----fits2image.py(936B)
----README.org(14B)
----.gitignore(6B)
----fits2image.org(1KB)

网友评论