A collection of useful python codes from github (keep updating)
Go back to Content
python教程 https://github.com/TwoWater/Python
Astropy package for region handling https://github.com/astropy/regions
PyAstronomy https://github.com/sczesla/PyAstronomy
Dave Green的colormap图 https://github.com/jradavenport/cubehelix
画corner图 https://github.com/dfm/corner.py
taotie天文python code搜集 https://github.com/dr-guangtou/taotie
各类ascii table读取 https://docs.astropy.org/en/stable/io/ascii/index.html
Go back to Content
统计方法课程 https://github.com/KIPAC/StatisticalMethods
The Hartigans' dip statistic https://github.com/tatome/dip_test
天文统计 https://github.com/liuchaonaoc/Astrostatistics
https://github.com/liuchaonaoc/Astrostatistics2022
scipy的统计模型补充 https://github.com/statsmodels/statsmodels
GaussPy:Autonomous Gaussian Decomposition算法 https://github.com/gausspy/gausspy
Solving distribution function (DF) based lowered isothermal models https://github.com/mgieles/limepy
小波变换 https://github.com/mabelcalim/waipy
连续小波变换 https://github.com/danielefranceschi/wavelets-climatological-time-series
连续小波变换(信号识别) https://github.com/gsubramani/SignalRecognition
连续小波变换分析 https://github.com/regeirk/pycwt
小波变换 https://github.com/PyWavelets/pywt
多维统计检验 https://github.com/syrte/ndtest
大数据统计 https://github.com/mfouesneau/faststats
STFT短时傅里叶变换 https://github.com/nils-werner/stft
信号分析,包括STFT等 https://github.com/zafarrafii/Zaf-Python
Generalised Lomb-Scargle periodogram https://github.com/mzechmeister/GLS
BayesianGLS https://github.com/jvines/BayesianGLS
Go back to Content
zfit https://github.com/zfit/zfit
symfit https://github.com/tBuLi/symfit
Solid https://github.com/100/Solid
lmfit https://github.com/lmfit/lmfit-py
https://github.com/maorshutman/lm
mpfit https://github.com/abeelen/mpfit
mpfit(Levenberg–Markwardt fit algorithm) https://github.com/Nablaquabla/easyfit
BayesicFitting https://github.com/dokester/BayesicFitting
MCMC估计误差 https://github.com/nasa/MCMCPy
连续分段函数拟合 https://github.com/cjekel/piecewise_linear_fit_py
bayesianCurveFitting https://github.com/nazariyv/smallMargin_bayesianCurveFitting
Bayesian滑动拟合carma https://github.com/brandonckelly/carma_pack
https://github.com/laofei177/plasticc_carma
Go back to Content
各种天文工具集合pwkit https://github.com/pkgw/pwkit
计算消光系数/消光曲线 https://github.com/mfouesneau/dustapprox
https://github.com/karllark/dust_extinction
获取消光率 https://github.com/kbarbary/extinction
BC改正 https://github.com/casaluca/bolometric-corrections
由光谱计算波段测光 https://github.com/mfouesneau/cphot
生成临边昏暗系数 https://github.com/nespinoza/limb-darkening
天文表格创建 https://github.com/astrocatalogs/astrocats
findchart自动下载 https://github.com/juandesant/DownloadSDSSFindingCharts
https://github.com/fpavogt/fcmaker
交互式画天区 https://github.com/ggreco77/GWsky
巡天模拟 https://github.com/ZwickyTransientFacility/simsurvey
imexam交互式查看图像 https://github.com/spacetelescope/imexam
天测改正图像坐标 https://github.com/dstndstn/astrometry.net
https://github.com/lukaswenzl/astrometry
天文大数据交叉 https://github.com/maayane/catsHTM
获取在线图像或星表
https://github.com/astropy/astroquery/
将FITS图像重新投影
https://github.com/astropy/reproject
处理healpix的坐标
https://github.com/astropy/astropy-healpix
astropy workshop
https://github.com/astropy/astropy-workshop
天文画图包
https://github.com/aplpy/aplpy
Go back to Content
图像预处理(光谱通用) ccdproc https://github.com/astropy/ccdproc
测光 https://github.com/astropy/photutils
基于daophot和idl的psf自动测光 https://github.com/dnidever/PHOTRED
图像叠加 https://github.com/Caltech-IPAC/Montage
合并dithered图像 https://github.com/spacetelescope/drizzle
hotpants测光图像相减找变星 https://github.com/acbecker/hotpants
较差测光 https://github.com/viyh/diphot
测光图像处理及较差测光 https://github.com/arcunique/pyapphot
测光数据处理及较差测光 https://github.com/ivxa/Phot
CCD数据处理流程及测光 https://github.com/astropy/ccd-reduction-and-photometry-guide
光变时域数据去除trend https://github.com/hippke/wotan
自动测光 https://github.com/mommermi/photometrypipeline
较差测光(配置未成功) https://github.com/vterron/lemon
pyphot从光谱计算星等 https://github.com/mfouesneau/pyphot
dolphot处理HST数据 https://github.com/dweisz/pydolphot
https://github.com/swj1442291549/pydolphot
Photometry-tools https://github.com/jishnupdas/Photometry-tools
sextractor https://github.com/ckleinastro/aperture_photometry_scripts
Go back to Content
SED拟合探测双星 https://github.com/bathompso/BINOCS
SED拟合 https://github.com/dunkenj/smpy
SED拟合巨星 https://github.com/s-goldman/Dusty-Evolved-Star-Kit
SED拟合单星或双星 https://github.com/vosjo/speedyfit
https://github.com/lidihei/speedysedfit
双星SED拟合 https://github.com/jikrant3/Binary_SED_Fitting
astroARIADNE SED拟合 https://github.com/jvines/astroARIADNE
单星或双星 https://github.com/mkounkel/SEDFit
Go back to Content
光谱数据处理 https://github.com/pypeit/PypeIt
一维长缝光谱处理 https://github.com/TheAstroFactory/pydis
阶梯光栅光谱处理 https://github.com/wangleon/gamse
https://github.com/ronnyerrmann/HiFLEx
https://github.com/oromero1995/SpecTracer
2.16高分辨率光谱处理 https://github.com/hypergravity/hrs
2.16/2.4长缝光谱处理 https://github.com/rudolffu/pyfosc
2.16/E9+G10光谱处理 https://github.com/hypergravity/bfosc
https://github.com/lidihei/pyexspec
光谱处理 https://github.com/astropy/specutils
去宇宙线 https://github.com/larrybradley/lacosmic
光谱rv计算(Broadening Function) https://github.com/mrawls/BF-rvplotter
HoRuS数据处理 https://github.com/callendeprieto/chain
光谱合成 https://github.com/callendeprieto/synple
IFU三维光谱处理 https://github.com/kasperschmidt/TDOSE
HotSAP高温恒星参数测量 https://github.com/zackdraper/HotSAP
高分辨率光谱参数测量 (HARPS, FEROS, UVES, HIRES, PFS, CORALIE) https://github.com/msotov/SPECIES
光谱分类 https://github.com/BU-hammerTeam/PyHammer
快速光谱库提取/内插 https://mfouesneau.github.io/pystellibs
Go back to Content
大气参数测量iSpec https://github.com/marblestation/iSpec
FASMA https://github.com/DanielAndreasen/FASMA
https://github.com/MariaTsantaki/FASMA-synthesis
SME https://github.com/JeffValenti/SME
大气参数计算zaspe https://github.com/rabrahm/zaspe
大气参数和RV测量rvspecfit https://github.com/segasai/rvspecfit
大气参数计算StePar https://github.com/hmtabernero/StePar
https://github.com/hmtabernero/SteParSyn
大气参数测量(EW method) https://github.com/Li-Yangyang/LOTUS
大气参数估算 https://github.com/lcx366/ATMOS
Go back to Content
joker解轨 https://github.com/adrn/thejoker
视向速度拟合 https://github.com/California-Planet-Search/radvel
利用joker做双星星族推论 https://github.com/adrn/TwoFace
phoebe https://github.com/phoebe-project/phoebe2
ELC的输入输出 https://github.com/mrawls/ELCtools
WD code的python端 https://github.com/swj1442291549/pyWDc
https://github.com/Varnani/pywd2015-qt5
多体系统光变曲线拟合 https://github.com/dfm/photodynam
拟合天测双星轨道 https://github.com/mkounkel/astrometric_binaries
天体测量解轨orvara https://github.com/t-brandt/orvara
天测解轨ExoSOFT https://github.com/kylemede/ExoSOFT
双星天测解轨(fortran) https://github.com/rebeccahoughton/FOBOS
gaia天测解轨(输入两颗星ID) https://github.com/logan-pearce/lofti_gaia
https://github.com/dvallsgabaud/lofti_gaiaDR2
拟合轨道的一些方法 https://github.com/jacob-i-skinner/Orbit-Fitting
直接测量法解轨 https://github.com/sblunt/orbitize
Go back to Content
BinSpec拟合(未分辨)双星光谱 https://github.com/kareemelbadry/binspec
KOREL光谱分解工具的输入输出 https://github.com/robert-klement/KOREL_tools
FDBinary code使用(双星分解) https://github.com/mrawls/FDBinary-tools
https://github.com/ayushmoharana/fd3_initiator
光谱分解 https://github.com/jsinkbaek/sb2sep
双星光谱分解 https://github.com/aplidinio/Spectral-Disentangling
机器学习进行光谱分解【演化的光谱】 https://github.com/kim22914351420/spectralGA
检查Apogee数据的ccf搜寻光谱双星 https://github.com/mkounkel/apogeesb2
双星SB2 rv抽取 https://github.com/kcotar/Spectroscopic-binary-decomposition
Go back to Content
Padova恒星模型轨迹使用 https://github.com/philrosenfield/padova_tracks
hoki使用BPASS模型 https://github.com/HeloiseS/hoki
等年龄线拟合 https://github.com/Johaney-s/StIFT
isochrones利用MCMC拟合恒星性质 https://github.com/timothydmorton/isochrones
读MESA数据 https://github.com/wmwolf/py_mesa_reader
恒星物理参量计算 https://github.com/rabrahm/isoAR
恒星物理参量计算 https://github.com/jlin0504/elli
恒星参量计算(交互式) https://github.com/ZihanG123/StellarParameters
巨星参量 https://github.com/StephanStock/SPOG
Go back to Content
X射线双星的radio/X-ray关系 https://github.com/bersavosh/XRB-LrLx_pub
高斯过程分析恒星耀发 https://github.com/dhuppenkothen/SolarFlareGPs
PRESTO脉冲星搜寻和分析 https://github.com/scottransom/presto
机器学习辨认射电源和宿主星系 https://github.com/chengsoonong/crowdastro
X射线耀发探测模拟(Bayesian Blocks ) https://github.com/Elie23/X-ray-flare-simulator
机器学习识别yso https://github.com/riwajpokhrel/predictive-modeling-yso
UPSILoN机器学习进行变星分类 https://github.com/dwkim78/upsilon
如何获得starhorse数据 https://github.com/arm2arm/starhorse_db
X射线数据周期搜寻(存在Pdot) https://github.com/stingraysoftware/hendrics
X射线时域光谱分析工具 https://github.com/StingraySoftware/stingray
天文时序数据分析 https://github.com/astroML/gatspy
TDE光变拟合(fortran) https://github.com/guillochon/tdefit
TDE恒星性质 https://github.com/jamielaw-smith/STARS_library
TDE光变抽取及拟合 https://github.com/gmzsebastian/AT2018hyz
瞬变源光变曲线拟合 https://github.com/guillochon/MOSFiT
黑子构造和演化 https://github.com/samarth-kashyap/starspots
行星大气性质推测 https://github.com/tomasstolker/species
行星天测轨道拟合 https://github.com/vortex-exoplanet/PyAstrOFit
行星轨道拟合 https://github.com/LucaMalavolta/PyORBIT
多普勒成像Doppler tomography https://github.com/trmrsh/trm-doppler
https://github.com/Alymantara/pydoppler
计算roche lobe https://github.com/janvanroestel/pyroche
白矮星年龄测量 https://github.com/rkiman/wdwarfdate
白矮星质量半径计算 https://github.com/Freebird179/WD_mass_radius_relation
造父变星 https://github.com/saagar-parikh/cepheids-demo
https://github.com/ceb8/CepheidVariables
https://github.com/earlbellinger/Cepheid-neural-network
https://github.com/astroswego/cepheid-visualization
https://github.com/ckleinastro/period_luminosity_relation_fitting
AGN时序光变分析 https://github.com/ywx649999311/EzTao
Go back to Content
astroML及其示例 https://github.com/astroML/astroML
https://github.com/YastroML/YastroML
Andrew Ng的机器学习课程 https://github.com/kaleko/CourseraML
机器学习讲解 https://github.com/ljpzzz/machinelearning
机器学习练习 https://github.com/nsoojin/coursera-ml-py
astropy一些机器学习方法的使用例子 https://github.com/astropy/astropy-model-ideas
贝叶斯方法 https://github.com/CamDavidsonPilon/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers
BEAST:贝叶斯方法拟合SED和消光 https://github.com/BEAST-Fitting/beast
MCMC和mpfit举例 https://github.com/AnitaPetzler/FittingExamples
分析光变搜寻变星 https://github.com/waqasbhatti/astrobase
Auriga神经网络预测星族年龄、消光、距离 https://github.com/mkounkel/Auriga
Go back to Content
GALEX光子抽取 https://github.com/cmillion/gPhoton
APO 1m望远镜观测安排/数据处理/较差测光 https://github.com/mrawls/APO-1m-phot
Kepler, K2 & TESS数据分析 https://github.com/KeplerGO/pyke
Kepler/TESS时间序列分析 https://github.com/KeplerGO/lightkurve
Kepler光变曲线生成 https://github.com/mrawls/kepler-makelc
k2光变曲线De-trending https://github.com/rodluger/everest
检查天体是否在k2天区内 https://github.com/KeplerGO/K2fov
k2天区 https://github.com/KeplerGO/K2FootprintFiles
画k2天区 https://github.com/KeplerGO/k2-footprint-plots
TESS光变和SB9光谱双星交叉 https://github.com/SimonJMurphy/TESSSB9
TESS光变处理 https://github.com/msotov/get_TESS_lightcurves
TESS光变提取 https://github.com/afeinstein20/eleanor
Gaia数据利用 https://github.com/adrn/pyia
APOGEE数据处理 https://github.com/jobovy/apogee
wise及neowise光变曲线 https://github.com/HC-Hwang/wise_light_curves
ZTF报警 https://github.com/ZwickyTransientFacility/alert_tools
https://github.com/ZwickyTransientFacility/ztf-avro-alert
ZTF源分类 https://github.com/ZwickyTransientFacility/scope
GALEX——flare表 https://github.com/MillionConcepts/gfcat
Gaia & Hipparcos https://github.com/gmbrandt/HTOF
Go back to Content
大气参数/质量/年龄拟合 https://github.com/annayqho/TheCannon
astroNN https://github.com/henrysky/astroNN
lamost光谱处理workshop https://github.com/hypergravity/spectroscopy
lamost光谱操作工具 https://github.com/hypergravity/laspec
lamost寻找pn https://github.com/sevenlin123/lamost_pn
lamost光谱证认hotsubdwarf https://github.com/astronomical-data-processing/cnn_spectra_classification
LAMOST光谱分类的一些程序 https://github.com/WangTX1128/LAMOST-
Go back to Content
处理光谱cube https://github.com/radio-astro-tools/spectral-cube
射电波束 https://github.com/radio-astro-tools/radio-beam
画PV图 https://github.com/radio-astro-tools/pvextractor
用来三维找源 https://gitlab.com/SoFiA-Admin/SoFiA-2
干涉仪数据处理软件 CASA相关 https://github.com/casangi
干涉仪基础 https://github.com/ratt-ru/fundamentals_of_interferometry
FAST的HI数据处理 https://hifast.readthedocs.io/en/v1.3/
自动标记RFI https://gitlab.com/aroffringa/aoflagger
Go back to Content
机器学习 https://github.com/trevorstephens/gplearn
快速画图 https://github.com/mfouesneau/asciiplot
MCMC讲解 https://github.com/chi-feng/mcmc-demo
新浪博客批量备份工具 https://github.com/junyiz/dature