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

Add --pack to pack all netCDF and yaml files used to produce a forcing/trajectory into a .tar.gz file #163

Open
leifdenby opened this issue May 9, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@leifdenby
Copy link
Contributor

Just now asking @sjboeing for some forcings he's produced I realised it would be useful to have an argument that could be passed to the commands which produce trajectories and forcings which would save the result into a .tar.gz file, including any intermediate files and the source yaml-files. If we also included the git commit for the copy of lagtraj which produced the forcings this should make creating a forcing complete reproducible, apart from the source-data, including that would be too much. This could also be a handy way of copying trajectories/forcings around.

Suggested contents for running for example

python -m lagtraj.forcings.create lagtraj://eurec4a_20200202_first_short --conversion dephy

Would be all yaml-files (domain, trajectory and forcing), trajectory netCDF file and forcing netCDF file (including intermediate file before converting to dephy format) and reference to the git commit hash. All would stored in the directory layout that we use in lagtraj so that one could simply un-tar the file and run lagtraj afresh.

Thoughts @sjboeing ?

@leifdenby leifdenby added the enhancement New feature or request label May 9, 2022
@sjboeing
Copy link
Contributor

sjboeing commented May 10, 2022

Ah I got confused. Do you mean running:

python -m lagtraj.forcings.create lagtraj://eurec4a_20200202_first_short --conversion dephy --pack

?

Sounds good! Did we talk about including the git commit into the individual netcdf files before? Not sure what is the best approach here.

@leifdenby
Copy link
Contributor Author

Ah I got confused. Do you mean running:

python -m lagtraj.forcings.create lagtraj://eurec4a_20200202_first_short --conversion dephy --pack

Yes! Sorry, that was the key bit! 😆

Did we talk about including the git commit into the individual netcdf files before? Not sure what is the best approach here.

Yes, I think we might have done. I'll make another issue for that

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

No branches or pull requests

2 participants