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: ...@@ -224,12 +224,13 @@ class FileExtractor:
# format date and time to "May 09 2011 16:33:53" # format date and time to "May 09 2011 16:33:53"
dateTime = "%s/%s/%s %s:%s:%s" % (day, month, year, hour, minute, second) 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 conversion to "09/05/2011 16:33:53"
# dateTime = "%s" % \ dateTime = "%s" % \
# (dt.strptime(dateTime, "%d/%m/%Y %H:%M:%S").strftime("%d/%m/%Y %H:%M:%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" # # conversion to "20110509163353"
# epic_date = "%s" % \ # epic_date = "%s" % \
# (dt.strptime(dateTime, "%d/%m/%Y %H:%M:%S").strftime("%Y%m%d%H%M%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" ...@@ -71,12 +71,12 @@ comment = "Extract from .edf files"
cruisePrefix = "fr29" cruisePrefix = "fr29"
stationPrefixLength = 3 stationPrefixLength = 3
separator = "," separator = ","
typeInstrument = "SBE21"
instrumentNumber = "3199"
acquisitionSoftware = "COLCOR" acquisitionSoftware = "COLCOR"
acquisitionVersion = "" acquisitionVersion = ""
processingSoftware = "" processingSoftware = ""
processingVersion = "" processingVersion = ""
type = "SBE21"
sn = 3199
calDate = "14/01/2019" calDate = "14/01/2019"
externalType = "SBE3S" externalType = "SBE3S"
externalSn = 4074 externalSn = 4074
...@@ -88,16 +88,12 @@ comment = "Extract from .colcor files" ...@@ -88,16 +88,12 @@ comment = "Extract from .colcor files"
[ladcp] [ladcp]
cruisePrefix = "fr29" cruisePrefix = "fr29"
stationPrefixLength = 3 stationPrefixLength = 3
typeInstrument = "LADCP 150/300" typeInstrument = "LADCP WH150/WH300"
instrumentNumber = "12817" instrumentNumber = "24543/24085"
acquisitionSoftware = "BBTALK" acquisitionSoftware = "BBTALK"
acquisitionVersion = 3.04 acquisitionVersion = 3.04
processingSoftware = "MATLAB-VISBECK" processingSoftware = "MATLAB-VISBECK"
processingVersion = "10.16.2" 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" title_summary = "IFM-GEOMAR/LDEO Matlab LADCP-Processing system adapted by FM/PR/JG"
comment = "Extract from .lad files" comment = "Extract from .lad files"
......
...@@ -6,7 +6,7 @@ from datetime import datetime ...@@ -6,7 +6,7 @@ from datetime import datetime
import julian import julian
JULIAN = 33282 JULIAN = 33282
DEGREE = u"\u00B0" DEGREE = u"\u00B0" # u"\N{DEGREE SIGN}"
#DEGREE = 176 #DEGREE = 176
def dateTime2julian(month, day, year, hour, minute, second): 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