Open gerritholl opened 10 months ago
Besides the inconsistency of it, I like this request. Good idea.
This could already be achieved by adjusting the filter_patterns
, e.g. in .../etc/SIFT/config/readers/fci_l1c_nc.yaml
by replacing
filter_patterns: [
'{pflag}_{location_indicator},{data_designator},MTI{spacecraft_id:1d}+FCI-1C-RRAD-{subtype}-{coverage}-{subsetting}-{component1}-BODY-{component3}-{purpose}-{format}_{oflag}_{originator}_{processing_time:%Y%m%d%H%M%S}_{facility_or_tool}_{environment}_{start_time:%Y%m%d%H%M%S}_{end_time:%Y%m%d%H%M%S}_{processing_mode}_{special_compression}_{disposition_mode}_{repeat_cycle_in_day:>04d}_{count_in_repeat_cycle:>04d}.nc'
]
with something like
filter_patterns: [
'W_XX-EUMETSAT-Darmstadt,IMG+SAT,MTI{spacecraft_id:1d}+FCI-1C-RRAD-{subtype}-{coverage}--CHK-BODY-{component3}-DIS-NC4E_C_{originator}_{processing_time:%Y%m%d%H%M%S}_EUMT_{environment}_{start_time:%Y%m%d%H%M%S}_{end_time:%Y%m%d%H%M%S}_{processing_mode}_{special_compression}_{disposition_mode}_{repeat_cycle_in_day:>04d}_{count_in_repeat_cycle:>04d}.nc'
]
Or adding the second pattern to the first one, it's a list.
That said, an automatism to hide constant parts still makes sense.
When using the open file wizard, sift shows all metadata that can be parsed from the filename in different columns. For many readers, most of this metadata is not relevant to the user and never changes between files:
pflag
,location_indicator
,data_designator
,subsetting
,component1
,component3
,purpose
,oflag
etc. are just noise to the user. Perhaps sift could by default hide any columns that are constant between all the loadable files?