Closed Dolgalad closed 2 years ago
@brenard-irap, AMDA CSV files columns names don't match PARAMETER_COMPONENTS
is this something we can fix?
I would like to avoid using metadata as much as possible since it is WS dependent and this method has to work with all Speasy time series.
PARAMETER_COMPONENTS can be not unique when you download two parameters in the same file (two magnetic fields vector for example: bx, by & bz). The columns names in the CSV must be unique...
I'll ignore PARAMETER_COMPONENTS. It was essentially for esthetics purposes.
We could handle this here https://github.com/SciQLop/speasy/blob/main/speasy/webservices/amda/utils.py#L43 if we consider that we always request one parameter at time. Then in a second time, we can see how to consolidate this on AMDA side.
PR #45
Description
Convert
SpeasyVariable
object toastropy.table.Table
with correct units (when conversion toastropy.unit.Unit
is possible). Only works if :param.meta
containsPARAMETER_COMPONENTS
param.meta["PARAMETER_UNITS"]
isastropy
compatibleNote : dataframe columns are renamed to
param.meta["PARAMETER_COMPONENTS"]
when possibleWhat I Did