tg12 / script-toolbox Goto Github PK
View Code? Open in Web Editor NEWThis repository contains a collection of scripts and tools that I have written to solve various problems that I have come across.
Home Page: http://www.jamessawyer.co.uk/
This repository contains a collection of scripts and tools that I have written to solve various problems that I have come across.
Home Page: http://www.jamessawyer.co.uk/
def gps_to_decimal(coord, ref):
"""
Converts GPS coordinates to decimal degrees.
Args:
coord (tuple): A tuple containing the GPS coordinates.
ref (str): The reference direction (e.g., N, S, E, W).
Returns:
float: The GPS coordinates in decimal degrees.
"""
decimal = coord[0][0] / coord[0][1] + coord[1][0] / (60 * coord[1][1]) + coord[2][0] / (3600 * coord[2][1])
if ref in ['S', 'W']:
decimal *= -1
return decimal
If I change S to N and W to E the results are the same, positive Coords rather than negative for N or E.
I added gps lat lon ref to see if it was reading, it returns b'N' and b'W'
'gps_latitude': gps_latitude_decimal,
'gps_latitude_ref': gps_latitude_ref,
'gps_longitude': gps_longitude_decimal,
'gps_longitude_ref': gps_longitude_ref,
Are you seeing same behavior?
Hello,
I want to use this to archive my photo's but there are some errors in the code.
First the "location.address" throws an error that address is not a member of location.
and the lambda in metadata_df is also throwing an error.
Is there some way to solve this?
Kind Regards,
Dennis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.