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 
Return to the default flat view Create a new topic Submit Reply
Re: step function [message #76842 is a reply to message #76767] Wed, 06 July 2011 06:27 Go to previous messageGo 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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
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: Fri Oct 10 07:12:09 PDT 2025

Total time taken to generate the page: 1.35958 seconds