Common utils used by multiple scripts
read_cdf_file
read_cdf_file(cdf_filepath, variables=None)
Read a cdf file, either fully or only a subset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cdf_filepath
|
string
|
Path to the CDF file. |
required |
variables
|
list
|
List with tuples the names to store the varibles in and varibles to read. |
None
|
Returns: Dictionary with the varibles.
pandas_read_file
pandas_read_file(filepath)
Wrapper to handle reading data from multiple different file formats.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
string
|
The file path including file extension. |
required |
Returns: A pandas DataFrame read from the given file path.