You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v492b- proper diversion of delivered demand; FEWS revisions for management
support for return flow to other basin
new routine ParseNetCDFManagementFile() (ParseFEWSRunInfo.cpp)
new command :FEWSManagmentInfoFile (ParseInput.cpp;RavenInclude.h)
support for :LookupTableFromCSV (ParseManagementFile.cpp)
support for :DEclareWorkflowVariable (ParseManagemetnFile.cpp)
// .The state variable corresponding to the model start time will be used for initialization of flow/stage; all other values in the time vector are ignored
549
549
// The naming convention of this attribute is one of: {QOUT, STAGE, }
/// \brief Parses Deltares FEWS Management Time series file
714
+
///
715
+
/// \param *&pModel [out] Reference to model object
716
+
/// \param &Options [out] Global model options information
717
+
/// \return True if operation is successful
718
+
//
719
+
// The management update file includes:
720
+
// 1) 'time' dimensions
721
+
// 2) One or more vectors of size[1:time]
722
+
723
+
// .The state variable corresponding to the model start time will be used for initialization of flow/stage; all other values in the time vector are ignored
724
+
// The naming convention of each vector is : {UserTimeSeries_NAME}
string warn = "ParseNetCDFFlowStateFile: Model start time ("+tt.date_string+""+ DecDaysToHours(Options.julian_start_day)+") does not occur during time window provided in NetCDF state update file";
759
+
ExitGracefully(warn.c_str(), BAD_DATA);
760
+
returnfalse;
761
+
}
762
+
763
+
// Get Names of all UserTimeSeries_ vectors in model
Copy file name to clipboardExpand all lines: src/TimeSeries.cpp
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1355,7 +1355,7 @@ CTimeSeries **CTimeSeries::ParseEnsimTb0(string filename, int &nTS, forcing_type
1355
1355
/// \param loc_ID [in] location information about timeseries, e.g. subbasin ID or HRU ID
1356
1356
/// \param FileNameNC [in] file name of NetCDF
1357
1357
/// \param VarNameNC [in] name of variable in NetCDF
1358
-
/// \param DimNamesNC_stations [in] name of station dimension (optional; default=None)
1358
+
/// \param DimNamesNC_stations [in] name of station dimension (optional; default="None")
1359
1359
/// \param DimNamesNC_time [in] name of time dimension (mandatory)
1360
1360
/// \param StationIdx [in] idx of station to be read (or -1 if to be determined from FEWS station_id variable via FROM_STATION_VAR) (only used if DimNamesNC:stations not None)
1361
1361
/// \param TimeShift [in] time shift of data (fractional day by which read data should be shifted)
@@ -1364,7 +1364,9 @@ CTimeSeries **CTimeSeries::ParseEnsimTb0(string filename, int &nTS, forcing_type
1364
1364
/// \return array (size nTS) of pointers to time series
0 commit comments