Difference between revisions of "Planet"

From CASA Guides
Jump to navigationJump to search
(Created page with "'''Return to Analysis Utilities''' This page documents the '''planet''' function of Python module analysisUtils. This function contacts the [http://s...")
 
Line 11: Line 11:
 
==Usage==
 
==Usage==
  
Usage: au.planet(solarSystemBody, date, observatory='ALMA', verbose=False)
+
Usage: au.planet(solarSystemBody='', date='', observatory='ALMA', verbose=False)<br>
 
+
The format of the date string is: '2011-10-31 11:59:59' or simply '2011-10-31' for 0 UT<br>
 
Observatories can be specified by JPL ID string, JPL ID integer, or by the following names:
 
Observatories can be specified by JPL ID string, JPL ID integer, or by the following names:
 
   * 'VLA' (which will be converted to = '-5')
 
   * 'VLA' (which will be converted to = '-5')

Revision as of 16:33, 14 March 2012

Return to Analysis Utilities

This page documents the planet function of Python module analysisUtils.

This function contacts the JPL Horizons telnet server to get the J2000 position, rate, and angular size of any Solar System body. If the date is not specified, today's date is assumed at 0:00 UT. If the observatory is not specified, ALMA is assumed. It returns a dictionary of: {'directionRadians', 'rateRadiansPerSecond', 'angularDiameter'} where each element is a list of two values: RA, Dec.


Usage

Usage: au.planet(solarSystemBody=, date=, observatory='ALMA', verbose=False)
The format of the date string is: '2011-10-31 11:59:59' or simply '2011-10-31' for 0 UT
Observatories can be specified by JPL ID string, JPL ID integer, or by the following names:

 * 'VLA' (which will be converted to = '-5')
 * 'ALMA' (which will be converted to = '-7')
 * 'MAUNAKEA' (which will be converted to = '-80')
 * 'OVRO' (which will be converted to = '-81')

Examples

CASA <7>: au.planet('Titan','2012-04-01','EVLA')
Using observatory: VLA = -5
Assuming 0 hours UT
MJD= 56018.00000, MJDseconds = 4839955200.0
Confirmed Observatory name =  VLA
Confirmed Target ID = 606 = Titan
J2000 Position: 13:44:49.19, -007:52:27.645, rate: -11.9723, 3.3884 arcsec/hr
Angular diameter = 0.811703 arcsec
  Out[7]:
{'angularDiameter': 0.81170299999999995,
 'directionRadians': [3.5989557494879238, -0.13743326065058692],
 'rateRadiansPerSecond': [-1.6123152317632495e-08, 4.5631673694531841e-09]}