WSL/SLF GitLab Repository

Commit b4182991 authored by Thomas Egger's avatar Thomas Egger
Browse files

Small bugfixes in the plugins ARPSIO, SMETIO, PGMIO

parent 6e7e1378
......@@ -288,8 +288,8 @@ void ARPSIO::openGridFile(const std::string& _filename)
}
//get llcorner
cfg.getValue("ARPS_X", "Input", xcoord, 0);
cfg.getValue("ARPS_Y", "Input", ycoord, 0);
cfg.getValue("ARPS_X", "Input", xcoord);
cfg.getValue("ARPS_Y", "Input", ycoord);
//come back to the begining of the file
rewind(fin);
......
......@@ -118,11 +118,11 @@ void PGMIO::read2DGrid(Grid2DObject& grid_out, const std::string& filename)
}
IOUtils::convertString(nr_colors, tmpvec[0]);
cfg.getValue("PGM_XCOORD", "Input", xllcorner,0);
cfg.getValue("PGM_YCOORD", "Input", yllcorner,0);
cfg.getValue("PGM_CELLSIZE", "Input", cellsize,0);
cfg.getValue("PGM_MIN", "Input", val_min,0);
cfg.getValue("PGM_MAX", "Input", val_max,0);
cfg.getValue("PGM_XCOORD", "Input", xllcorner);
cfg.getValue("PGM_YCOORD", "Input", yllcorner);
cfg.getValue("PGM_CELLSIZE", "Input", cellsize);
cfg.getValue("PGM_MIN", "Input", val_min);
cfg.getValue("PGM_MAX", "Input", val_max);
Coords location(coordin, coordinparam);
location.setXY(xllcorner, yllcorner, IOUtils::nodata);
......
......@@ -355,7 +355,7 @@ void SMETIO::readDataBinary(const char&, const std::string&, const double& timez
if (md.date < dateStart)
continue;
if (md.date > dateEnd)
break;
return;
} else {
float tmpval;
fin.read(reinterpret_cast < char * > (&tmpval), sizeof(float));
......@@ -428,7 +428,7 @@ void SMETIO::readDataAscii(const char& eoln, const std::string& filename, const
if (md.date < dateStart)
continue;
if (md.date > dateEnd)
break;
return;
} else if (vecDataSequence[ii] == "latitude"){
if (!IOUtils::convertString(lat, tmpvec[ii]))
......
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