IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12327


Ignore:
Timestamp:
Mar 8, 2007, 11:49:34 AM (19 years ago)
Author:
eugene
Message:

added parfactor macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dvo-mods-2007-02/Ohana/src/relastro/doc/parallax.pro

    r6809 r12327  
    332332end
    333333
     334
     335macro parfactor
     336
     337  $RA = $1
     338  $Dec = $2
     339  $e = 23 + 27/60
     340 
     341  create s 0 360
     342  set pR = dcos($e)*d
     343
     344  set pR =  +(dcos($e)*dsin(s)*dcos($RA) - dcos(s)*dsin($RA))
     345  set pD =  -(dcos($e)*dsin(s)*dsin($RA) + dcos(s)*dcos($RA))*dsin($Dec) + dsin($e)*dsin(s)*dcos($Dec)
     346
     347  lim -1.1 1.1 -1.1 1.1; clear; box; plot pR pD
     348end
Note: See TracChangeset for help on using the changeset viewer.