Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We start with loading the CSV file and determining the start date and time as before:

Code Block
languagepy
#The input file
dIn="result_tr"
inFile=dIn  & "/tr_r001.csv"

#Read table (CSV) data
tbl=read_table(table_filename: inFile,
    table_header_row: "2",
    table_meta_data_rows: "1")

#Read runDate from table header
runDate=date(metadata_value(tbl,"runDate"))
runTime=number(metadata_value(tbl,"runTime"))
runDate=runDate + hour(runTime/10000)

...