A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Astronomy and Astrophysics » Research
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

Making a plot in equatorial coordinates



 
 
Thread Tools Display Modes
  #1  
Old June 26th 09, 11:03 PM posted to sci.astro.research
Christian Herenz
external usenet poster
 
Posts: 3
Default Making a plot in equatorial coordinates

Hi,

I have a list of objects given in equatorial coordinates... Is there a programm
which lets me plot a projection of these coordinates (like you would print out a
map of the world) with my datapoints in it?

Greetings,
Christian Herenz
  #2  
Old July 1st 09, 06:03 PM posted to sci.astro.research
Eric Flesch
external usenet poster
 
Posts: 321
Default Making a plot in equatorial coordinates

On Fri, 26 Jun 2009, Christian Herenz wrote:
I have a list of objects given in equatorial coordinates... Is there a programm
which lets me plot a projection of these coordinates (like you would print out a
map of the world) with my datapoints in it?


I use SkyMap, but it isn't free, and of course you need to do a little
work to prepare the data and define it to SkyMap.

Eric
  #3  
Old July 2nd 09, 08:17 PM posted to sci.astro.research
Stupendous_Man
external usenet poster
 
Posts: 57
Default Making a plot in equatorial coordinates

On Jun 26, 6:03 pm, Christian Herenz
wrote:
Hi,

I have a list of objects given in equatorial coordinates... Is there a programm
which lets me plot a projection of these coordinates (like you would print out a
map of the world) with my datapoints in it?

Greetings,
Christian Herenz


Below is a Perl subroutine to convert a series of (RA, Dec)
values into a Hammer-Aitoff projection. The resulting
(x, y) values can then be plotted with any ordinary graphics
package to show the projected locations.


################################################## ##################
# Given (RA, Dec), convert to (x, y) in Hammer-Aitoff projection
#
# The two arguments are RA and Dec in decimal degrees,
# and we return a two-element list for x, y.
# We scale (x, y) so that they range from
#
# 0 x 360
# -90 y 90
#
# so that labels will correspond to (RA, Dec) in decimal degrees.
#
# MWR 7/22/2006

sub convert_radec_to_hammeraitoff {
my($ra, $dec);
my($tra, $tdec);
my($x, $y, $z);
my($DEGTORAD);
my($pi);

$ra = $_[0];
$dec = $_[1];

$pi = 3.14159;
$DEGTORAD = $pi/180.0;

# convert RA and Dec into radians
$tra = ($ra*$DEGTORAD) - $pi;
$tdec = ($dec*$DEGTORAD);

# calc auxiliary variable z
$z = sqrt( 1.0 + cos($tdec)*cos($tra/2.0) );

# calc Hammer-Aitoff normalized coords (x, y)
$x = ( cos($tdec)*sin($tra/2.0) ) / $z;
$y = sin($tdec) / $z;

# now scale the normalized coords so that X ranges over 0 to 360,
# and y ranges over -90 to +90.
$x = ($x*180.0) + 180.0;
$y *= 90.0;

return($x, $y);
}
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
It might plot modest backings, do you stride them? Gul Pervis Al Huseiny Amateur Astronomy 0 December 3rd 07 04:49 PM
First Publically Available SRB-TVC Plot from Challenger [email protected] Space Shuttle 0 November 1st 07 08:38 PM
Matrix plot for 4th film. [email protected] Astronomy Misc 0 April 11th 07 05:16 PM
Routines to convert equatorial coordinates to Solar Ecliptic Coordinate System [email protected] Astronomy Misc 4 May 3rd 06 03:06 PM
Making or Buying a Equatorial Mount Ricardo UK Astronomy 11 September 7th 03 10:55 AM


All times are GMT +1. The time now is 01:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 SpaceBanter.com.
The comments are property of their posters.