neonutilities.stack_eddy¶
- neonutilities.stack_eddy(filepath, level='dp04', var=None, avg=None, metadata=False, runLocal=False)¶
Convert data of choice from HDF5 to tabular format. Specific to eddy covariane data product: DP4.00200.001
Parameters¶
filepath: One of 1) a folder containing NEON EC H5 files, 2) a zip file of DP4.00200.001 data downloaded from the data portal, 3) a list of H5 files, 4) a single EC H5 file level: The level of data to extract; one of dp01, dp02, dp03, dp04 var: The variable set to extract. Can be any of the variables in the “name” level of the “system” level of the H5 file; use getVarsEddy() function to see the available variables. From the inputs, all variables from “name” and all variables from “system” will be returned, but if variables from both “name” and “system” are specified, the function will return only the intersecting set. This allows the user to, e.g., return only the pressure data (“pres”) from the CO2 storage system (“co2Stor”), instead of all the pressure data from all instruments. avg: The averaging interval to extract, in minutes. metadata: Should the output include metadata from the attributes of the H5 files? Defaults to false. Even when false, variable definitions, issue logs, and science review flags will be included. runLocal: Set to True to omit any calls to the NEON API. Data are extracted and reformatted from local files, but citation and issue log are not retrieved.
Return¶
varMergDict: A dictionary of dataframes. One data frame per site, plus one dat frame containing the metadata (objDesc) table and one data frame containing units for each variable.