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

Feature suggestion: adding TIFFTAG_DATETIME to .tif outputs #1793

Closed
stephenwinn16 opened this issue Aug 13, 2024 · 2 comments
Closed

Feature suggestion: adding TIFFTAG_DATETIME to .tif outputs #1793

stephenwinn16 opened this issue Aug 13, 2024 · 2 comments

Comments

@stephenwinn16
Copy link
Contributor

Hi,

I'm looking into adding some metadata to the .tif outputs of ODM such that I have access to this information in a self-contained manner. Specifically, I would like the file metadata to include some estimate of the capture time (e.g. the mean of capture start/capture end times). I see here that geotiff files support the TIFFTAG_DATETIME tag (I use this info to e.g. get the capture time of satellite data I'm working with). Do you think it would be a case of adding an -mo argument to the GeoTIFF creation stage e.g. as is done below for the -co arguments?

kwargs['vars'] = ' '.join(['-co %s=%s' % (k, orthophoto_vars[k]) for k in orthophoto_vars])

As well as something similar for the DSM/DTM creation steps if they happen. I'm happy to take a shot at adding this to the source code if I'm on the right track here.

@pierotofy
Copy link
Member

I think that could be useful and a pull request would be most welcome.

@stephenwinn16
Copy link
Contributor Author

Implemented in PR #1797.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants