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

Home » Public Forums » archive » Interpolation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: interpolation [message #78576 is a reply to message #2184] Thu, 08 December 2011 04:15 Go to previous messageGo to previous message
anil is currently offline  anil
Messages: 34
Registered: August 2009
Member
On Dec 7, 10:13 pm, David Fanning <n...@dfanning.com> wrote:
> Jeremy Bailin writes:
>> Russell's code certainly works perfectly well on the data you provided.
>
> You may have to consider the unthinkable: a problem with
> your own code! ;-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Ok. I've found the problem.It is because of the loops etc.. i have
used previously. I've fixed it and now Russell's code works fine for
my case. The only problem I have now is that:
I have certain number of desired depth values which I assign as :
depth2=indgen(310)*5+5
temp2=interpol(t,p,depth2)
sal2=interpol(s,p,depth2)
potemp2=interpol(q,p,depth2)
den2=interpol(d,p,depth2)
and temp2,sal2,potemp2,den2 are the values corresponding to these
depths. I should have a depth range of 5 to 1550(or 1540)m but in some
data ,I only have depths up to 100m or 300 in some other. So i have
done this instead:

step=(fix(max(p))-fix(min(p)))/5
depth2=indgen(step)*5+5
temp2=interpol(t,p,depth2)
sal2=interpol(s,p,depth2)
potemp2=interpol(q,p,depth2)
den2=interpol(d,p,depth2)
because of fix I lose 1 or 2 data points. But it is not so important
for my case. Thank you all for helping out.
Regards,
ANIL
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDLDOC question
Next Topic: Plotting one ps file with different plots in separate pages

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

Current Time: Wed Oct 08 19:21:47 PDT 2025

Total time taken to generate the page: 0.00430 seconds