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

Home » Public Forums » archive » Plot difference
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: Plot difference [message #66342 is a reply to message #66246] Thu, 30 April 2009 20:31 Go to previous messageGo to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
> (REBIN will work if you set the /SAMPLE keyword, but that really
> isn't the right tool for the job.)

Not quite:

IDL> a = findgen(2,3)
IDL> print, a
0.00000 1.00000
2.00000 3.00000
4.00000 5.00000
IDL> print, reform(a,6)
0.00000 1.00000 2.00000 3.00000 4.00000
5.00000
IDL> print, rebin(a,6)
2.00000 2.33333 2.66667 3.00000 3.00000
3.00000
IDL> print, rebin(a,6,/sample)
0.00000 0.00000 0.00000 1.00000 1.00000
1.00000

Rebin is treating "6" as "6,1"... so it's expanding the first
dimension from 2 to 6, while collapsing the second dimension from 3 to
1.

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: About ‘Widget_base’
Next Topic: slope_intercept

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

Current Time: Fri Oct 10 17:08:36 PDT 2025

Total time taken to generate the page: 0.24577 seconds