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

get timeStamp field #64

Open
Bolhan opened this issue Jul 17, 2024 · 3 comments
Open

get timeStamp field #64

Bolhan opened this issue Jul 17, 2024 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Bolhan
Copy link

Bolhan commented Jul 17, 2024

I do work daily with e57 files containing the timestamp field. unfortunately, the latter is not supported.

Is there any planning upgrade that supports this timeStamp field reading?

@dancergraham
Copy link
Collaborator

Hello,

Can you show me which timestamp you are looking for? Do you have another way to get it manually ? There are no specific plans to add this but it sounds useful

@dancergraham dancergraham added enhancement New feature or request help wanted Extra attention is needed labels Jul 17, 2024
@dancergraham
Copy link
Collaborator

I am able to get the time stamp using my other e57 library something like this:
python -m pip install e57

and then

from datetime import datetime
import re

import e57

xml = e57.raw_xml(r".bunnyDouble.e57")
dt = re.search(r'<dateTimeValue type="Float">(.*)</dateTimeValue>', xml).group(1)
dt = datetime.fromtimestamp(float(dt))

@jamesfisher-geo
Copy link

This works for me when reading the images:

image2D['acquisitionDateTime']["dateTimeValue"].value()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants