Record Type Error

You may need to edit your Jython scripts if you get an error such as this:


What happened? Starting in CWMS 3.4, all data for a forecast is being stored in DSS 7 instead of DSS 6. DSS 7 doesn't allow you to mix double precision and single precision within the same time-series record.

To get around this error, you will need to get all the data in the same record type. Since HEC-ResSim defaults to a record type of 105 (regular time series, double precision)/115 (irregular time series, double precision), it is suggested to ensure all time series data is in one of these two record types. An example script to convert existing time series data to a record type of 105 or 115 can be found on the following GitHub link: https://github.com/HydrologicEngineeringCenter/DSSVue-Example-Scripts/blob/master/src/DataType.py

Within your script that is saving data to a forecast.dss file, you will also need to add a quick call to make sure it is being pushed as a record type of 105 or 115. 

Tsc.storedAsdoubles = True #This stores "Tsc" as a double (record type 105 or 115)
CODE

Once the data has been converted to double (using the script in GitHub) and you verify that data being stored is as a double (above code block), you should not have issues with this issue in transitioning to HEC-DSS  7 from HEC-DSS 6.