Closed rmduarte closed 7 years ago
We are using Anaconda 4.2.0 and windows 7.
Thanks
Which Python version are you using? It looks like Anaconda 4.2.0 offers a choice between Python 3.5 and 2.7.
Sorry, Python 2.7
Well, this is very strange. I am not getting the error you have indicated above, but I am getting a different one. Regarding the error you've indicated above, is there any other text printed to the console prior to the traceback? If so, can you post that text as well? Are you sure the file you're using is the same one Jean-Francois sent me? The one I have is 2078507008 bytes long (~1.9GB).
Regarding the error I'm getting: this file has a different header than other RDI ADCPs I've typically worked with. Can you let me know the model name/number of the instrument, and any software you used to configure the instrument, read data from the instrument, or post-process the data?
OK, I resolved this with commit e59e37f. It had to do with a difference in the way that Windows reads files compared to unix. I needed to add a little 'b'
to the open()
call. I wonder how many people have tried to use this code to load files in windows, and haven't been able to? This took ENTIRELY TOO LONG to figure out! Though, I suppose I've mostly been trying to figure out the header-discrepancy issue, which is now covered in issue #7.
Dear Levi,
After correcting the problem with the nanmean import, we get the following error when trying to read a adcp binary file:
In [23]: data = apm.read_rdi('SMADCP-FEM-Brehat-1.000')
error Traceback (most recent call last)