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

Fix 53: Zero Pad Depth Field in Convertion from Stationxml to Dataless SEED #61

Merged
merged 10 commits into from
Aug 23, 2021

Conversation

timronan
Copy link
Collaborator

This solves the local depth issue #53 by 0 padding the depth field when it does not fit into the dataless SEED convention. Data output from this pull request pass manual inspections, rdseed, and pdcc.

Here is an example from rdseed:
Depth stored in /src/test/resources/depthcheck.xml
<Depth>-250</Depth>

Depth stored in output dataless:

052014900BDF0000002~001002+47.661570-122.313320+0250.0
-0250359.0+00.00001122.0000E+010.0000E+000000CG~2018,218,00:00:00.0000~2500,365,23:59:59.0000

Rdseed output:

#		+                  +---------------------------------------+                  +
#		+------------------|   Station TPASS   |    Channel BDF    |------------------+
#		+                  +---------------------------------------+                  +
#		
B052F04     Channel:                               BDF
B052F03     Location:                              00
B052F05     Subchannel:                            0
B052F06     Instrument lookup:       2             GEM (Infrasound), 0.2-50 Hz, 0.4 V/Pa-null
B052F07     Comment:                               (null)
B052F08     Signal units lookup:     1             PA - No Abbreviation Referenced
B052F09     Calibration units lookup:     2        V - Volts
B052F10     Latitude:                              47.661570
B052F11     Longitude:                             -122.313320
B052F12     Elevation:                             250.000000
B052F13     Local depth:                           -250.000000
B052F14     Azimuth:                               359.000000
B052F15     Dip:                                   0.000000

@timronan timronan requested a review from yazan-iris July 20, 2021 19:01
Copy link
Contributor

@yazan-iris yazan-iris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow language naming convention. You have been asked several times to do so, but you keep forgetting.

Has the local depth issue been approved by Casey?

@timronan
Copy link
Collaborator Author

timronan commented Jul 21, 2021

@yazan-iris I fixed the variable name. I added @rcasey-iris as a reviewer as well. Please let me know if I should make any other changes.

@rcasey-earthscope
Copy link
Contributor

rcasey-earthscope commented Jul 21, 2021 via email

@timronan
Copy link
Collaborator Author

timronan commented Jul 21, 2021

@rcasey-iris that formatting is undone by the double and should likely be removed. The formatting is actually occurring in java-4-seed. yazan-iris/java-4-seed@a78cb93

@timronan
Copy link
Collaborator Author

The circular logic was removed and the same test were conducted successfully.

Rdseed output:

B052F13     Local depth:                           -250.000000

Manual inspection in dataless:
052014900BDF0000002~001002+47.661570-122.313320+0250.0-0250359.0+00.00001122.0000E+010. 0000E+000000CG~2018,218,00:00:00.0000~2500,365,23:59:59.0000~

The lessthanzerodepth unit test also checks for this issue.

@rcasey-earthscope
Copy link
Contributor

rcasey-earthscope commented Jul 21, 2021 via email

@timronan
Copy link
Collaborator Author

timronan commented Jul 21, 2021

Hi Rob,
Yes, if you think think version is ready to merge please let us know. Or please let us know further changes we can make. Thanks for the review.

@timronan
Copy link
Collaborator Author

@rcasey-iris thanks for the confirmation.

@timronan
Copy link
Collaborator Author

@yazan-iris are there additional changes that should be performed? Thanks

@rcasey-earthscope
Copy link
Contributor

Are will still blocked on Yazan's approval on this issue?

@yazan-iris yazan-iris merged commit a01ee2a into master Aug 23, 2021
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

Successfully merging this pull request may close these issues.

3 participants