Expedition Expedition Navigation Software

You are not logged in. Would you like to login or register?



4/22/2022 11:55 am  #1


logfile fields

I'm trying to convert some historical logfiles to the Expedition format for further analysis - two questions:
(a) what format are the timestamps? They look like floating point numbers but aren't Unix timestamps (seconds since January 1, 1970)
(b) When reading logfiles does Expedition parse the header line to determine the set of fields ensuing or does it used a fixed set? I'm using the set from an example file, but there are many, many unused fields.

 

 

4/22/2022 12:35 pm  #2


Re: logfile fields

It is a Microsoft DATE type. It was selected many years ago as it couldnt' be easily used with Excel etc.

It doesn't look at the header. The columns are currently fixed, as in the UserChannels.h file.

Last edited by Nick (4/22/2022 1:08 pm)

 

4/22/2022 1:01 pm  #3


Re: logfile fields

Wow that did it - 2019 data is playing back with databoxes and everything. Thanks!

Google-programming (aka programming by cliche) for converting Python datetime objects:

def excel_date(date1):
    temp = datetime.datetime(1899, 12, 30)    # Note, not 31st Dec but 30th!
    delta = date1 - temp
    return float(delta.days) + (float(delta.seconds) / 86400)

     Thread Starter
 

Board footera

 

Powered by Boardhost. Create a Free Forum


Interested in advertising here? Over a thousand active navigators and Expedition users visit this forum. Click here to contact the administrator.