本文整理匯總了Python中atpy.Table.VELOCITY_1方法的典型用法代碼示例。如果您正苦於以下問題:Python Table.VELOCITY_1方法的具體用法?Python Table.VELOCITY_1怎麽用?Python Table.VELOCITY_1使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類atpy.Table
的用法示例。
在下文中一共展示了Table.VELOCITY_1方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Table
# 需要導入模塊: from atpy import Table [as 別名]
# 或者: from atpy.Table import VELOCITY_1 [as 別名]
# Chris Fuller, April 2014
#import mods
from atpy import Table
import numpy as np
from os.path import join as pj
import matplotlib.pyplot as plt
from lmfit import minimize, Parameters, report_fit
from matplotlib.ticker import MaxNLocator
#Inputs
folder = "/Users/chrisfuller/Dropbox/phd/herchel/coma/final_outputs/" # input/output folder
fname = 'coma_supercluster_cal12.fits' #input name
cat = Table(pj(folder,fname))
cat.VELOCITY_1 = cat.VELOCITY_1/1000.0
if False:
cat = cat.where((cat.RADIUS_VIR > 1.0))
types = ['late', 'inter', 'early']
colours = ['b', 'g', 'r']
sigmas = ['SIGMA1', 'SIGMA5', 'SIGMA10']
sig_labs = ['$\log_{10}$($\Sigma_{1}$) (Mpc$^{-2}$)', '$\log_{10}$($\Sigma_{5}$) (Mpc$^{-2}$)', '$\log_{10}$($\Sigma_{10}$) (Mpc$^{-2}$)']
fig, subs = plt.subplots(nrows=3, ncols=1, sharex=True, sharey=True, squeeze=True, figsize = (8,9), facecolor='w',edgecolor='w')
for j in range(3):
sub = subs[j]