Hi,
I am new to the glidertool and python community. Sorry if this error does not require opening a new issue. Recently I have started a project with a Seaglider and wanted to explore this tool for higher-level processing.
So, I installed this tool using conda and I follow the detailed example on the following page: https://glidertools.readthedocs.io/en/latest/loading.html#working-with-seaglider-base-station-files, to process the data.
However when I try to load a Seaglider netcdf file, I have now encountered an error as given below and not sure how to solve it.
To Reproduce
#Define data path
filenames = '/media/mathieu/SAMSUNG/these/03_PYTHON/01_CICESE/data/M011_raw/20211130_basestation_processed_2_11/20211130_basestation_processed_2_11/p6230229.nc'
#Displays variable names, dimensions and units
a = gt.load.seaglider_show_variables(filenames)
#The variable "names" contains all the name variables of the basestation
names = a.data.index
#Load the data
ds_dict = gt.load.seaglider_basestation_netCDFs(filenames, names, return_merged=True, keep_global_attrs=False)
It is showing the below error:

Expected behavior
Normally, it should load all the variables in the file. I did the test with the same variables as in the demo and it works well. But as soon as I try to add the variables on the depth average current or the flight model, I get the above error.
Desktop (please complete the following information):
- OS: 5.4.0-109-generic
- Browser firefox
- Version Ubuntu 20.04 LTS
Any help will be much appreciated.
Thanks,
Mathieu
Hi,
I am new to the glidertool and python community. Sorry if this error does not require opening a new issue. Recently I have started a project with a Seaglider and wanted to explore this tool for higher-level processing.
So, I installed this tool using conda and I follow the detailed example on the following page: https://glidertools.readthedocs.io/en/latest/loading.html#working-with-seaglider-base-station-files, to process the data.
However when I try to load a Seaglider netcdf file, I have now encountered an error as given below and not sure how to solve it.
To Reproduce
#Define data path
filenames = '/media/mathieu/SAMSUNG/these/03_PYTHON/01_CICESE/data/M011_raw/20211130_basestation_processed_2_11/20211130_basestation_processed_2_11/p6230229.nc'
#Displays variable names, dimensions and units
a = gt.load.seaglider_show_variables(filenames)
#The variable "names" contains all the name variables of the basestation
names = a.data.index
#Load the data
ds_dict = gt.load.seaglider_basestation_netCDFs(filenames, names, return_merged=True, keep_global_attrs=False)
It is showing the below error:

Expected behavior
Normally, it should load all the variables in the file. I did the test with the same variables as in the demo and it works well. But as soon as I try to add the variables on the depth average current or the flight model, I get the above error.
Desktop (please complete the following information):
Any help will be much appreciated.
Thanks,
Mathieu