Jump to content
TUFLOW FV
Sign in to follow this  
Phillip.Ryan@bmtwbm.com.au

Isodate format

Recommended Posts

Question:

I am trying to run a model in the isodate format and get the following error when reading a boundary .csv file:

time format must be "dd/mm/yyyy HH:MM:SS" (or some truncation)
ERROR:fvdomain_construct:init_bc:fvbc_construct:init_bc_csv:csvread_r:error reading

 

The data should be in the correct format.  The first few lines of my .csv are below.  What will fix the issue?

ISOTime,Flow,Salinity,Temperature
01/11/2012 0:00,0.12781,0.36,15.168
01/11/2012 0:06,0.12781,0.36,15.168
01/11/2012 0:12,0.12781,0.36,15.168

 

Answer:

The isodate should have leading zeroes for all two digit fields (day, month, hours, minutes and seconds).  In the example above the date component is correct, however, the hours are missing the leading zero.

The first line:

01/11/2012 0:00,0.12781,0.36,15.168

 

Should be:

01/11/2012 00:00,0.12781,0.36,15.168

 

You can use a custom format in excel to specify the leading zeros, I use:

dd/mm/yyyy hh:mm

 

Phil

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...