eurec4a / how_to_eurec4a

Code examples to get you started with EUREC⁴A data.
https://howto.eurec4a.eu
MIT License
6 stars 20 forks source link

Flight tracks from Twin-Otter aircraft #72

Open leifdenby opened 2 years ago

leifdenby commented 2 years ago

In creating plots for the Twin-Otter data paper I have decided to make all the figure-creation scripts into jupyter notebooks. That way they can be shared with the community and everyone can see how to use the Twin-Otter data.

This is still work in progress since I need to create GOES-16 composites for flights that don't have MODIS overpasses.

d70-t commented 2 years ago

Awesome 🎉!

Please note, that we'te using the MySt format for notebooks in the book in stead of the usual ipynb format (to facilitate reviews / diffs). You can convert your ipynb files to MySt with the help of jupytext using:

jupytext --to myst notebook.ipynb
leifdenby commented 2 years ago

Please note, that we'te using the MySt format for notebooks in the book in stead of the usual ipynb format (to facilitate reviews / diffs). You can convert your ipynb files to MySt with the help of jupytext using:

Thank you! Yes, I spotted that, but I just find it easier to develop the notebook in jupyter first. Presumably you do the same? Or is there a way to save directly to MySt while you're working on a notebook?

d70-t commented 2 years ago

Yes, if you have jupytext installed, you should be able to just use the MySt files just as if they were notebooks. If that doesn't work, this page has some more ideas on how to do that. I usually to this for coarse skething and interative experiments. For the final cleanup, I use a texteditor on the Markdown directly and do the rendering using jupyter-book.

If you really want to have the outputs stored, there's in principle also the option to use paired notebooks, which takes care of synchronization between multiple formats. However, in How to eurec4a, we intentionally don't do this.

observingClouds commented 1 year ago

Hej! It's Tuesday and I was just wondering if we can push this PR forward 😄 Is jupytext --to myst notebook.ipynb all that is necessary here?

leifdenby commented 1 year ago

Hej! It's Tuesday and I was just wondering if we can push this PR forward smile

Hahahaha!

Yes, I need to get all of this done... I'm just about to have a look at this now and I'll let you know :)