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

Home » Public Forums » archive » Contour with Map_Set after reading ASCII column data
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Contour with Map_Set after reading ASCII column data [message #66520] Fri, 15 May 2009 14:09
jacques.frastain is currently offline  jacques.frastain
Messages: 1
Registered: May 2009
Junior Member
Hi guys,

I am new to IDL using it to process data for my master project. I have
the following problem when it comes to using CONTOUR together with
MAP_SET after reading in an ASCII data set.

My data file looks in principle as follows:

lon lat temp ; this header actually doesn't exists in the .dat
file
10 10 5
20 10 10
30 10 15
10 15 6
20 15 11
30 15 16
....

I use the following code to read the .dat file:

OPENR,lun,'lon_lat_temp.dat',/GET_LUN
rows = 1000
data = fltarr(3,rows)
READF,lun,data

lon = data(0,*)
lat = data(1,*)
temp = data(2,*)

lon2 = REFORM(lon)
lat2 = REFORM(lat)
temp2 = REFORM(temp)

This way I create a data array 'DATA FLOAT = Array[3, 1000]' and by
using REFORM I am able to create for each of the columns within
my .dat file a row vector. However, from this point onwards I am in
trouble - say I would like to plot a world map showing contours of the
temperature (= temp) depending on my latitudes (lat) and longitudes
(lon).
Can anyone help me solving this issue?

Many thanks!

Jacques
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Google Icon Vase Speaker - Black
Next Topic: writing dot over phi in title

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

Current Time: Thu Oct 09 09:43:07 PDT 2025

Total time taken to generate the page: 0.52063 seconds