Changeset 15688 for trunk/ippScripts/scripts/magic_tree.pl
- Timestamp:
- Nov 26, 2007, 2:36:18 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/magic_tree.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/magic_tree.pl
r15683 r15688 164 164 $crval2 = deg2rad($crval2); 165 165 my $ra = $crval1 + atan2(cos($theta) * sin($phi), 166 sin($theta) * cos($crval2) -cos($theta) * sin($crval2) * cos($phi));167 my $dec = asin(sin($theta) * sin($crval2) +cos($theta) * cos($crval2) * cos($phi));168 166 sin($theta) * cos($crval2) + cos($theta) * sin($crval2) * cos($phi)); 167 my $dec = asin(sin($theta) * sin($crval2) - cos($theta) * cos($crval2) * cos($phi)); 168 169 169 # Rotate to boresight 170 170 my $phi_new = atan2(cos($dec) * sin($ra - $ra0), 171 sin($dec) * cos($dec0) -cos($dec) * sin($dec0) * cos($ra - $ra0));172 my $theta_new = asin(sin($dec) * sin($dec0) +cos($dec) * cos($dec0) * cos($ra - $ra0));171 sin($dec) * cos($dec0) + cos($dec) * sin($dec0) * cos($ra - $ra0)); 172 my $theta_new = asin(sin($dec) * sin($dec0) - cos($dec) * cos($dec0) * cos($ra - $ra0)); 173 173 174 174 # Project
Note:
See TracChangeset
for help on using the changeset viewer.
