随笔分类 -  python

摘要:可以把data cube看作一个面包片,每切一片,对应一个波长 头文件里有flux and wavelength, 把这两组数据提取出来。 1. 给出某个波长的切片图 2. 给出某个像素点的谱线图 3. 用循环得到所有像素点的谱线图 import numpy as np import matplot 阅读全文
posted @ 2025-04-07 17:01 cql_astro 阅读(4) 评论(0) 推荐(0)
摘要:chatgpt的解释: The text is explaining two different methods for convolving data: convolve() and convolve_fft(). Convolve() is a direct convolution algori 阅读全文
posted @ 2023-08-28 21:05 cql_astro 阅读(29) 评论(0) 推荐(0)
摘要:from astrocut import fits_cut from astropy.io import fits from astropy.coordinates import SkyCoord input_files=['13co.fits'] center_coord = SkyCoord(" 阅读全文
posted @ 2022-01-11 21:02 cql_astro 阅读(53) 评论(0) 推荐(0)
摘要:所有内容来自下面几个网站: 1. http://ugastro.berkeley.edu/pydecal/textbook.pdf 2. https://prappleizer.github.io/ (1)a function to slice 2-D arrays def image_slicer 阅读全文
posted @ 2020-11-18 17:13 cql_astro 阅读(180) 评论(0) 推荐(0)
摘要:开始看的时候是迷糊的,经过一番调研,基本上搞明白了。 在我阅读的程序里,sys.argv是用来读取文件名的。 比如有一个文件名为m001.fits,我们可以直接在程序中输入文件名来读取 也可以用filename = sys.argv[1]来代替,这里的[1],表述输入的第一个参数,也即文件名,如果是 阅读全文
posted @ 2020-10-09 10:50 cql_astro 阅读(337) 评论(0) 推荐(0)
摘要:from astropy.io import fits hdu_list = fits.open(image_file) hdu_list.info() image_data = hdu_list[0].data print(type(image_data))print(image_data.sha 阅读全文
posted @ 2020-08-18 18:34 cql_astro 阅读(1079) 评论(0) 推荐(0)

点击右上角即可分享
微信分享提示