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

Home » Public Forums » archive » Pixel positions passing trough a curve
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Pixel positions passing trough a curve [message #93733] Tue, 11 October 2016 05:36 Go to previous message
Miguel is currently offline  Miguel
Messages: 18
Registered: April 2015
Junior Member
Hi everyone,

I am trying to construct a program that produces a position-velocity diagram whose shape can be fitted by a certain equation (and plotted).

I wanted to know if it was possible to obtain somehow the pixels position trough a path I choose. For example, I draw a line (in ds9) from (0,0) to (10,0) and I want to know which pixels represent the line. In this case, the program would give (0,0), (1,0), (2,0),...,(10,0). The thing is that I want to draw an arbitrary path (not necesarily in ds9) and get automatically the points.

For the moment, I put a circle, in ds9, in each pixel of the path and obtain the list of pixel positions and saving the region in xy format. I use this catalogue as an input of my program.
If there is a way to do it automatically (or some ideas) or an already existing program, I would like to know more.

Thank you,
Miguel
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL intro
Next Topic: ncdf_varput for NetCDF coordinate axes

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

Current Time: Wed Oct 08 15:14:26 PDT 2025

Total time taken to generate the page: 0.00399 seconds