vdms.to_pickle¶
- vdms.to_pickle(filename)[source]¶
Save VDM data (list of dictionaries) to a pickle file
- Parameters
filename (str) – name of file to save pickle file to.
Notes
This method saves the VDMs data as a pickle within the current working directory, given a filename as an argument.
For example, assume
vdms
was retrieved from a Storm object (using the first method described in thevdms
class documentation). The VDMs data would be saved to a pickle file as follows:>>> storm.recon.vdms.to_pickle(data="mystorm_vdms.pickle")
Now the VDMs data is saved locally, and next time recon data for this storm needs to be analyzed, this allows to bypass re-reading the VDMs data from the NHC server by providing the pickle file as an argument:
>>> storm.recon.get_vdms("mystorm_vdms.pickle")