科学网

 找回密码
  注册
reproject vs montage_wrapper
曹越 2021-2-21 00:50
reproject can accept header objects directly for reporjection, while mw needs txt files converted from headers. reproject.reproject_interp can handle PPV cubes properly, while mw.reproject_cube can’t re-project correctly along the velocity axis. No significant differences in the o ...
个人分类: 天文软件|1161 次阅读|没有评论
Writing BZERO & BSCALE cards to fits headers using astropy
曹越 2019-7-30 11:06
Found a strange thing that theBZERO BSCALE cards can't be written to the header by the code below hdu = fits.open(fits_file) h = hdu .header img = hdu .data h = 0. h = 1. fits.writeto(fits_file,img,h) This will cause problems when using getsources, since it ...
个人分类: 天文软件|1592 次阅读|没有评论
天文数据处理:大fits裁剪时的注意事项
曹越 2018-9-2 15:35
大fits是指fits的coverage足够大,天空投影效应的非线性项不可忽略的fits。 用montage.mSubimage裁剪大fits,如果裁剪区域远离投影中心,裁剪生成的fits的形状会有畸变,比如fits的格点不能对向正北。这是因为,新 fits继承了老 fits的投影中心,对于新fits来说,此投影中心往往远远偏离fits image的几何中心, ...
个人分类: 天文软件|2516 次阅读|没有评论
射电天文数据处理:miriad转casa做成图的始末
曹越 2018-7-6 09:46
如果是做干涉阵数据处理,最好是先转入casa,再calibration+imaging,不要在miriad做calibration后再在casa做imaging,否则容易丢失信息,这里详细说明: https://safe.nrao.edu/wiki/bin/view/Main/SMAVelocityScale 。否则可能会遇到与我相似的经历~ 我现在有SMA多日期观测的数据,calibration已做好。 ...
个人分类: 天文软件|2899 次阅读|没有评论
miriad运行时无法找到libg2c.so.0解决方案
曹越 2017-4-30 15:05
miriad运行时可能找不到libg2c.so.0文件而产生错误: miriad libg2c.so.0: cannot open shared object file: No such file or directory 解决方法: 找到该文件,放在/usr/lib下。 寻找方法: 1. 见附件 libg2c.so.0 2. 安装casa4.7.0,里面有 3. 试试这篇博文 http://blog.sciencenet.cn/home.php?mod=space ...
个人分类: 天文软件|2612 次阅读|没有评论
fits文件的旋转问题
曹越 2017-4-25 14:24
Montage包里的mRotate函数可以实现fits文件的旋转, 但是注意, 位置精度会有丢失!! 我的例子里面, 一个1°的fits会有几个的误差, 无法容忍! 我尝试把大fits分割成小fits旋转, 仍不能解决问题. 如果仅仅是做demo, 推荐用aplpy里的FITSFigure函数里的 north=True命令, 精度要高很多. 但是有时函数会报错: Linear trans ...
个人分类: 天文软件|2372 次阅读|没有评论
fits文件中坐标系变换需要注意的地方
热度 1 曹越 2017-4-13 16:55
用astropy里的wcs做坐标系变换, 从pix到world coordinates. WCS(h).wcs_pix2world( ,0,0)得到的ra相减, 并非pixel的张角, 因为不同dec处的pixel的ra张角不同,类比经度纬度.
个人分类: 天文软件|2437 次阅读|没有评论 热度 1

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-26 18:34

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部