mbari-org / pbp

Process ocean audio data archives to daily analysis products of hybrid millidecade spectra using PyPAM.
https://docs.mbari.org/pbp
11 stars 3 forks source link

Use pattern for indicating timestamp in filename for pbp-meta-gen #26

Open carueda opened 2 months ago

carueda commented 2 months ago

@danellecline @ryjombari

As part of our discussion earlier today:

In regards to the current --prefix PREFIX option for pbp-meta-gen, maybe, alternatively, consider something like

--pattern PATTERN

to indicate how pbp-meta-gen can extract the timestamp from the input filenames?

PATTERN would be any string with fragments that collectively indicate the timestamp like:

Where the possible symbols inside a {} fragment include Y, M, D, H, m, s ..

The NRS11 case would be something like --pattern NRS11_{YYYYMMDD}_{HHmmss}.flac

Just an idea.

ryjombari commented 2 months ago

Good idea @carueda. This may be a beneficial approach.

danellecline commented 2 months ago

Thanks for capturing this suggestion @carueda