Author Topic: DynamicProfile module progress  (Read 8391 times)

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
DynamicProfile module progress
« on: 2009 May 10 12:46:48 »
Hi,

there's much left to do but I did reach a milestone today of sorts. The module can now draw profiles and the windows survive redraws. I did have to sacrifice the scroll and zoom capability and even the resizability of the window to get to this point. Somewhere a change happened that made the window something like 3000px wide which is quite unworkable. I had to restrain it by making the whole window fixed size. Eventually I'll get that fixed but like I said, there's much left to do so I'll get some other things operational first.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: DynamicProfile module progress
« Reply #1 on: 2009 May 13 15:44:28 »
Very very nice! I look forward to watch how this module evolves. How have you planned to plot profiles for RGB images? I suggest something similar to HistogramTransformation, including the possibility to select individual channels. A table of numerical data (spreadsheet style) would also be desirable. Just a couple thoughts. Looks very promising! ;)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: DynamicProfile module progress
« Reply #2 on: 2009 May 13 15:57:49 »
The intent was to provide a 'copy to csv' type functionality so the table could be pasted in Excel or other spreadsheet. I don't think PI should try to emulate a spreadsheet application :)

As for the RGB bit, how about this?  8)
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: DynamicProfile module progress
« Reply #3 on: 2009 May 13 15:59:36 »
Oh, I wasted a lot of time on the line 'drawing' code that samples the values from the image. I had found sample code but it was buggy. Took a while to get it working right.

I have a few things to tie up before I can publish an early access version for testing.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: DynamicProfile module progress
« Reply #4 on: 2009 May 13 16:06:06 »
Awesome! That's getting really interesting  :)

100% agreed not to implement a spreadsheet on PI, of course. But an additional dialog (triggered by a button) with a TextBox (a la Statistics), from where the plain text version of the tabular data could be copied, would be nice  O:)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: DynamicProfile module progress
« Reply #5 on: 2009 May 13 17:22:55 »
I was thinking of adding a push button that would put the text on the clip board but I'm not sure PCL provides that functionality. The text box would work too, of course. Not sure if you fixed it in 1.5 but the Ctrl-C shortcut doesn't work in the statistics window :)
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline David Serrano

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 503
Re: DynamicProfile module progress
« Reply #6 on: 2009 May 14 00:17:20 »
The text output can be quite large if the user so desires, so I would choose to write it into a file with .csv extension. The dialog button could be named "Export as CSV" or something similar.
--
 David Serrano

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: DynamicProfile module progress
« Reply #7 on: 2009 May 14 06:00:07 »
I think that storing the table in the clipboard is the quickest way to get it in a spreadsheet (one button push, application switch, ctrl-v) but of course (as Juan would say) a save-to-csv button is needed as well.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline David Serrano

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 503
Re: DynamicProfile module progress
« Reply #8 on: 2009 May 15 14:45:10 »
I think that storing the table in the clipboard is the quickest way to get it in a spreadsheet (one button push, application switch, ctrl-v) but of course (as Juan would say) a save-to-csv button is needed as well.

I agree but, upon pasting the string "345,456,567,678,789,1234,2345,3456,4567,5678,6789,7680,54" in a cell, my OpenOffice Calc 2.4 appends the entire string to it, without interpreting it as a list of comma-separated values. I would expect m$ excel to perform even worse in this regard, as usual ;).

Maybe there's some way to tell spreadsheet programs that the contents of the clipboard are to be interpreted as CSV.
--
 David Serrano

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: DynamicProfile module progress
« Reply #9 on: 2009 May 15 14:59:28 »
Nah, I do this all the time with database query output. It's just a matter of having the format correct. In this case there are no strings so that's easy. The data would look something like this:

Code: [Select]
"x","y","V"
230,345,0.123
231,345,0.125

Clearly for RGB image the V would be three columns.

In some cases Excel thinks it's plain text but then a format icon is presented which allows you to specify how to interpret the data. I haven't tried this with OO yet.
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline Andres.Pozo

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 927
Re: DynamicProfile module progress
« Reply #10 on: 2009 May 16 03:43:12 »

I agree but, upon pasting the string "345,456,567,678,789,1234,2345,3456,4567,5678,6789,7680,54" in a cell, my OpenOffice Calc 2.4 appends the entire string to it, without interpreting it as a list of comma-separated values. I would expect m$ excel to perform even worse in this regard, as usual ;).

Maybe there's some way to tell spreadsheet programs that the contents of the clipboard are to be interpreted as CSV.
Excel pastes that string in a cell, but the tool "Texto en columnas" (I have Excel in Spanish) splits it in columns. Also, although Spanish Excel can work with comma-separated values, it really prefers semicolon for separating values since by default it uses comma as decimal separator.