FreeForm: As a data provider, I would like to specify a regex for matching format file to data files because the one-to-one relation does not fit our data well.

Description

Hi James, thanks much for looking at this. I was hoping this might work,
but in the interim did as you suggest and made a parallel directory
structure of links to the individual files in our dataset directory.
Then we place .fmt files either in the parent directory of each dataset,
or next to each file if a directory contains files with different
formats. This should be workable for us, but not ideal.

What would be ideal in the FreeForm handler is a configuration option
which would allow us to specify a filename pattern (regex) and matching
format filename. E.g., the script I wrote that populates this parallel
directory tree does this; here is a sample set of entries for one of our
datasets:

tb_.*n(19|22|37)(h|v).bin: n_low.fmt
tb_.*n(85|91)(h|v).bin: n_high.fmt
tb_.*s(19|22|37)(h|v).bin: s_low.fmt
tb_.*s(85|91)(h|v).bin: s_high.fmt

These match various combinations of hemisphere, frequency, and
polarization with a corresponding format file.

In any case, it would be cool if the FreeForm handler config allowed
this kind of matching between filename and format file. Then you could
have a directory of format files located independent of the actual
datasets and configure the relationship between them using something
like this key/value representation above. I don't think this is possible
in the current configuration , but it would be nice to find out I was
wrong!

Thanks for your help,
Kevin Beam
NSIDC

Status

Assignee

Slav Korolev

Reporter

James Gallagher

Priority

Medium

Labels

Story Points

None

Fix versions

Epic Link

None