other:python:jyp_steps
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
other:python:jyp_steps [2019/10/04 14:42] – [Graphics related resources] More resources jypeter | other:python:jyp_steps [2020/02/04 09:33] – [Cartopy + Iris] jypeter | ||
---|---|---|---|
Line 18: | Line 18: | ||
* the tutorial is very detailed about string handling, because strings offer an easy way to practice working with indices (indexing and slicing), before indexing numpy arrays. And our usual pre/ | * the tutorial is very detailed about string handling, because strings offer an easy way to practice working with indices (indexing and slicing), before indexing numpy arrays. And our usual pre/ | ||
* after reading this tutorial, you should practice with the following: | * after reading this tutorial, you should practice with the following: | ||
- | * [[https://files.lsce.ipsl.fr/ | + | * [[https://sharebox.lsce.ipsl.fr/ |
* {{: | * {{: | ||
* {{: | * {{: | ||
Line 228: | Line 228: | ||
Examples: | Examples: | ||
+ | * [[other: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
Line 258: | Line 259: | ||
We list here some resources about non-NetCDF data formats that can be useful | We list here some resources about non-NetCDF data formats that can be useful | ||
+ | ==== The shelve package ==== | ||
+ | |||
+ | The [[https:// | ||
+ | |||
+ | Use case: | ||
+ | - Use a script do to the heavy data pre-processing and store the (intermediate) results in a file using '' | ||
+ | - Use another script for plotting the results stored with '' | ||
+ | |||
+ | Warning: | ||
+ | * read the [[https:// | ||
+ | * if you get the impression that the data is not saved correctly, re-read the parts about updating correctly the content of the shelve file | ||
+ | * you should be able to store most python objects in a shelve file, but it is safer to make tests | ||
+ | * do not forget to close the output file | ||
+ | * if you are dealing with big arrays and want to avoid performance issues, you should use netCDF files for storing the intermediate results | ||
==== json files ==== | ==== json files ==== | ||
other/python/jyp_steps.txt · Last modified: 2025/02/26 11:40 by jypeter