kirenbahm / ENP_TOOLS

Scripts used to pre- and post-process data
0 stars 2 forks source link

Remove hardcoding of datatype and unit #40

Closed kirenbahm closed 3 years ago

kirenbahm commented 4 years ago

Datatype and unit are hardcoded to discharge and cfs in the PreProcessing script, but should be set to whatever the datatype and units are of the original file. You should also check other variables that could be hardcoded, like equidistant or non-equidistant axis, etc.

From D05_BC1D_Flow_Fill_Gaps.m:

       %save item metadata
        myStationName = char([station_name]);
        item1.Set(myStationName, DHI.Generic.MikeZero.eumQuantity...
            (eumItem.eumIDischarge,eumUnit.eumUft3PerSec), dfsDoubleOrFloat);
        item1.SetValueType(DataValueType.Instantaneous);