WSL/SLF GitLab Repository

Commit 6aeede37 authored by Thomas Egger's avatar Thomas Egger
Browse files

Bugfix: The buffer was filled with all data before the date requested, it...

Bugfix: The buffer was filled with all data before the date requested, it should only fill the buffer with data between dateStart and dateEnd
parent 112e3cad
......@@ -389,9 +389,10 @@ void SMETIO::readDataBinary(const char&, const std::string&, const double& timez
//cout << "===" << endl;
//cout << sd << endl;
//cout << md.date.toString(Date::ISO) << endl;
vecMeteo.push_back(md);
vecStation.push_back(tmpsd);
if (md.date >= dateStart){
vecMeteo.push_back(md);
vecStation.push_back(tmpsd);
}
}
}
......@@ -453,8 +454,10 @@ void SMETIO::readDataAscii(const char& eoln, const std::string& filename, const
if (poscounter == 3)
tmpsd.position.setLatLon(lat, lon, alt);
vecMeteo.push_back(md);
vecStation.push_back(tmpsd);
if (md.date >= dateStart){
vecMeteo.push_back(md);
vecStation.push_back(tmpsd);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment