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

Expected usage types? #16

Open
truth-quark opened this issue Apr 29, 2024 · 3 comments
Open

Expected usage types? #16

truth-quark opened this issue Apr 29, 2024 · 3 comments
Labels
priority:low question Further information is requested

Comments

@truth-quark
Copy link
Collaborator

Is there any indication around all of the methods amami is going to be used in practice?

  1. Run from the command line (manually & in scripts)
  2. Called as a library API?

Option #2 seems plausible if um2nc is called from a workflow tool or other code.

@truth-quark truth-quark added the question Further information is requested label Apr 29, 2024
@atteggiani
Copy link
Collaborator

amami is supposed to be used only as a CLI program (manually and within scripts), not as a Python API.

@truth-quark
Copy link
Collaborator Author

amami is supposed to be used only as a CLI program (manually and within scripts), not as a Python API.

Is there a particular reason for this?

What if someone wants to integrate um2nc functionality into a workflow manager like airflow or luigi?

@atteggiani
Copy link
Collaborator

atteggiani commented Apr 29, 2024

What if someone wants to integrate um2nc functionality into a workflow manager like airflow or luigi?

I am not familiar with airflow or luigi workflow managers.

In any case, the purpose of amami is to allow users to perform some defined tasks (such as converting a UM fieldsfile in netCDF with the um2nc subcommand) that are useful (and not necessarily straightforward) within the climate community.

amami uses some Python APIs to manipulate data internally (mainly xarray, iris and mule).
If users want to perform more specific or complex tasks, they can use these APIs directly with their own scripts (potentially using any wokflow manager if they want).

For the moment I don't think we should support usage as an API.
Then, in the future, if there is request for such a feature, we will implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:low question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants