Discussion:
MaxPos?
Steve Maher
2018-06-01 17:02:23 UTC
Permalink
Hi guys,

I was hoping to create a label annotation for a power spectrum to display
the frequency with the maximum power. Something like the 'code' below
where you take the position (index?) of the maximum PSD value and pull out
the frequency at that position.

[x:f [x:psd:MaxPos]]

I see a MinPos but can't find a MaxPos.

I also tried going down the Equation path but couldn't find an appropriate
operator.

Anyone have a tip on getting this done?

Steve

p.s. I recently discovered the data-driven annotations - they're awesome!

p.p.s., Perhaps I should be adding these features myself. A year or two
ago I tried building kst on Windows (our default GUI platform) for about a
full day and failed so I gave up. I should probably try again.
Steve Maher
2018-06-01 19:21:38 UTC
Permalink
Okay, now I'm seeing :iMax, :iMin attributes *sometimes* ... I'm trying to
track down the determinator, whether it's the (dirfile) data or .kst files
or what ..

BTW, do I need the *commercial* QT Creator to build on Windows? Does
anyone have a deeper recipe than what's in INSTALL.qmake?

Thanks!
Post by Steve Maher
Hi guys,
I was hoping to create a label annotation for a power spectrum to display
the frequency with the maximum power. Something like the 'code' below
where you take the position (index?) of the maximum PSD value and pull out
the frequency at that position.
[x:f [x:psd:MaxPos]]
I see a MinPos but can't find a MaxPos.
I also tried going down the Equation path but couldn't find an appropriate
operator.
Anyone have a tip on getting this done?
Steve
p.s. I recently discovered the data-driven annotations - they're awesome!
p.p.s., Perhaps I should be adding these features myself. A year or two
ago I tried building kst on Windows (our default GUI platform) for about a
full day and failed so I gave up. I should probably try again.
Barth Netterfield
2018-06-01 20:54:07 UTC
Permalink
Sometimes? Max and Min should always be there. If they are every missing,
please let me know.

MinPos is the smallest positive value (used internally for auto scaling log
plots).

It compiles with the GPL QT, but the qmake files are not longer supported.
We build with cmake now.

I should probably remove all of the un-supported qmake cruft, eh?

cbn
Post by Steve Maher
Okay, now I'm seeing :iMax, :iMin attributes *sometimes* ... I'm trying to
track down the determinator, whether it's the (dirfile) data or .kst files
or what ..
BTW, do I need the *commercial* QT Creator to build on Windows? Does
anyone have a deeper recipe than what's in INSTALL.qmake?
Thanks!
Post by Steve Maher
Hi guys,
I was hoping to create a label annotation for a power spectrum to display
the frequency with the maximum power. Something like the 'code' below
where you take the position (index?) of the maximum PSD value and pull out
the frequency at that position.
[x:f [x:psd:MaxPos]]
I see a MinPos but can't find a MaxPos.
I also tried going down the Equation path but couldn't find an
appropriate operator.
Anyone have a tip on getting this done?
Steve
p.s. I recently discovered the data-driven annotations - they're awesome!
p.p.s., Perhaps I should be adding these features myself. A year or two
ago I tried building kst on Windows (our default GUI platform) for about a
full day and failed so I gave up. I should probably try again.
--
C. Barth Netterfield
University of Toronto
416-845-0946
Steve Maher
2018-06-01 21:51:23 UTC
Permalink
Hi,

On Fri, Jun 1, 2018 at 4:54 PM, Barth Netterfield <
Post by Barth Netterfield
Sometimes? Max and Min should always be there. If they are every
missing, please let me know.
You missed the 'i' =)

iMax and iMin - which I presume are the indices of the maximum/minimum
values.

I got diverted but will try to recreate what I saw ..
Post by Barth Netterfield
MinPos is the smallest positive value (used internally for auto scaling
log plots).
It compiles with the GPL QT, but the qmake files are not longer
supported. We build with cmake now.
I should probably remove all of the un-supported qmake cruft, eh?
Ok, I'll assume the INSTALL docs in the repo the best resource for the
build recipe.

Thanks!

Steve
Post by Barth Netterfield
cbn
Post by Steve Maher
Okay, now I'm seeing :iMax, :iMin attributes *sometimes* ... I'm trying
to track down the determinator, whether it's the (dirfile) data or .kst
files or what ..
BTW, do I need the *commercial* QT Creator to build on Windows? Does
anyone have a deeper recipe than what's in INSTALL.qmake?
Thanks!
Post by Steve Maher
Hi guys,
I was hoping to create a label annotation for a power spectrum to
display the frequency with the maximum power. Something like the 'code'
below where you take the position (index?) of the maximum PSD value and
pull out the frequency at that position.
[x:f [x:psd:MaxPos]]
I see a MinPos but can't find a MaxPos.
I also tried going down the Equation path but couldn't find an
appropriate operator.
Anyone have a tip on getting this done?
Steve
p.s. I recently discovered the data-driven annotations - they're awesome!
p.p.s., Perhaps I should be adding these features myself. A year or two
ago I tried building kst on Windows (our default GUI platform) for about a
full day and failed so I gave up. I should probably try again.
--
C. Barth Netterfield
University of Toronto
416-845-0946
Barth Netterfield
2018-06-02 01:49:44 UTC
Permalink
Ahhh... Right - iMin and iMax.

Adding those required extensions to the session files and are incompatible
with session files created by a Kst binary that is older then about 6
years. So - if you created the .kst file with an old version of kst, these
will not show up, *even if you open them with a new binary.*

You may need to re-create your session files with a new kst binary (but
then it won't be readable by old binaries).

The newest binary is at

https://github.com/Kst-plot/kst-build/tree/Kst-32bit-3rdparty-plugins-Qt5

which is linked from kst.kde.org -> Downloads -> Binary Packages ->
Windows, 32 bit.

cbn
Post by Steve Maher
Hi,
On Fri, Jun 1, 2018 at 4:54 PM, Barth Netterfield <
Post by Barth Netterfield
Sometimes? Max and Min should always be there. If they are every
missing, please let me know.
You missed the 'i' =)
iMax and iMin - which I presume are the indices of the maximum/minimum
values.
I got diverted but will try to recreate what I saw ..
Post by Barth Netterfield
MinPos is the smallest positive value (used internally for auto scaling
log plots).
It compiles with the GPL QT, but the qmake files are not longer
supported. We build with cmake now.
I should probably remove all of the un-supported qmake cruft, eh?
Ok, I'll assume the INSTALL docs in the repo the best resource for the
build recipe.
Thanks!
Steve
Post by Barth Netterfield
cbn
Post by Steve Maher
Okay, now I'm seeing :iMax, :iMin attributes *sometimes* ... I'm trying
to track down the determinator, whether it's the (dirfile) data or .kst
files or what ..
BTW, do I need the *commercial* QT Creator to build on Windows? Does
anyone have a deeper recipe than what's in INSTALL.qmake?
Thanks!
Post by Steve Maher
Hi guys,
I was hoping to create a label annotation for a power spectrum to
display the frequency with the maximum power. Something like the 'code'
below where you take the position (index?) of the maximum PSD value and
pull out the frequency at that position.
[x:f [x:psd:MaxPos]]
I see a MinPos but can't find a MaxPos.
I also tried going down the Equation path but couldn't find an
appropriate operator.
Anyone have a tip on getting this done?
Steve
p.s. I recently discovered the data-driven annotations - they're awesome!
p.p.s., Perhaps I should be adding these features myself. A year or
two ago I tried building kst on Windows (our default GUI platform) for
about a full day and failed so I gave up. I should probably try again.
--
C. Barth Netterfield
University of Toronto
416-845-0946
--
C. Barth Netterfield
University of Toronto
416-845-0946
Steve Maher
2018-06-02 19:40:39 UTC
Permalink
Hmm, I created the .kst file about a month ago - I'm pretty sure with a
2017 kst (2.0.7). However, when rebuilding (most of the ) displays from
scratch, the iMax and iMin returned. Not sure I understand but I'm happy =)

Thanks for the tip!

Steve

On Fri, Jun 1, 2018 at 9:49 PM, Barth Netterfield <
Post by Barth Netterfield
Ahhh... Right - iMin and iMax.
Adding those required extensions to the session files and are incompatible
with session files created by a Kst binary that is older then about 6
years. So - if you created the .kst file with an old version of kst, these
will not show up, *even if you open them with a new binary.*
You may need to re-create your session files with a new kst binary (but
then it won't be readable by old binaries).
The newest binary is at
https://github.com/Kst-plot/kst-build/tree/Kst-32bit-3rdparty-plugins-Qt5
which is linked from kst.kde.org -> Downloads -> Binary Packages ->
Windows, 32 bit.
cbn
Post by Steve Maher
Hi,
On Fri, Jun 1, 2018 at 4:54 PM, Barth Netterfield <
Post by Barth Netterfield
Sometimes? Max and Min should always be there. If they are every
missing, please let me know.
You missed the 'i' =)
iMax and iMin - which I presume are the indices of the maximum/minimum
values.
I got diverted but will try to recreate what I saw ..
Post by Barth Netterfield
MinPos is the smallest positive value (used internally for auto scaling
log plots).
It compiles with the GPL QT, but the qmake files are not longer
supported. We build with cmake now.
I should probably remove all of the un-supported qmake cruft, eh?
Ok, I'll assume the INSTALL docs in the repo the best resource for the
build recipe.
Thanks!
Steve
Post by Barth Netterfield
cbn
Post by Steve Maher
Okay, now I'm seeing :iMax, :iMin attributes *sometimes* ... I'm trying
to track down the determinator, whether it's the (dirfile) data or .kst
files or what ..
BTW, do I need the *commercial* QT Creator to build on Windows? Does
anyone have a deeper recipe than what's in INSTALL.qmake?
Thanks!
Post by Steve Maher
Hi guys,
I was hoping to create a label annotation for a power spectrum to
display the frequency with the maximum power. Something like the 'code'
below where you take the position (index?) of the maximum PSD value and
pull out the frequency at that position.
[x:f [x:psd:MaxPos]]
I see a MinPos but can't find a MaxPos.
I also tried going down the Equation path but couldn't find an
appropriate operator.
Anyone have a tip on getting this done?
Steve
p.s. I recently discovered the data-driven annotations - they're awesome!
p.p.s., Perhaps I should be adding these features myself. A year or
two ago I tried building kst on Windows (our default GUI platform) for
about a full day and failed so I gave up. I should probably try again.
--
C. Barth Netterfield
University of Toronto
416-845-0946
--
C. Barth Netterfield
University of Toronto
416-845-0946
Loading...