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

Filename parsing #10

Open
glevava opened this issue Dec 11, 2018 · 0 comments
Open

Filename parsing #10

glevava opened this issue Dec 11, 2018 · 0 comments

Comments

@glevava
Copy link
Member

glevava commented Dec 11, 2018

Using "parsing" feature for filename syntax requires enhancement for optional filename parts.
For instance :
%(variable)s_%(domain)s_%(driving_model)s_%(experiment)s_%(ensemble)s_%(rcm_model)s_%(rcm_version)s_%(time_frequency)s[_%(period_start)s-%(period_end)s].nc

"period_start" and "period_end" do not occur in each filename. Fixed variables don't have period info.
Another example are the "*-start-end-clim.nc" files which are climatological data.

It could be useful to define pyessv template as "{}_{}_{}_[]-[].nc" where "{}" are mandatory parts and "[]" optional ones. This would also take care of the separators just before.

As in the example, this also requires to support several separator types that can occur in the same template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant