Skip to content

Commit b596020

Browse files
committed
Updated docs on new loading option
1 parent 22faad1 commit b596020

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pysatCDF/cdf.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ def _read_all_attribute_info(self):
343343
num = copy.deepcopy(self._num_attrs)
344344
name = copy.deepcopy(self.fname)
345345
out = fortran_cdf.inquire_all_attr(name, num, len(name))
346+
#print (num, name, out)
346347
status = out[0]
347348
names = out[1]
348349
scopes = out[2]
@@ -537,7 +538,18 @@ def _process_return_multi_z_attr(self, data, attr_names, var_names, sub_num_elem
537538
def to_pysat(self, flatten_twod=True):
538539
"""
539540
Exports loaded CDF data into data,meta for pysat module
540-
541+
542+
Parameters
543+
----------
544+
flatten_twod : bool (True)
545+
If True, then two dimensional data is flattened across
546+
columns. Name mangling is used to group data, first column
547+
is 'name', last column is 'name_end'. In between numbers are
548+
appended 'name_1', 'name_2', etc. All data for a given 2D array
549+
may be accessed via, data.ix[:,'item':'item_end']
550+
If False, then 2D data is stored as a series of DataFrames,
551+
indexed by Epoch. data.ix[0, 'item']
552+
541553
Returns
542554
-------
543555
data, meta

0 commit comments

Comments
 (0)