Closed yalonzo closed 2 years ago
Thanks for the report. Could you provide the error you got when you used sonar_model="ES80"
in open_raw
?
There isn't a problem when I read the data using open_raw
with sonar_model="ES80"
. However, when I want to calibrate the data I get this error (see the image)
So, this is the principal reason to use EK80 instead ES80 when I read raw data, but the echogram is empty using this trick.
What do I need to do to see the echogram?
Thanks for that information and screenshot. What echopype version are you using?
I think there may be two different issues going on. The first one is that it looks like calibrate.compute_Sv
is not handling "ES80". I see that ES80 is not included here among the defined "calibrators", and it's also not handled explicitly in the blocks below that line.
That's probably a relatively easy fix on our end.
The reason the Sv
plot looks empty is a different problem. Do you have a small raw file you could share with us to test this? Preferably less than 50 MB or so.
I'm using 0.6.0 version of Echopype
Thanks!
@yalonzo : I am pretty sure what you have seen is something caused by the bug that https://github.com/OSOceanAcoustics/echopype/pull/755 addresses. As @emiliom said, we will have to add ES80 to the list so that it can be handled by the same calibration function as the EK80 echosounder.
In terms of timeline, our goal is to release v0.6.1 by the end of this week. Working toward that!
Ohh, I understand. Thank you!!! π
@yalonzo we have just released version 0.6.1, which addresses your issue. The conda package may not be available yet; I forget how long it takes, but it may be up to 24 hours.
Using your sample raw file, I did this successfully:
ed = open_raw("sample_raw.raw", sonar_model='ES80')
ds_sv = calibrate.compute_Sv(ed, waveform_mode='CW', encode_mode='power')
# note that using sel(frequency_nominal=120000) should fail because
# frequency_nominal is not a coordinate variable
ds_sv.Sv.isel(channel=0).plot.pcolormesh(x='ping_time', y='range_sample',
cmap='viridis', vmin=-80, vmax=-30)
which generated this echogram plot: (Aug 10: now removed)
Thanks so much for reporting the problem and providing detailed information and the small sample raw file! (Β‘Gracias!)
It is now on conda-forge!
I tried it and ran perfectly. Thank you so much for the support and again Gracias!!! π
Hi again,
One question, can you plot the echogram using the MVBS_ds? I used this function but my kernel in Python died :(.
MVBS_ds = ep.preprocess.compute_MVBS(
Sv_ds,
range_meter_bin=5, # in meters
ping_time_bin='20s' # in seconds
)
I want to plot this, but is necessary the conversion MVBS_ds y_axis (depth), x_axis (time) (see image)
Could you help me with that? :)
TY
I don't think I understand exactly what you're asking. Yes, one can plot the MVBS echogram, as you can see from the example and screenshots you included, which I can see are from the first notebook in our Echopype Examples site.
Could you create a new issue for this question? That makes it easier for us to follow up, compared to extending a discussion in an issue that's already closed. Thanks!
So sorry,
I referred that I can't plot the MVBS_ds with the data from ES80 sonar model.
Thank you
I referred that I can't plot the MVBS_ds with the data from ES80 sonar model that I shared with you.
Are you saying you can create MVBS_ds
using compute_MVBS
just fine, but you get a kernel death when you try to plot following the Echopype Examples code? If so, please share the exact statement where the kernel death occurs, and preceding statements. Also, how big is your raw file?
Also, please pray, could you delete this issue (Not showing echogram using ES80 sonar model https://github.com/OSOceanAcoustics/echopype/issues/750) from GitHub because this information and results are sensible and private.
I hope you understand me :(
Thank you for your help and your comprehension.
We appreciate when users like you take the time to post a question here on GitHub and we try to help whenever possible. That feedback makes echopype better, and that benefits the community of echopype users. But because this is an open source software package and our time is limited, our decisions on when and how much to help are based on the common understanding that exchanges on GitHub are public and will remain public, for others to benefit from and for our own future reference.
If you had told us in advance that all our communication would have to be private, we probably would not have offered to help. So I'm afraid we can't offer to delete an issue. However, you can edit specific previous comments you made if you feel there was sensitive information present. I think you've already done that, because I don't see the comment where you shared the sample raw file.
BTW, in my opinion, there is nothing in this exchange that is highly specific to your project or that provides any context about the data or your project. The most specific thing is the echogram plot I made (https://github.com/OSOceanAcoustics/echopype/issues/750#issuecomment-1179165290), but even that has no reference at all about where the data come from or even the date. It's basically a small, generic echogram. You've already removed -- appropriately -- the link to your raw file.
Are you saying you can create MVBS_ds using compute_MVBS just fine, but you get a kernel death when you try to plot following the Echopype Examples code? If so, please share the exact statement where the kernel death occurs, and preceding statements. Also, how big is your raw file?
No, the error occurred (my kernel in Python died) when I tried to get the MVBS data from data with ES80 sonar model. I don't know why is the reason π€. Of course, I would like to plot the echogram with this new data but I can't do that if I don't have the MVBS first.
This is the code used to get the MVBS:
MVBS_ds = ep.preprocess.compute_MVBS(
ds_Sv,
range_meter_bin=0.2, # 0.2 meters
ping_time_bin='10S' # 10 seconds
)
MVBS_ds
And this is the message:
BTW, in my opinion, there is nothing in this exchange that is highly specific to your project or that provides any context about the data or your project. The most specific thing is the echogram plot I made (https://github.com/OSOceanAcoustics/echopype/issues/750#issuecomment-1179165290)
Yes, I understand your point of view.
Thank you so much π
I've removed the plot I had created -- though, again, there was nothing there that made it identifiable or distinguishable from any echogram from an unknown source.
I'll try to reproduce your kernel error on ep.preprocess.compute_MVBS
, but it won't be for at least two weeks. I suggest you profile memory consumption when you run that statement to see why and how the kernel dies. Typically a Jupyter kernel death is due to memory usage.
Hello,
I'm trying to show an echogram with Sonar ES80 data. However, first, I can't open the RAW data with this sonar model. Instead, I try to open with EK80 like parameter and I got success. I don't know if this trick is correct.
Now, I'm trying to show the echogram but I don't see anything (see the image)
Can you help with this please.
Thank you! π