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

Add 300 level rule: Seimic Instruments must include azimuth and dip #97

Closed
timronan opened this issue Feb 13, 2020 · 9 comments
Closed

Comments

@timronan
Copy link
Collaborator

We should add a 300 level rule that uses the instrument code to determine if azimuth and dip must be included in the stationxml document.

@timronan
Copy link
Collaborator Author

timronan commented Apr 7, 2020

The rule should read:
320: IF Channel:Code[2]==(H | L | M) THEN Channel:Azimuth and Channel:Dip must be included.

@rcasey-earthscope
Copy link

rcasey-earthscope commented Apr 7, 2020 via email

@timronan
Copy link
Collaborator Author

This issue has been addressed by rule:
320: If Channel:Code[2]==(H | L | M | N) THEN Channel:Azimuth and Channel:Dip must be included.

Refer to commit: 14d82eb

@metempleton
Copy link
Collaborator

metempleton commented Apr 27, 2020 via email

@timronan timronan reopened this Apr 27, 2020
@timronan
Copy link
Collaborator Author

This rule does not enforce any specific values, it only enforces that the dip and azimuth element are included in the StationXML file.

Rule 320 throws an error, so the file will not pass validation or be loaded if this rule fails. @metempleton do you think this rule should be reduced to a warning? Also, do you think we should remove M?

Thanks

@metempleton
Copy link
Collaborator

metempleton commented Apr 27, 2020 via email

@timronan
Copy link
Collaborator Author

If the channel codes are labeled as NEZ than the channels with the E and Z labels will trigger warnings 333 and 334 respectively. If the orthogonal channels follow a different naming convention, which they maybe should, than the warnings won't be triggered.

If "M" instruments use the NEZ naming convention we should consider removing M from this rule, otherwise we will receive a lot of unnecessary unresolvable warnings.

@metempleton
Copy link
Collaborator

metempleton commented Apr 28, 2020 via email

@timronan
Copy link
Collaborator Author

We will leave this rule as is and close the issue. We can revisit this rule if it turns out to be too sensitive. Thanks for checking the metadata. We will remove M from rule 321 referenced in issue #96. Thanks @metempleton for reviewing the additional rules added to the validator.

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

No branches or pull requests

3 participants