Jacob Hummel edited 2-Structure.tex  about 8 years ago

Commit id: cf65e399fa83c5061c21909d518aaefdf1abd2ab

deletions | additions      

       

\label{sec:df}  Data for each particle type (e.g., dark matter, gas, etc.) is stored in a separate \code{PartType} dataframe and indexed by particle ID number.   Individual fields can be loaded into the dataframes and deleted at will, with coherent slicing across multiple data fields, courtesy of \code{pandas}.   The base \code{PartType} objects, \code{PartTypeNbody} and \code{PartTypeSPH}, are standard \code{pandas} dataframes, dataframes  with additional functionality for loading standard \textsc{gadget} particle fields from HDF5, converting units, and performing coordinate transformations. As such, \code{gadfly} dataframes retain all the capabilities of the \code{pandas.DataFrame} from which they inherit, and any operation that creates a new dataframe instance returns a standard \code{pandas} dataframe.  Nonstandard particle fields can be easily loaded into \code{gadfly} as well; fields loaded in this manner simply lack automated unit conversion.