Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in gt.load.seaglider_basestation_netCDFs function #152

Open
mgentil17 opened this issue May 9, 2022 · 0 comments
Open

Error in gt.load.seaglider_basestation_netCDFs function #152

mgentil17 opened this issue May 9, 2022 · 0 comments

Comments

@mgentil17
Copy link

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:
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant