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

Home » Public Forums » archive » step function
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
step function [message #76767] Tue, 05 July 2011 03:07 Go to next message
sid is currently offline  sid
Messages: 50
Registered: January 1995
Member
Hi all,
Is there a standard programme for using step function in idl.
If so please let me know.
thank you
Sid
Re: step function [message #76842 is a reply to message #76767] Wed, 06 July 2011 06:27 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Jul 6, 4:29 am, sid <gunvicsi...@gmail.com> wrote:
> On Jul 6, 1:37 am, Gray <grayliketheco...@gmail.com> wrote:
>
>> On Jul 5, 12:24 pm, sid <gunvicsi...@gmail.com> wrote:
>
>>> Hi all,
>>>        Please let me know if there is any standard program to use step
>>> function.
>>> thank you
>>> Sindhuja
>
>> In what context do you want to use a step function?
>
> Actually I am using data taken using photographic plates. So there are
> six step wedge, each step wedge transmits light in different way, say
> for example the first step will be the darker than the second one and
> so on as the last step is lightest one. So if I take a column cut
> along the data, I can find six step like profile. Now I need to
> separate each step automatically to proceed further. So I thought if I
> can fit a step function with the data and can find the turn over point
> of each step. Please give some suggestions.
> thanking you
>  G.Sindhuja

If I understand you correctly, basically what you want to do is bin
your continuous data based on 6 "steps", i.e. cuts. My suggestion is
value_locate:

steps = [s1,s2,s3,s4,s5]
step_func = value_locate(steps,data)

Your data will now run in integers from -1 to 4 (6 steps).

If this isn't what you meant, then I'm not sure what you're asking.
Re: step function [message #76844 is a reply to message #76767] Wed, 06 July 2011 04:08 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Jul 6, 4:29 am, sid <gunvicsi...@gmail.com> wrote:
> On Jul 6, 1:37 am, Gray <grayliketheco...@gmail.com> wrote:
>
>> On Jul 5, 12:24 pm, sid <gunvicsi...@gmail.com> wrote:
>
>>> Hi all,
>>>        Please let me know if there is any standard program to use step
>>> function.
>>> thank you
>>> Sindhuja
>
>> In what context do you want to use a step function?
>
> Actually I am using data taken using photographic plates. So there are
> six step wedge, each step wedge transmits light in different way, say
> for example the first step will be the darker than the second one and
> so on as the last step is lightest one. So if I take a column cut
> along the data, I can find six step like profile. Now I need to
> separate each step automatically to proceed further. So I thought if I
> can fit a step function with the data and can find the turn over point
> of each step. Please give some suggestions.

Michael Galloy gave some suggestions.
Re: step function [message #76850 is a reply to message #76767] Wed, 06 July 2011 01:29 Go to previous message
sid is currently offline  sid
Messages: 50
Registered: January 1995
Member
On Jul 6, 1:37 am, Gray <grayliketheco...@gmail.com> wrote:
> On Jul 5, 12:24 pm, sid <gunvicsi...@gmail.com> wrote:
>
>> Hi all,
>>        Please let me know if there is any standard program to use step
>> function.
>> thank you
>> Sindhuja
>
> In what context do you want to use a step function?

Actually I am using data taken using photographic plates. So there are
six step wedge, each step wedge transmits light in different way, say
for example the first step will be the darker than the second one and
so on as the last step is lightest one. So if I take a column cut
along the data, I can find six step like profile. Now I need to
separate each step automatically to proceed further. So I thought if I
can fit a step function with the data and can find the turn over point
of each step. Please give some suggestions.
thanking you
G.Sindhuja
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: test please ignore
Next Topic: Should IDL throw a warning in this case?

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

Current Time: Wed Oct 08 17:30:26 PDT 2025

Total time taken to generate the page: 0.00584 seconds