Skip to content
Snippets Groups Projects
Commit d532e0fd authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

update construct datetime object for xbt and ladcp

parent 5f74d24d
No related branches found
No related tags found
No related merge requests found
......@@ -224,12 +224,13 @@ class FileExtractor:
# format date and time to "May 09 2011 16:33:53"
dateTime = "%s/%s/%s %s:%s:%s" % (day, month, year, hour, minute, second)
# set datetime object
dt = dt.strptime(dateTime, "%d/%b/%Y %H:%M:%S")
# # dateTime conversion to "09/05/2011 16:33:53"
# dateTime = "%s" % \
# (dt.strptime(dateTime, "%d/%m/%Y %H:%M:%S").strftime("%d/%m/%Y %H:%M:%S"))
# dateTime conversion to "09/05/2011 16:33:53"
dateTime = "%s" % \
(dt.strptime(dateTime, "%d/%m/%Y %H:%M:%S").strftime("%d/%m/%Y %H:%M:%S"))
# set datetime object
dt = dt.strptime(dateTime, "%d/%m/%Y %H:%M:%S")
# # conversion to "20110509163353"
# epic_date = "%s" % \
# (dt.strptime(dateTime, "%d/%m/%Y %H:%M:%S").strftime("%Y%m%d%H%M%S"))
......
......@@ -71,12 +71,12 @@ comment = "Extract from .edf files"
cruisePrefix = "fr29"
stationPrefixLength = 3
separator = ","
typeInstrument = "SBE21"
instrumentNumber = "3199"
acquisitionSoftware = "COLCOR"
acquisitionVersion = ""
processingSoftware = ""
processingVersion = ""
type = "SBE21"
sn = 3199
calDate = "14/01/2019"
externalType = "SBE3S"
externalSn = 4074
......@@ -88,16 +88,12 @@ comment = "Extract from .colcor files"
[ladcp]
cruisePrefix = "fr29"
stationPrefixLength = 3
typeInstrument = "LADCP 150/300"
instrumentNumber = "12817"
typeInstrument = "LADCP WH150/WH300"
instrumentNumber = "24543/24085"
acquisitionSoftware = "BBTALK"
acquisitionVersion = 3.04
processingSoftware = "MATLAB-VISBECK"
processingVersion = "10.16.2"
upType = "WH300"
upSn = "24085"
downType = "WH150"
downSn = "24543"
title_summary = "IFM-GEOMAR/LDEO Matlab LADCP-Processing system adapted by FM/PR/JG"
comment = "Extract from .lad files"
......
......@@ -6,7 +6,7 @@ from datetime import datetime
import julian
JULIAN = 33282
DEGREE = u"\u00B0"
DEGREE = u"\u00B0" # u"\N{DEGREE SIGN}"
#DEGREE = 176
def dateTime2julian(month, day, year, hour, minute, second):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment