-
Notifications
You must be signed in to change notification settings - Fork 141
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
Use the output of a container as input for a catalog source #715
Comments
Yes you can - please see "derived datasets", also known as transforms. |
Thanks for the quick response! However it seems like there is only support for exactly one source as an argument, right? I cannot distinguish between different sources in the parameters. Also, the visibility in the docs is not correct, some yaml parts were hidden. I had to look into the raw file. |
Here is what I mean:
|
@blakerosenthal , perhaps another artefact of the change in the docs config? |
So do I follow, that you would like to take the result of the SORL query or a flat JSON file, and use it to generate an ESM catalog as output? Do you expect the user to choose between the two possible inputs at runtime (or environment variables/something else?); or were you hoping to combine the inputs? |
@wachsylon Could you post a link to the docs where you're seeing the hidden yaml? |
In my use case, my main catalog would use two inputs that are both in the same catalog. I need to specify them as kwargs for the open function. But there is no way to do this. It seems like |
Correct, the current design of the various types of derived dataset expects one source as input. However, the source instances do get a reference to the catalog object from which they were made, so you could write a derived class that fetches more than one input. Would you like to give it a go? A PR for the new class in intake.source.derived would be apreciated! |
Hi,
sorry if the terms I used in the following are not fully correct according to official definitions.
Lets assume I have catalog
hi
with an entry:hi.freva_cmip5_df.read()
returns a DataFrame. Can I use this DataFrame within another catalog entry which uses a DataFrame as input in theargs
somehow?In general, can I use the container (dont know if that is the correct name) i.e. the output of a source for another intake catalog entry?
Thanks!
The text was updated successfully, but these errors were encountered: