visibility(self,
multiple=False,
midnight=None,
airmassmodel='Pickering2002',
**kwargs)
| source code
|
Calculate ephemeri.
*If 'multiple' = False, a single site definition and startdate (and/or
values for the days and dt keywords) are expected. If one (or more) of
these keywords is not given a value, it is assumed that it should not
change its current value. If several astrophysical objects are given,
ephemeri will be given for each object at the defined site and times. If
'midnight' is not None, ephemeri are calculated in the middle of each
night, for the whole year.
*If 'multiple' = True, a list/array of site names and startdates can
be given. Note: the length of keywords 'sitename', 'startdate' and
'objects' can be either N or 1 and should be in the same format as
previously. In this case, ephemeri are only calculated at the times given
in 'startdate', and thus the keywords 'days', 'dt' and 'midnight' are not
used. Sites are currently only accessible throught the keyword
'sitename'.
The result of this function is an attribute 'vis', a dictionary
containing:
-
MJDs: Modified Julian Dates
-
dates calendar dates (Format 1)
-
alts: altitudes
-
moon_alts: altitudes of the moon
-
airmass
-
moon_airmass: airmasses of the moon
-
moon_separation: separation to moon
-
during_night: night time / day time (boolean 1-0)
-
sun_prevrise: time of previous sun rise
-
sun_nextrise: time of next sun rise
-
sun_prevset: time of previous sun set
-
sun_nextset: time of next sun set
NOTE: use the 'get_out_objects', 'get_out_objectnames',
'get_out_sites' and 'get_out_sitenames' functions to retrieve the object,
name of the object, site and name of the site corresponding to a
particular row in each of the arrays 'vis' contains.
|