noaa-ocs-hydrography / kluster

A distributed multibeam processing system built using the Pangeo ecosystem
Creative Commons Zero v1.0 Universal
46 stars 12 forks source link

Code examples #119

Open Kurtaja opened 5 months ago

Kurtaja commented 5 months ago

Hi, Thanks for this great library! Your code examples 'https://github.com/noaa-ocs-hydrography/kluster/tree/master/examples' have been to great help. Would it be possible to add the following options to it: -svp export -track export -cube cleaning example

Kind regards Kurt

ericgyounkin commented 5 months ago

Hi Kurt,

I'm glad you are finding it useful! Are these tasks that you have accomplished already? Or that you need help accomplishing? Id certainly welcome a PR for examples that you have come up with.

Eric

Kurtaja commented 4 months ago

Hi Erik, no I have not accomplished that already. It would be great if you have the possibility to add some examples for that. Text files, ala the ones that the 'fq.export_variable' function is making would be great. Also I noticed in one of the old issues tickets that you mentionned cube cleaning. It would be great if you could show an example of how you would run that on a fq object.

ericgyounkin commented 4 months ago

Not sure that I have time to put together more examples, but I can link some of the code that I think is fairly straightforward.

For SVP, you can basically just use this - https://github.com/noaa-ocs-hydrography/kluster/blob/master/HSTB/kluster/fqpr_generation.py#L868

So 'fq.return_all_profiles' gets you the svp profiles and metadata.

Trackline export is here - https://github.com/noaa-ocs-hydrography/kluster/blob/master/HSTB/kluster/fqpr_generation.py#L3129

So 'fq.export_tracklines_to_file', with the trackline names you are interested in. I think if you do not specify individual tracklines, you get them all. It's been a while, but I think that is true.

For cleaning, we really don't have anything you can script, just because it relies so heavily on the mouse inputs. You can see in the filter example, that there is a way to write a filter to do cleaning, say within a depth range. That might be interesting to you. https://kluster.readthedocs.io/en/latest/cleaning/index.html#writing-a-custom-filter

Kurtaja commented 4 months ago

Thanks Eric, that worked :-)

Kurtaja commented 2 weeks ago

Hi Erik and Barry, you don't happen to have a s7k to kmall converter in your library, do you? If not, would you happen to know if there are any tools under the stars that does that? Kind regards Kurt