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

0 is being added to Decimal Seconds when Converting from StatinoXML to Dataless #68

Open
timronan opened this issue Apr 15, 2022 · 3 comments

Comments

@timronan
Copy link
Collaborator

A 0 is being added to the tenths place in station level endtime decimal seconds when converting from stationxml to dataless seed. This is a likely associated with keeping a correct Bytes count but need to be investigated.

StationXML Representation of Station LA03 EndTime:
2022-03-02T13:35:33.205000Z

Dataless Representation of Station LA03 EndTime:
LA03: 2019,181,01:47:40.0000~2022,061,13:35:33.0205

@Stephen-Veitch
Copy link

Not sure if this needs a separate bug report, but to add:

When converting stationxml -> dataless, epoch times with fractional seconds with leading zeros sometimes results in the zero being removed such that XX.0919 will become XX.919

@rcasey-earthscope
Copy link
Contributor

Thank you for reporting this. This does sound related. Just hazarding a guess, but the fractions of a second might be getting stored as a separate integer, wherein during the encoding the left-leading zeroes get truncated.

@timronan
Copy link
Collaborator Author

timronan commented Jul 9, 2024

Thanks for reporting this @Stephen-Veitch.

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