I created my first intake database with outputs from 2 expts like this builder = builders.AccessOm2Builder( path=directory_list ).build()
However, I don’t know how to correctly access variables from each expts. And I’m also not sure if the builder function actually picked up both experiments (in the tutorial, they provide one path instead of a list like I did).
My two questions are:
is it correct to specify dir list in the path parameter of the builder function?
if so, how can I specify from which experiment I want to load a variable?
If anyone needs to access the datastore, it’s on /g/data/x77/ps7863/python_scripts/AABW_future/myintakedb.json
I’ve just checked, and you should be able pass a list of paths to the path parameter of the Builder. However, I don’t think that if you do this you’ll be able to (easily) differentiate from which experiment you want to load variables - it’s just not the way things are set up, and so intake will aggregate and load that variable - from both experiments - by default. You could get around this by filtering based on paths - but that kind of defeats the point of intake.
I would recommend making one datastore for each experiment, and placing them next to each other. I tend to use the cli tool for this:
which will spit out some handy output about the datastore generation (I mention this because I was unable to open the datastore you linked - I think it’s corrupted for some reason?).
The usage of build-esm-datastore is described a little further down in the same tutorial.
Hope that helps - if you have any more questions, just fire away! If you do still need to put both experiments into the same datastore for a particular reason, I can walk you through how to augment the datastore to include an experiment tag - but it’ll be fairly advanced.
Thanks, Charles. I don’t need to go advance and can have separate datastores for the experiments. I also found the experiments I was looking for in the main intake catalogue after I loaded ARE on xp65 (I used to load it with hh5)..