|
|
@ -25,8 +25,8 @@ class LayeredDataZ: public NCFuncs |
|
|
|
Error ReadTimes(const MString& tname) |
|
|
|
Error ReadTimes(const MString& tname) |
|
|
|
{ |
|
|
|
{ |
|
|
|
static const MString pref = "LayeredDataZ::NC::ReadTimes"; |
|
|
|
static const MString pref = "LayeredDataZ::NC::ReadTimes"; |
|
|
|
if(!*this) return Error(pref, "Dataset not open"); |
|
|
|
if(!*this) return Error(pref, "Dataset not open"); |
|
|
|
std::vector<int8> time; |
|
|
|
std::vector<double> time; |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
auto ret = Read(tname, time); |
|
|
|
auto ret = Read(tname, time); |
|
|
@ -46,7 +46,7 @@ class LayeredDataZ: public NCFuncs |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
times.resize(time.size()); |
|
|
|
times.resize(time.size()); |
|
|
|
for(size_t i = 0; i < times.size(); i++) times[i] = refdate + static_cast<time_t>(time[i]) * step; |
|
|
|
for(size_t i = 0; i < time.size(); i++) times[i] = refdate + static_cast<time_t>(time[i] * step); |
|
|
|
return Error(); |
|
|
|
return Error(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|