amforte / Topographic-Analysis-Kit

Set of matlab based tools for topographic analysis, built on top of TopoToolbox.
GNU General Public License v3.0
42 stars 35 forks source link

Brush Data #47

Closed amforte closed 3 years ago

amforte commented 3 years ago

Hi, After loading .mat file of DEM in GUI, I ran 'Segment Picker'. The output was in vector format where used 'Brush/Select Data' for selecting stream segments. Segments were selected (marked in red). My question is 'how do I make mat file containing StreamOBJs after selecting segments.' I cannot find further step to proceed. Issue

Help would be appreciated. Thanks.

Originally posted by @hitander in https://github.com/amforte/Topographic-Analysis-Kit/issues/35#issuecomment-765979921

amforte commented 3 years ago

@hitander

Could you clarify, did you use the built in functionality of SegmentPicker to select streams or bypass this and use brush data to select streams?

hitander commented 3 years ago

I used Segment Picker itself to select the streams. It opens a window of DEM with streams. Then I used brush data to select streams.

On Sat, Jan 23, 2021 at 6:46 PM Adam M. Forte notifications@github.com wrote:

@hitander https://github.com/hitander

Could you clarify, did you use the built in functionality of SegmentPicker to select streams or bypass this and use brush data to select streams?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/amforte/Topographic-Analysis-Kit/issues/47#issuecomment-766019863, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSG2MHAIIWVHAHLIAMH2KTS3LD37ANCNFSM4WPVTPAA .

amforte commented 3 years ago

Yes, you are not using the internal SegmentPicker function, you are using the brush data. As the instructions that appear at the top of the window tell you, after you've zoomed in or out (or not) press enter on you keyboard and a set of crosshairs appear. This is how the code expects you to select streams. As you go through this process it will ask you if you want to continue with a yes no dialog box. When you tell it stop, a mat file will be generated with the selected streams as a STREAMobj inside.

Please consult the tutorial presentations / files as well if you need additional help.

hitander commented 3 years ago

A set of crosshair is not appearing. That's why I used brush data.
When the function says "return/enter', I hit enter but nothing happens. I waited for several minutes for "return/enter' to pop up something. I have tried the same method numerous times and not able to proceed. Kindly suggest.

amforte commented 3 years ago

Is the popup window (i.e. the window displaying the DEM and stream network) selected as the active window when you press enter or return? I've tested this on both a mac and PC and haven't had any issue with it not recognizing an enter/return press as long as the map window (as opposed to the main GUI window) is active so no, I don't have any alternative suggestions. Is this the standalone GUI or the App running inside Matlab?

hitander commented 3 years ago

Yes, the popup window is selected while performing the "enter/return" operation. One of my friends has also tried the same option and we both are facing the same techical issue. The problem is occuring on the App running inside Matlab.

On Sat, Jan 23, 2021 at 8:55 PM Adam M. Forte notifications@github.com wrote:

Is the popup window (i.e. the window displaying the DEM and stream network) selected as the active window when you press enter or return? I've tested this on both a mac and PC and haven't had any issue with it not recognizing an enter/return press as long as the map window (as opposed to the main GUI window) is active so no, I don't have any alternative suggestions. Is this the standalone GUI or the App running inside Matlab?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/amforte/Topographic-Analysis-Kit/issues/47#issuecomment-766095730, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSG2MGIUVHUWEPFU24T2X3S3LS6HANCNFSM4WPVTPAA .

amforte commented 3 years ago

And you're using what version of Matlab?

hitander commented 3 years ago

It's Matlab 2013R. The same issue also occurs on ksnProfiler.

On Sat, Jan 23, 2021 at 9:01 PM Adam M. Forte notifications@github.com wrote:

And you're using what version of Matlab?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/amforte/Topographic-Analysis-Kit/issues/47#issuecomment-766096617, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSG2MDKML4BCXLO42A5LFDS3LTWJANCNFSM4WPVTPAA .

amforte commented 3 years ago

Ok, so it's likely a (Matlab) version issue if I had to guess. The GUI (and most of the underlying TAK functions) were designed on Matlab 2017 and greater. I've never tested these on versions of Matlab earlier than 2017. I've run multiple short courses and so have seen these functions run on a variety of different machines (so I'm pretty sure it's not a bug), but never on any version of matlab that far out of date.

I think you have three options:

(1) You could try running these codes outside of the GUI, i.e. use the native TAK functions in Matlab. There's a chance that maybe these will work better and that the issue lies with the way the GUI is interpreted by much older versions of Matlab.

(2) If you're able, you could try updating Matlab.

(3) If option 1 doesn't work and option 2 isn't viable, then you could installing the standalone gui with the correct Matlab Runtime Environment installed.

hitander commented 3 years ago

Ok. I'll try these. I hope one of them works. Thank you very much!!

On Sat, Jan 23, 2021 at 9:16 PM Adam M. Forte notifications@github.com wrote:

Ok, so it's likely a (Matlab) version issue if I had to guess. The GUI (and most of the underlying TAK functions) were designed on Matlab 2017 and greater. I've never tested these on versions of Matlab earlier than 2017. I've run multiple short courses and so have seen these functions run on a variety of different machines (so I'm pretty sure it's not a bug), but never on any version of matlab that far out of date.

I think you have three options:

(1) You could try running these codes outside of the GUI, i.e. use the native TAK functions in Matlab. There's a chance that maybe these will work better and that the issue lies with the way the GUI is interpreted by much older versions of Matlab.

(2) If you're able, you could try updating Matlab.

(3) If option 1 doesn't work and option 2 isn't viable, then you could installing the standalone gui with the correct Matlab Runtime Environment installed.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/amforte/Topographic-Analysis-Kit/issues/47#issuecomment-766101441, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSG2MGWBLIA6LJ3DWCTYU3S3LVMVANCNFSM4WPVTPAA .