Change outputformat when extracting gpslocation via exiftool

31 views
Skip to first unread message

Fredrik Harnevik

unread,
May 7, 2019, 2:37:04 PM5/7/19
to fits-users
Hi!

According to this link it's possible to change the output of the format when extracting the latitude and longitude:


Is that also possible to do when using fits? I've been trying out but don't seem to find a way.

BR,
Fredrik

Fredrik Harnevik

unread,
May 7, 2019, 2:55:42 PM5/7/19
to fits-users

fits.PNG

Perhaps I should add I'm using the jars within a separate java application. I've checked through the config xml's but haven't really found any where to edit the output format.

dne...@g.harvard.edu

unread,
May 7, 2019, 3:04:03 PM5/7/19
to fits-users
Exiftool is invoked from FITS via a Perl command in the class Exiftool.java  (edu.harvard.hul.ois.fits.tools.exiftool.Exiftool.java)

We have no experience with what you are trying to do. However, here is a suggestion to try. It looks like from the link you've provided you'd like to add parameters to the exiftool executable to modify the output format. In the class Exiftool.java around line 110 you will see the addition of parameters. Perhaps you could experiment by adding your desired parameters to this location of the code then rebuilding FITS. We would suggest forking the GitHub repository first.

Good luck and let us know how it goes.

Fredrik Harnevik

unread,
May 21, 2019, 3:09:45 AM5/21/19
to fits-users
Hi!

Found a really easy way to solve the problem without changing the source code.

According to this page you can add config parameters in a config file so we basically just added the parameter we needed and added the file to the home directory.

Regards,
Fredrik

David Neiman

unread,
May 21, 2019, 9:43:58 AM5/21/19
to fits-users
Excellent! Thank you for sharing this.
It turns out there is already a copy of example.config within FITS at tools/exiftool/perl/config_files/
Reply all
Reply to author
Forward
0 new messages