I am having trouble using pyglider. #146
Replies: 4 comments
-
Hi Ria To run dbdreader you will need a c compiler. So you need to install Xcode on your Mac or a c compiler on your windows machine (I don't have one so can't really help with this step) Note you do not need to use dbdreader. There is a less robust two-step method to translate the files all in Python if you prefer. |
Beta Was this translation helpful? Give feedback.
-
BTW< I've moved this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
Ok, I have now installed the dbdreader. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
Thanks for raising this Ria. We should add info on the installations instructions about the need for a c compiler for dbdreader |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I would like to use pyglider to process Slocum glider data. When I installed pyglider today I ran into a couple of issues that I wanted to raise here. In the following I will list my steps to ensure that I have not done a mistake (I am very new to python and Slocum gliders):
I have installed the required packages and created a new environment as suggested on the website.
conda create -n gliderwork
conda activate gliderwork
conda install -c conda-forge pyglider
I downloaded the example data manually, as
import pyglider.example_data as pexamp
pexamp.get_example_data('./')
is not working.
Having the example data I wanted to run the example code to make sure that everything is working properly. The code is shown in the shown on the getting started : slocum (https://pyglider.readthedocs.io/en/latest/getting-started-slocum.html)
I wanted to run the first couple of lines to ensure the packages are imported properly. I received the following error message:
Attribute Error: pyglider.slocum' has no attribute 'binary_to_timeseries
I sort of solved this issue by copying the code from pyglider.slocum from github and replacing the old code.
I then received another error message that dbdreader is not defined. I realized that dbdreader was not installed with the packages (I think its important to transform the binary code from for example *.dbd files?) I have tried to install dbdreader separately, but it failed miserably on both my MAC and my Windows Laptop.
I received the following error message:
%%%%
Sorry for this rather lengthy issue. I wonder whether some of you have encountered this? Or whether I did something wrong?
Best wishes,
Ria
Beta Was this translation helpful? Give feedback.
All reactions