dropsondes.to_pickle

dropsondes.to_pickle(filename)[source]

Save dropsonde data (list of dictionaries) to a pickle file

Parameters

filename (str) – name of file to save pickle file to.

Notes

This method saves the dropsondes data as a pickle within the current working directory, given a filename as an argument.

For example, assume dropsondes was retrieved from a Storm object (using the first method described in the dropsondes class documentation). The dropsondes data would be saved to a pickle file as follows:

>>> storm.recon.dropsondes.to_pickle(data="mystorm_dropsondes.pickle")

Now the dropsondes data is saved locally, and next time recon data for this storm needs to be analyzed, this allows to bypass re-reading the dropsondes data from the NHC server by providing the pickle file as an argument:

>>> storm.recon.get_dropsondes(data="mystorm_dropsondes.pickle")