Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the open file wizard, hide fields that don't change #403

Open
gerritholl opened this issue Jan 12, 2024 · 2 comments
Open

In the open file wizard, hide fields that don't change #403

gerritholl opened this issue Jan 12, 2024 · 2 comments
Labels
component: ui enhancement New feature or request

Comments

@gerritholl
Copy link

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?

grafik

@djhoese
Copy link
Member

djhoese commented Jan 12, 2024

Besides the inconsistency of it, I like this request. Good idea.

@ameraner ameraner added enhancement New feature or request component: ui EUM-WIP This issue is (scheduled to) being worked on by EUM labels May 6, 2024
@arcanerr
Copy link

arcanerr commented May 7, 2024

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.

@ameraner ameraner removed the EUM-WIP This issue is (scheduled to) being worked on by EUM label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ui enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants