
软件zsh下的homebrew安装与使用安装使用MACBOOK如何编辑pdf文件SExtractor使用格式关于sextractor中的模型拟合WebbPSFwebbpsf的网址在[这里](https://webbpsf.readthedocs.io/en/latest/intro.html)DS9FAST codebest fit的图纵坐标有问题FASTpp codeTexShopTexShop 使用 .bib 文件来引用参考文献Photutils, GALFIT, Source Extractor 坐标问题TOPCATzsh下的homebrew安装与使用安装用中科大的镜像/usr/bin/ruby-e$(curl-fsSLhttps://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)如果出现下面问题Tapping homebrew/core Cloning into/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core...用controlc中断并执行以下命令cd$(brew--repo)/Library/Taps/mkdirhomebrewcdhomebrewgitclone git://mirrors.ustc.edu.cn/homebrew-core.git安装成功会有提示。安装教程参见https://blog.csdn.net/Alphoseven/article/details/104373758使用用brew --help查看可用命令brew可用命令如下Example usage: brew search TEXT|/REGEX/ brew info[FORMULA|CASK...]brewinstallFORMULA|CASK... brew update brew upgrade[FORMULA|CASK...]brew uninstall FORMULA|CASK... brew list[FORMULA|CASK...]Troubleshooting: brew config brew doctor brewinstall--verbose--debugFORMULA|CASK Contributing: brew create URL[--no-fetch]brew edit[FORMULA|CASK...]Further help: brew commands brewhelp[COMMAND]manbrew https://docs.brew.shMACBOOK如何编辑pdf文件macbook自带的preview功能很强大可以插入文字签名还能插入图片。插入文字签名tools - annotate或者直接点工具栏的铅笔外面有圆圈的图标就好了。插入图片原文在这里url先用preview打开你要插入的图片。commandA 选中图片commandC 复制图片commandV 粘贴图片成物体(object)注意这个时候你粘贴的图片会覆盖原来的图片所以最好把原图copy一个再操作。然后再commandC 复制这个object现在可以打开pdf文件粘贴了。SExtractor使用格式sex xxx.fits -c xxx.sex关于sextractor中的模型拟合如果需要sextractor去拟合sersic模型等需要提供psf文件。这个psf官方是用psfex来生成的当然可以自己叠加恒星生成psf图像。但是通过自己叠加恒星生成的图像需要修改才能被sextractor用。具体改以下几项下面是生成108x108的psfx都是根据数据来改的其他的都固定除了3个PSFAXISLOADEDX ACCEPTEDX CHI2X POLNAXIS0 POLNGRP0 PSF_FWHMX PSF_SAMPX PSFNAXIS3 PSFAXIS1108 PSFAXIS2108 PSFAXIS31WebbPSFwebbpsf的网址在这里安装之前要卸载系统里已经有的webbpsf和poppy可以直接$ pip install webbpsf但是这种方法没办法及时获取更新比如会使用jwst还没上天的psf模型等这个没上天之前的psf的大小比上天之后在轨测试的psf小。使用官网的github安装方式$ pip install -e githttps://github.com/spacetelescope/poppy.git#eggpoppy $ pip install -e githttps://github.com/spacetelescope/webbpsf.git#eggwebbpsf有时候会报错error: subprocess-exited-with-error note: This error originates from a subprocess, and is likely not a problem with pip.这是因为你系统中安装的setuptools版本太低了这种错通常还伴随提示/private/var/folders/ml/2xwf3qp50n90n4n64349v4gr0000gn/T/pip-build-env-5j_uea_y/overlay/lib/python3.8/site-packages/setuptools_scm/integration.py:27: RuntimeWarning: ERROR: setuptools41.2.0 is used in combination with setuptools_scm6.x Your build configuration is incomplete and previously worked by accident! setuptools_scm requires setuptools45 This happens as setuptools is unable to replace itself when a activated build dependency requires a more recent setuptools version (it does not respect setuptoolsX in setup_requires). setuptools31 is required for setup.cfg metadata support setuptools42 is required for pyproject.toml configuration support Suggested workarounds if applicable: - preinstalling build dependencies like setuptools_scm before running setup.py - installing setuptools_scm using the system package manager to ensure consistency - migrating from the deprecated setup_requires mechanism to pep517/518 and using a pyproject.toml to declare build dependencies which are reliably pre-installed before running the build tools解决方法就是先卸载系统里的低版本setuptools然后再安装高版本setuptools$ sudo pip uninstall setuptools $ pip install setuptools然后再从github上安装webbpsf和poppy。或者从github上clone下来然后直接进到文件夹里pip安装。$ git clone https://github.com/spacetelescope/poppy.git#eggpoppy $ git clone https://github.com/spacetelescope/webbpsf.git#eggwebbpsf $ pip install -e webbpsf $ pip install -e poppy参考这个网址DS9哈佛网站之前更新过一次后来的新下载地址在这里FAST codeMariska Kriek (University of California, Berkeley)网址现在这个网址进不去了。。。可能开始使用FASTpp了不推FAST了找到download选择最新的版本下载下载好解压以后运行execution然后报错说是idl版本太低。然后查上面的网址的FAQ说是可以通过从新制作execution解决解决方法如下在下载fast的根目录里还有一个文件是mkexe.idl也一并下载下来然后把这个文件拷到刚刚下载的fast包中的idl文件夹然后从这个idl文件夹下进入终端输入下列命令idl mkexe.idl -arg fast然后就会在当前目录生成一个新的fast的execution替换原来fast文件夹下的execution就可以了。起初我以为是把mkexe.idl拷到当时安装idl语言的文件夹下然后就出错了。使用运行FAST就是在配置文件的上一层比如/users/mm/fast/test中存储着配置文件fast的exe在/users/mm/fast中然后运行就输入…/fast xxx.param就可以了。best fit的图纵坐标有问题运行fast后会给出一个best_fits文件夹里面有所有的输入和拟合的最好的sed模版然后可以把测光点在sed template上发现纵坐标是有问题的。然后师兄说是因为零点的问题就是25-23.93/2.5差这么一个系数。FASTpp codeMariska Kriek (University of California, Berkeley)github网址升级版的FAST速度快了TexShopTexShop 使用 .bib 文件来引用参考文献在同一目录下放 .bib 文件然后在编辑页面typeset 的顺序如下LaTex BibTex LaTex LaTex然后就可以识别 .bib 文件中的参考文献了。解决方法来源stackexchange这里Photutils, GALFIT, Source Extractor 坐标问题Photutils 关于坐标转换的问题网址链接提到几个常用的软件在处理图像的坐标时是不同的。主要还是python的起始坐标是0导致的。Photutils起始(0,0)且image[y,x]才是坐标(x,y)处的像素值GALFIT、Source Extractor、DS9、IRAF等起始(1,1)TOPCATX-match simbad 并非都是 specz我去查了原文有些是 photoz