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

Tool to combine catalogs into an archive #15

Open
mnlevy1981 opened this issue May 23, 2020 · 4 comments
Open

Tool to combine catalogs into an archive #15

mnlevy1981 opened this issue May 23, 2020 · 4 comments
Assignees

Comments

@mnlevy1981
Copy link

I think a YAML file like

experiment1:
  case1:
    catalog_path: [path to catalog]
    member_id: ###
  case2:
    catalog_path: [path to catalog]
    member_id: ###
experiment2:
  case3:
    catalog_path: [path to catalog]
    member_id: ###

would define the ensemble well enough. Each individual catalog would be read in, the experiment and member_id columns would be added, and the ctrl_case column would be replaced with ctrl_experiment and ctrl_member_id (assuming ctrl_case is also a member of the ensemble). Then all the individual catalogs would be concatenated into one giant file (we'd need to replace relative path names with absolute ones at this stage).

@mnlevy1981
Copy link
Author

mnlevy1981 commented May 27, 2020

@matt-long points out that we could do

[path to catalog1]:
  experiment: experiment1
  member_id: ###
[path to catalog2]:
  experiment: experiment1
  member_id: ###
[path to catalog3]:
  experiment: experiment2
  member_id: ###

Note that this requires us leaving case in when addressing NCAR/cesm-catalog#2

This leaves the individual catalogs we've created as the primary keys, which makes sense from a "building upon existing catalogs" viewpoint

@mnlevy1981
Copy link
Author

maybe above would need to allow something like

[path to catalog1]:
  experiment: experiment1
  member_id: ###
[path to catalog2]:
  experiment: experiment1
  member_id: ###
[path to catalog3]:
  experiment: experiment2
  member_id: ###
  ctrl_experiment: experiment1
  ctrl_member_id: ###

to override trying to explicitly determine the ctrl_ values

@andersy005
Copy link
Member

Is this approach assuming that the paths to catalogs are going to be unique?

@matt-long
Copy link

Yes.

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

3 participants