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

Home » Public Forums » archive » Re: to convert pixel numbers into wavelength
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
Re: to convert pixel numbers into wavelength [message #70190] Mon, 22 March 2010 08:58
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Mar 22, 10:57 am, sid <gunvicsi...@gmail.com> wrote:
>    My data is in fits format which is taken using 1k by 1k ccd. So the
> data has 1024 rows and 1024 columns each having different count
> values. I need to convert this pixel number by wavelength, to do that,
> im having a relation like,
> lamda(n)=lamda(0)+n(dispersion)

Just use what you wrote:

lambda=lambda_0+dindgen(1024)*dispersion
iplot,lambda,flux

Where lambda_0, dispersion and flux are the variables you got from the
file. In case you are wondering, dindgen(1024) is a function that
returns an array with 1024 elements, with values from 0 to 1023.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: display 2d cross-sections in 3d box
Next Topic: how to plot the data of a 2D array with Z values as color

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

Current Time: Wed Oct 08 18:59:30 PDT 2025

Total time taken to generate the page: 0.00660 seconds