comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Skymap and Array Problems
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Skymap and Array Problems [message #35763] Tue, 08 July 2003 12:43
wissels is currently offline  wissels
Messages: 2
Registered: July 2003
Junior Member
Hello,

I'm an undergraduate and admittedly inexperiened in the ways of IDL
(more akin to C++ and Java). I've been working on the following
problem for a while and could use any help you can offer.

At any rate, I must use IDL to plot a contour skymap of some data in
a particular region first in celstial coordinates and then in galactic
coordinates. I've used a procedure from the astro libraries on the
web to convert from ra and dec to galactic latitude and longitude.

Frustrated with MAP_SET and contour plots, I turned to object-oriented
graphics. Basically, I used three arrays: one for the data, one for
the x-coordinates and one for the y-coordinates. This was all fine
and good, until I converted to galactic coordinates, because in the
conversion, the lat is dependent on the long and vice versa. While I
originally began with a 110x110 set of coordinates independent of one
another, I am left with an set of 12100 points (x and y) corresponding
to each data point.

Furthermore, the galactic coordinates do not come out in sequential
order, so I need to sort them (along with their referenced data
points). This poses another problem, because the three arrays are
separate from each other, galx, galy, and gal_arr and I don't know how
to combine them so that I could read

galx galy gal_arr.

In case you can't tell from my jumbled question(s?), I need some help.
Any would be greatly appreciated!

Thanks!
Stephanie Wissel

------------------------------------------------------------ -------------------
------------------------------------------------------------ -------------------
wissels@harper.uchicago.edu
wissels@yahoo.com
Center for Cosmological Physics--University of Chicago
[Message index]
 
Read Message
Previous Topic: plotting with respect to time
Next Topic: Re: object graphics -> eps

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:09:24 PDT 2025

Total time taken to generate the page: 0.00227 seconds