Coverage for python/lsst/sims/skybrightness/utils.py : 48%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Wrap only RA values into 0-2pi (using mod). """
""" Convert Modified Julian Date to Dublin Julian Date (what pyephem uses). """
""" Use the interquartile range to compute a robust approximation of the RMS. if passed an array smaller than 2 elements, return missing value """ if np.size(array) < 2: rms = missing else: iqr = np.percentile(array, 75)-np.percentile(array, 25) rms = iqr/1.349 # approximation return rms
obs = ephem.Observer() obs.date = dateString doff = ephem.Date(0)-ephem.Date('1858/11/17') mjd = obs.date+doff return mjd
obs = ephem.Observer() doff = ephem.Date(0)-ephem.Date('1858/11/17') djd = mjd-doff obs.date = djd return obs.date |