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

need to be able to specify parameters to load #2

Open
havardf opened this issue Jan 12, 2012 · 2 comments
Open

need to be able to specify parameters to load #2

havardf opened this issue Jan 12, 2012 · 2 comments

Comments

@havardf
Copy link

havardf commented Jan 12, 2012

Today, each load-program will try to load all parameters in a given model file. If config for a parameter is missing, the load program generates error messages.

It would be very useful to be able to specify to the load program which parameters you want to load, so there is less need to make special 'stripped-down' versions of model files.

E.g:
feltLoad could have a config file /etc/feltLoad/loadparameters.conf where you specify source/dataprovider and list all parameters you want to load for this dataprovider. If /etc/feltLoad/loadparameters.conf is missing or empty, the load program defaults to loading all parameters. If a parameter is listed in loadparameters.conf, but do not exist in model file, an error is issued.

Does this sound doable?

@havardf
Copy link
Author

havardf commented Jan 12, 2012

Hmm, eps2probandltf.netcdfload.xml for netcdfLoad looks like its doing just this?

The config for the other load programs seems very different though.

@michaeloa
Copy link
Contributor

The config file allows you to specify which parameters to load and which not to. If one wants to distinguish between dataproviders (i.e., certain parameters need to be loaded for some dataproviders but not others, one could do this by switching which conf module is used depending on the dataprovider).

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

No branches or pull requests

2 participants