NRAO Home > CASA > CASA Toolkit Reference Manual
measures.riseset - Function

1.4.1 get rise and set times


Description

rise will give the rise/set times of a source. It needs the position in the frame, and a time. If the latter is not set, the current time will be used. The returned value is a record with a ’solved’ field, which is F if the source is always below or above the horizon. In that case the rise and set fields will all have a string value. The record also returns a rise and set record, with ’last’ and ’utc’ fields showing the rise and set times as epochs.

Arguments





Inputs

crd

direction of source (direction measure)

allowed:

any

Default:

variant

ev

elevation limit

allowed:

any

Default:

variant 0.0deg

Returns
record

Example

 
 
# NOT IMPLEMENTED  
print "\t----\t riseset Ex 1 \t----"  
print me.riseset(me.direction(’sun’))  
#[solved=T,  
# rise=[last=[type=epoch, refer=LAST, m0=[value=0.0731388605, unit=d]],  
#       utc=[type=epoch, refer=UTC, m0=[value=52085.8964, unit=d]]],  
# set=[last=[type=epoch, refer=LAST, m0=[value=0.455732593, unit=d]],  
#       utc=[type=epoch, refer=UTC, m0=[value=52086.2779, unit=d]]]]  
print me.riseset(me.direction(’sun’), qa.unit(’80deg’))  
#[solved=F,  
# rise=[last=below, utc=below],  
# set=[last=below, utc=below]]  
print qa.form.long(me.riseset(me.direction(’sun’)).rise.utc.m0)  
#21:30:47.439  
#  
 

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright 2016 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search