Hi all,
I am trying to create Selafin objects for a grid convergence test and hitting snags all along the way.
Firstly, I tried to create meshes in 3.3.4 but for some reason, possibly due to the coordinate system (can't remember what it is off the top of my head), Y values in the .t3s file are truncated to the nearest metre. As my mesh resolution is much smaller than metres, this is quite problematic. So, I upgraded to 3.12.6 in order to hopefully circumvent this issue, and so far it works - no truncating issues.
The problem I am now facing is that whenever I create a variable in a new Selafin object, the attribute data is and remains -999 for every line of the data. The mesh XY values are correct, but the Value field is -999 and stubbornly refuses to stay changed. For instance, I might create a BOTTOM variable and base it off of a working .t3s file. When I run the 2D Interpolator, it says it's worked successfully - and indeed, if I go into the Properties, it shows the expected elevations (ranging between 216 and 222 m approximately). This step works for any other mesh outside a Selafin variable with no issues, permanently adding the new elevation. However, if I then save the Selafin, or go into the ColourScale pane and press "reset" to see the updated values, all the elevation data is wiped to -999 !
This issue extends to other variables, like BOTTOM FRICTION, in similar ways. If I impose a constant value of 0.035 for BOTTOM FRICTION, whenever I go to save or view the colour scale, all the data for the Value variable is wiped to -999. Honestly, I have no idea what to do or what can be causing this.
I have not encountered this issue in BK 3.3.4 before; under the same conditions, while the mesh is still truncated in the Y direction, the BOTTOM interpolation elevation values are saved and I am able to view them. No matter what I do, I can't seem to get a working Selafin object!..
BK's RAM usage is about 700 MB as I try to create a meaningful BOTTOM variable, so I doubt it has anything to do with a lack of space.
I have briefly looked at using pputils to write the BOTTOM / BOTTOM FRICTION variables to the Selafin, but I'm thinking there must be an easier way to do this.
Please let me know if I should submit a bug report on CHyMS and/or provide my files (I'd rather not post them publicly and the .xyz is fairly big), I will gladly do so if it can help. Otherwise, please let me know if you have any hints for a solution to this apparently new problem (again, the -999 problem hasn't happened to me in 3.3.4).
Kind regards,
André Renault