腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
在
FileNotFoundError
中
使用
Astropy
打开
FITS
文件
的
结果
python
、
astropy
、
fits
当我
使用
fits
_datasweep_gal =
fits
.open('Macintosh HD/Users/lingxuan/Downloads/datasweep-index-gal.
fits
') 要在Jupyter notebook上
打开
FITS
文件
,它会返回:
FileNotFoundError
Traceback (most rece
浏览 21
提问于2019-01-30
得票数 0
回答已采纳
1
回答
我如何从一个不稳定
的
URL
中
打开
一个
FITS
文件
?
python
、
urllib2
、
astropy
我
在
URL上有一个.
fits
文件
,我想把它读到Python
中
,就好像就在我
的
机器上一样。我试过
的
是:target_url = 'https://s3.amazonaws.com/bdnyc/spex_prism_U50171_0835%2B19_chiu06.
fits
浏览 2
提问于2015-09-18
得票数 3
回答已采纳
1
回答
从bz2
打开
fits
文件
python
、
fits
、
astropy
所以我有一个压缩
的
fits
文件
,我是这样读
的
:
fits
= File.read() 我正在
使用
astropy
.io.
fits
读取
fits
文件
。目前,我通过api获取.
fits
.bz2
文件
,因此理想情况下,我希望能够像hdulist =
fits
.open(fit)一样读取它们。(我已经通过手动解压并像上面一样读
浏览 2
提问于2015-01-26
得票数 1
1
回答
如何
使用
.FTS.gz ()
打开
远程
astropy
.io.
fits
.open
文件
?
gzip
、
astropy
、
fits
问题摘要: 我正在编写一些
使用
astropy
.io.
fits
检查FTS
文件
头(从望远镜中保存
的
数据)内容
的
代码。我
的
问题是当我试图
在
远程服务器上
打开
.FTS.gz
文件
而不是.FTS
文件
时。在网上搜索时,我建议
在
ignore_missing_end=True中
使用
fits
.open()参数,但随后得到了下一个错误。下一个错误表明我
的</em
浏览 2
提问于2017-04-05
得票数 1
回答已采纳
1
回答
How to make a.
fits
.gz file into a pandas DataFrame 'ValueError: Big-endian buffer not supported on little-endian
python
、
pandas
、
astropy
、
astronomy
我有一个
文件
'3dhst.v4.1.5.master.
fits
.gz',我想把它
打开
并做成一个DataFrame。我想从中提取一组列,然后将其与另一个DataFrame合并。我尝试了以下几种方法: import
astropy
master =
fits
.open('3dhst.v4.1.5.master.
fits
.gz
astropy
文档说:“ope
浏览 26
提问于2020-06-15
得票数 1
回答已采纳
1
回答
有没有一种方法可以用
astropy
创建.
fits
马赛克?
python
、
astropy
、
fits
我想在一个独特
的
.
fits
文件
中
使用
不同
的
HDU创建一个马赛克,就像你
使用
SAOimage DS9并选择“
文件
>
打开
为>马赛克WCS”一样。当我搜索如何
使用
astropy
来做到这一点时,我遇到了reproject,并尝试按照https://reproject.readthedocs.io/en/stable/mosaicking.html上
的</e
浏览 49
提问于2020-06-13
得票数 0
1
回答
编写三维Numpy数组以配合
Astropy
文件
python
、
fits
、
astropy
我想
使用
astropy
.io.
fits
将这个数组写入一个
FITS
文件
,这样我就可以
使用
ds9 -mecube
打开
文件
并在帧中移动。我
的
尝试如下所示print export_array.shape## (10, 256, 256) hdu =
fits
.PrimaryH
浏览 3
提问于2015-08-07
得票数 2
回答已采纳
1
回答
如何记录拉伸
FITS
图像并更改其对比度?
python
、
python-2.7
、
astropy
、
fits
我尝试
使用
astropy
2.0.11和python 2.7.15来编辑
fits
图像,方法是对其应用对数拉伸并更改对比度,但我一直无法解决这个问题。我一直
在
尝试按照
astropy
网站上
的
教程
打开
和操作
fits
文件
,但我想知道这些教程是否只适用于最新版本
的
astropy
和python 3? 抱歉,我
的
代码组织得不够好。from
astropy
.io import <
浏览 21
提问于2019-02-15
得票数 2
回答已采纳
1
回答
如何裁剪
fits
.gz
文件
,然后
使用
Python查看裁剪后
的
图像?
python
、
image
、
crop
、
astropy
、
fits
我有几个
fits
.gz
文件
,其中包含一个需要围绕特定坐标进行裁剪
的
大图像。我有需要围绕裁剪居中
的
点
的
图像坐标,我想围绕这个点创建一个2048x2048
的
图像。我还需要能够查看裁剪
的
图像,以确保一切工作正常,最好是一个小圆圈或中心点周围
的
东西。我尝试
使用
打开
的
fits
文件
中
的
信息 hdu_list =
fits
.
浏览 66
提问于2021-11-02
得票数 0
2
回答
在
使用
astropy
将
FITS
文件
转换为ndarray时获取NaN值
python
、
astropy
我正在尝试
使用
astropy
将一个
FITS
文件
转换为ndarray。我正在跟踪这些。我
使用
查看
FITS
文件
中
的
图像,但是
文件
的
表
中
只填充了Null值: image_
浏览 10
提问于2019-12-23
得票数 2
回答已采纳
1
回答
用
astropy
.io.
fits
编写
文件
python
、
astropy
、
fits
我试图
使用
astropy
.io将数据附加到
fits
文件
中
。下面是我
的
代码示例:from
astropy
.io import
fits
a2 = np.array=a1), hdul
浏览 2
提问于2015-12-18
得票数 5
回答已采纳
1
回答
如何从不同
的
路径
在
python
中
打开
fits
文件
python
我下载了一个
fits
文件
,该
文件
保存在默认
的
下载
文件
夹
中
。但现在我想用丙酮
打开
它。我试过:>>> hdulist=
fits
.open('MOS_033.Tb.
fits
')IOError: [Errno 2] No such file or dir
浏览 10
提问于2016-06-03
得票数 1
回答已采纳
1
回答
将头复制到新
文件
中
astropy
、
pyfits
我有一个脚本,它创建了一个具有多个扩展名
的
文件
,但我希望将旧
文件
的
头添加到扩展名
中
。new_hdul =
fits
.HDUList()new_hdul.append(
fits
.ImageHDU'))现
浏览 4
提问于2016-04-06
得票数 0
回答已采纳
1
回答
如何从Python
中
的
FITs
图像
中
获取像素信息?
python
、
image-processing
我试图
在
Python
中
的
FITs
图像中找到给定像素
的
强度。图像是黑白
的
,所以我只是
在
寻找像素
的
值。我
使用
的
代码是:import
astropy
from
astropy
.utils.dataimport get_pkg_dat
浏览 4
提问于2020-08-05
得票数 0
1
回答
无法
使用
Astropy
.io.
fits
读取大
的
FITS
文件
python
、
out-of-memory
、
fits
、
astropy
、
pyfits
我目前正在尝试
使用
Python3.4
的
astropy
.io.
fits
从一个大型数据拟合格式
的
数据
文件
中
读取数据。虽然我可以
使用
memmapper模式成功
打开
文件
,但我无法访问
文件
中
的
数据。以下是我
的
代码 hdu_list =
fits
.
浏览 2
提问于2015-04-30
得票数 0
2
回答
将ASCII表转换为适合图像
python
、
matlab
、
fits
、
pyfits
我是这个领域
的
初学者。我有一个文本
文件
有三列: X,Y,强度
在
(X,Y)。它们基本上是数组(1X10000),每个数组都是通过python
在
文本
文件
中
写出
的
。要在python
中
绘制数据集,我可以简单地
使用
trisurf来实现这一点。但是为了进一步
的
处理,我需要从它创建一个适合
的
图像。如何从这个文本
文件
中生成
FITS
图像(而不是简单
的
FIT
浏览 10
提问于2015-03-06
得票数 1
回答已采纳
1
回答
从SFTP服务器
打开
Astropy
FITS
文件
python
、
sftp
、
paramiko
、
astropy
、
fits
我有一个Python脚本,它
使用
Paramiko模块将ssh放到远程服务器
中
。下面是我
的
剧本ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())本地机器上
的
FITS
文件
通常按以下方式
打开
: fro
浏览 0
提问于2018-12-11
得票数 2
回答已采纳
1
回答
关闭上下文管理器后保存
fits
文件
可访问性
python
、
with-statement
、
astropy
我正在
使用
astropy
.io.
fits
(
fits
文件
格式)
打开
承载
在
repo上
的
fits
文件
,如下所示: with
fits
.open) as f: self.hdu_cal.append(
浏览 11
提问于2021-12-17
得票数 0
2
回答
在
python
中
打开
不带简单关键字
的
fits
文件
python
、
astropy
、
fits
我有大量
的
fits
文件
,我无法
打开
,因为缺少一个简单
的
关键字。当我尝试
使用
astropy
的
fits
.open()
打开
它们时,它给出了以下错误: OSError:未找到简单卡,此
文件
似乎不是有效
的
FITS
文件
我尝试向
fits
.open()添加ignore_missing_simple=True选项,但仍然给出一个错误: OSEr
浏览 33
提问于2021-09-27
得票数 3
1
回答
使用
指定边界裁剪非常大
的
fits
文件
image
、
crop
、
astronomy
、
fits
、
astropy
我有一个大
的
fits
文件
(超过30,000 x 30,000)像素。无法处理此大小
的
图像。如何裁剪这种大小
的
文件
,同时保留正确
的
标题信息,就像IRAF
在
使用
其标准裁剪模式时所做
的
那样?
浏览 0
提问于2015-09-23
得票数 5
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券