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

Home » Public Forums » archive » Using where to create new variables of data
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Using where to create new variables of data [message #83676] Fri, 29 March 2013 09:09 Go to previous message
morganlsilverman is currently offline  morganlsilverman
Messages: 46
Registered: February 2013
Member
Hello,

I noticed that when I use where to find locations and then create a variable using those locations such as below, I get a 1D array for adatea and a 3D array for atempa. I was expecting a 2D array for adatea. I can see how its putting the matching columns and rows into the 1D array but it makes it more complicated when I want to plot the temperature profile for that corresponding date. Is there another way to do this?

acitya = where(strmatch(airport.orig,'PHL ') eq 1,acounta)
s = size(airport.orig)
ncol = s(1)
cola = acitya mod ncol
rowa = acitya/ncol
atempa = airport.temp(cola,rowa,*)
adatea = airport.date(cola,rowa)

Thank you.
Sincerely,
Morgan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Calculating difference between each element in array from previous
Next Topic: Calculating difference between each element in array from previous

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

Current Time: Sun Oct 12 02:20:15 PDT 2025

Total time taken to generate the page: 1.06624 seconds