heliopy.data.util.
pitchdist_cdf2df
(cdf, distkeys, energykey, timekey, anglelabels)¶Converts cdf file of a pitch angle distribution to a pandas dataframe.
MultiIndexing is used as a pitch angle distribution is essentially a 3D dataset f(time, energy, angle). See http://pandas.pydata.org/pandas-docs/stable/advanced.html#multiindex-advanced-indexing for more information.
This has been constructed for importing wind swe pitch angle distributions, and might not generalise very well to other data sets.
Assumes that each energy in the cdf has its own 2D array (time, angle). In the below description of the function there are
n
time data pointsm
energy data pointsl
anglular data points
Parameters: |
|
---|---|
Returns: | df – Data frame with read in data. |
Return type: |