solarforecastarbiter.io.fetch.arm.extract_arm_variables

solarforecastarbiter.io.fetch.arm.extract_arm_variables(nc_file, variables)[source]

Extracts variables and datetime index from an ARM netcdf.

Parameters:
  • nc_file (netCDF4 Dataset) – The ARM file read into a Dataset.
  • variables (list) – List of string variable names to parse from the files.
Returns:

DataFrame – A pandas DataFrame with a column for each requested variable found in the ARM netcdf file, indexed by timestamp in UTC. If none of the requested variables are found, an empty DataFrame is returned.