-
Notifications
You must be signed in to change notification settings - Fork 74
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
Consistent time coordinate naming within echopype #656
Comments
@emiliom : assigned you to this for first round of check/feedback and let's see who handles the implementation. |
This looks good |
While looking at some tests, I noticed that in |
Yes please add it. Also I think for things like this you could take the same approach as what @emiliom mentioned for pushing to others' PR: now you have a sense of how things should be, you could just do it and mention it in your PR comments to call others' attention. 🤓 |
@leewujung or @emiliom did you have a generic statement that you have in mind for the comment attribute for each of these times? Below is my initial attempt:
|
Maybe we can iterate on this at PR review stage? |
Ok, sounds good. I will use your suggested form and we can discuss this further at the PR stage. |
For EK60/EK80 |
After reviewing the
From the code, this does not seem to be correct. These variables have the dimension |
@b-reyes : for EK80 under set_env, if you read from the top, you will see that what's called Note that we do not support the |
I think tracing the code back to the upstream and try a few test files will help resolve this. Please let us know what you find in terms of what operations make them different (if they are) and we can decide on the comment from there! |
@leewujung Now that you point to it, I do see that in the parser echopype/echopype/convert/set_groups_ek80.py Lines 123 to 127 in 38c3de4
made it seem like there was a scenario where we could have To be absolutely clear, you are suggesting that I remove |
@b-reyes : what I meant was that the As I mentioned, I think the And yes, removing |
@leewujung looking into this, it seems like echopype/echopype/convert/set_groups_base.py Line 148 in 38c3de4
echopype/echopype/convert/set_groups_base.py Lines 177 to 179 in 38c3de4
It seems like this is a subset because we only want to select times that correspond to certain messages (or NMEA sentences). These allowable sentences are set here echopype/echopype/convert/api.py Line 254 in 38c3de4
From the multiple files that I have tested, it seems like Edit: changed "Time coordinate corresponding to environmental variables and allowable NMEA sentences." to "Time coordinate corresponding to GPS location and allowable NMEA sentences." |
@b-reyes : thanks for the investigative work! I think this |
Thinking out loud ... If no environment XML datagram exists in the file, then we will not have the variables
Since it is possible that no environment XML datagram exists in the file, how do we want to set
|
@leewujung reading up on #580, it seems like we definitely plan to remove this |
@b-reyes I agree with your suggestions! |
Finally catching up here ... I think I agree with everything I'm seeing, including removing the messages filtering in the NMEA data. That data should be as close to the raw, unfiltered datagram as possible. |
I think we can close this now! |
To be compliant with the convention but also recognizing different sonar instruments produce different datagrams that contain the same types of information, we (@b-reyes @imranmaj @lsetiawan @leewujung) spent some time discussing what we should do in each of the instruments echopype supports at the moment. This discussion was spurred by #649.
Below are our conclusions:
Overarching
comment
attribute of these time coordinate variables.Time coordinates in
Platform
grouptime1
: will be used for data variables related to GPS lat/lontime2
: will be used for data related to platform motion and positions, such as pitch/roll/vertical_offsetEK60
: sourceping_time
(not yet implemented)EK80
: sourcemru_time
(already implemented)AZFP
: sourceping_time
(added in Rearrange AZFP attributes/variables and remove a variable according to #642 #669:tilt_x/y
-- these may eventually be removed)time3
: will be used for anything from environment type of datagrams, such as water_depthEK60
: ping_time (not yet implemented)EK80
: environment_time (already implemented)AZFP
: X (not yet implemented)Time coordinates in
Environment
grouptime1
across the board, and we don't currently see a use case fortime2
yet(time1)
EK60
: sourceping_time
(not yet implemented)EK80
: sourceenvironment_time
(not yet implemented)AZFP
: X (do not need)(channel, time1)
EK60
: sourceping_time
(not yet implemented)EK80
: sourceenvironment_time
(not yet implemented) environment_timetime1
in Environment group is the same astime3
in Platform group. This will be noted in thetime1
comment
attribute and in the correspondingPlatform.time3.comment
attribute (those attributes already exist but will need to be updated)AZFP
: X (do not need)(time1)
EK60
: XEK80
: sourceenvironment_time
(not yet implemented)AZFP
: variable temperature, sourceping_time
(not yet implemented)The text was updated successfully, but these errors were encountered: