Compare commits
3 Commits
main
...
628088918b
Author | SHA1 | Date | |
---|---|---|---|
628088918b | |||
e0e7dbd0e5 | |||
c9620394de |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ testsource
|
||||
testdest
|
||||
__pycache__
|
||||
Pipfile.lock
|
||||
.vscode
|
||||
|
5
Pipfile
5
Pipfile
@@ -4,11 +4,12 @@ url = "https://pypi.org/simple"
|
||||
verify_ssl = true
|
||||
|
||||
[dev-packages]
|
||||
pylint = "*"
|
||||
|
||||
[packages]
|
||||
pytz = "*"
|
||||
gpxpy = "*"
|
||||
py3exiv2 = "*"
|
||||
|
||||
[requires]
|
||||
python_version = "3.7"
|
||||
# [requires]
|
||||
# python_version = "3.8"
|
||||
|
11
functions.py
11
functions.py
@@ -11,12 +11,12 @@ import pyexiv2
|
||||
|
||||
class Radiation:
|
||||
'''
|
||||
Reiceives values vom CSV file and creates a list of the relevant data
|
||||
Receives values vom CSV file and creates a list of the relevant data
|
||||
|
||||
Arguments:
|
||||
timestamp: Date/time string from CSV as string
|
||||
radiation: Radiation from CSV in CP/M as float
|
||||
local_timezone: timezone for timezone-unware CSV / Photo, if GPX is timezone aware
|
||||
local_timezone: timezone for timezone-unaware CSV / Photo, if GPX is timezone aware
|
||||
si_factor: CP/M to (µS/h) conversion factor - specific to GMC-tube
|
||||
|
||||
Returns:
|
||||
@@ -48,9 +48,9 @@ class Photo:
|
||||
|
||||
Arguments:
|
||||
photo: source photo ()
|
||||
local_timezone: timezone for timezone-unware CSV / Photo, if GPX is timezone aware
|
||||
local_timezone: timezone for timezone-unaware CSV / Photo, if GPX is timezone aware
|
||||
dest_dir: destination directory where the photo is going to be copied to.
|
||||
dry_run: whether to acutally write (True / False)
|
||||
dry_run: whether to actually write (True / False)
|
||||
|
||||
Returns:
|
||||
get_date: timestamp of photo als datetime object
|
||||
@@ -179,7 +179,7 @@ class Exif:
|
||||
latitude: latitude as float
|
||||
longitude: longitude as float
|
||||
elevation: elevation as float
|
||||
dry_run: whether to acutally write (True / False)
|
||||
dry_run: whether to actually write (True / False)
|
||||
|
||||
Returns:
|
||||
Latitude / Longitude: in degrees
|
||||
@@ -298,4 +298,3 @@ class Output:
|
||||
|
||||
# Return data string
|
||||
return data
|
||||
|
||||
|
Reference in New Issue
Block a user