Commit a5da5d52 authored by Timm Schoening's avatar Timm Schoening
Browse files

adding support for the OSIS underway API to publish position date

parent e8a70ae1
Pipeline #75247 passed with stages
in 57 seconds
...@@ -22,7 +22,7 @@ def uploadEventListToUnderway(csv_path:str,platform:str,user:str,api_url:str = m ...@@ -22,7 +22,7 @@ def uploadEventListToUnderway(csv_path:str,platform:str,user:str,api_url:str = m
dt = datetime.datetime.strptime(e+"+0000",miqtv.date_formats['dship']+"%z") dt = datetime.datetime.strptime(e+"+0000",miqtv.date_formats['dship']+"%z")
events[int(dt.timestamp())] = tmp_events[e]['Event'] events[int(dt.timestamp())] = tmp_events[e]['Event']
con = miqtsu.MarIQTConnector(api_url,platform,user,'MarIQTEvents') con = MarIQTConnector(api_url,platform,user,'MarIQTEvents')
con.set_positions(positions,events) con.set_positions(positions,events)
con.do_import() con.do_import()
......
""" A dictionary holding various header field names to store 4.5D navigation information in the form of: t (utc time), x (longitude), y (latitude), z (depth: below sea level), a (altitude: above seafloor)""" """ A dictionary holding various header field names to store 4.5D navigation information in the form of: t (utc time), x (longitude), y (latitude), z (depth: below sea level), a (altitude: above seafloor)"""
version = '0.2.5' version = '0.2.6'
apis = { apis = {
'osis_underway':'https://dm-apps-node0.geomar.de/osis-underway/api/v1/' 'osis_underway':'https://dm-apps-node0.geomar.de/osis-underway/api/v1/'
......
...@@ -4,7 +4,7 @@ from setuptools import setup ...@@ -4,7 +4,7 @@ from setuptools import setup
setup( setup(
name='mariqt', name='mariqt',
version='0.2.5', version='0.2.6',
description='The MareHub & Marine Imaging Community Image QA/QC and curation toolbox', description='The MareHub & Marine Imaging Community Image QA/QC and curation toolbox',
author='Timm Schoening', author='Timm Schoening',
author_email='tschoening@geomar.de', author_email='tschoening@geomar.de',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment