Skip to content

fix bad timestamp in model .out file #359

@rburghol

Description

@rburghol

A model output timestamp column was for some reason mangled, which caused the hydrotools routines om_get_rundata to throw an error when creating a zoo series, and to just be a pain in the ass. However, the "thisdate" column was in OK shape, so I worked it by editing it in R as follows:

#$ R
dat <- read.table('/media/NAS/omdata/proj3/out/runlog2.219565.log', header = TRUE, sep = ",")
dat$timestamp <- as.integer(as.POSIXct(dat$thisdate,origin="1970-01-01"))
write.csv(x = dat,file = '/media/NAS/omdata/proj3/out/runlog2.219565.log',col.names=TRUE,sep=",")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions