python中arcsec_Python astropy.units 模块,rad() 实例源码 - 编程字典

def empty_observation():

"""

Return a numpy array that could be a handy observation record

XXX: Should this really be "empty visit"? Should we have "visits" made

up of multple "observations" to support multi-exposure time visits?

XXX-Could add a bool flag for "observed". Then easy to track all proposed

observations. Could also add an mjd_min, mjd_max for when an observation should be observed.

That way we could drop things into the queue for DD fields.

XXX--might be nice to add a generic "sched_note" str field, to record any metadata that

would be useful to the scheduler once it's observed. and/or observationID.

Returns

-------

numpy array

Notes

-----

The numpy fields have the following structure

RA : float

The Right Acension of the observation (center of the field) (Radians)

dec : float

Declination of the observation (Radians)

mjd : float

Modified Julian Date at the start of the observation (time shutter opens)

exptime : float

Total exposure time of the visit (seconds)

filter : str

The filter used. Should be one of u, g, r, i, z, y.

rotSkyPos : float

The rotation angle of the camera relative to the sky E of N (Radians)

nexp : int

Number of exposures in the visit.

airmass : float

Airmass at the center of the field

FWHMeff : float

The effective seeing FWHM at the center of the field. (arcsec)

skybrightness : float

The surface brightness of the sky background at the center of the

field. (mag/sq arcsec)

night : int

The night number of the observation (days)

"""

names = ['RA', 'dec', 'mjd', 'exptime', 'filter', 'rotSkyPos', 'nexp',

'airmass', 'FWHMeff', 'FWHM_geometric', 'skybrightness', 'night', 'slewtime', 'fivesigmadepth',

'alt', 'az', 'clouds', 'moonAlt', 'sunAlt', 'note']

# units of rad, rad, days, seconds, string, radians (E of N?)

types = [float, float, float, float, '|U1', float, int, float, float, float, float, int, float, float,

float, float, float, float, float, '|U40']

result = np.zeros(1, dtype=list(zip(names, types)))

return result

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值