Jump to content


  • Content Count

  • Joined

  • Last visited

About Phillip.Ryan@bmtwbm.com.au

  • Rank

Profile Information

  • Gender
  1. For those that are interested, the .2dm file format is described on the Aquaveo wiki here: http://www.xmswiki.com/xms/SMS:2D_Mesh_Files_*.2dm Phil
  2. Question: Is there a way to post-process the point outputs after running a simulation. Is it also possible to extract velocity direction? Answer: To extract data at point locations, you have two options: Define points prior to the simulation. A output points file is defined which, this contains 3 columns (x coordinate, y coordinate and point ID). In the example below, the water levels (h), velocity (v) and depth (d) were output at every 10 seconds. For the velocity output, both the x direction and y direction components are output . The point output allows you to extract results more frequently than the map output if desired. This is the preferred approach. output == points output points file == ..\geo\Calib_points_v2.csv output parameters == h,v,d output interval == 10. end output 2. After the model has been simulated, it is possible to use SMS to extract the results at points. However, you are limited to the 2D map output interval, for file size reasons, this may be less frequent than you would like, however, it can be done! To do this you will need to load the results into SMS and then create (or convert the points) into a map layer. There is a bit more work in extracting the data once the model has been simulated, to do this follow the instructions below: Right click on the “Map Data” and choose, “New Coverage”. Set the type to “Observation” Select “Create Feature Point” Digitise the points in the map window. To extract the information, select Display >> Plot Wizard. Choose timeseries. Select the points and the datasets you wish to view: To export the data you can right click on the chart and choose “Export/Print”. Export to text / data and set a file name, the extension can be either .dat or .txt. You have numerous options, for exporting to tables or lists and also on the delimiter. You can set these to your preferred option. If you choose comma delimited, the file extension can be changed from .txt to .csv. If you want to extract the velocity directions, you will need to convert this dataset, before extracting the charts. To do this: select the velocity results and then select “Data >> Data Set Toolbox”. You can set if you would like to convert to x and y or magnitude and direction. This will give two new datasets: You can now plot / extract timeseries for these in the same method outlined above.
  3. 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
  • Create New...