WSL/SLF GitLab Repository
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
snow-models
meteoio
Commits
b4182991
Commit
b4182991
authored
Aug 01, 2010
by
Thomas Egger
Browse files
Small bugfixes in the plugins ARPSIO, SMETIO, PGMIO
parent
6e7e1378
Changes
3
Hide whitespace changes
Inline
Side-by-side
meteoio/plugins/ARPSIO.cc
View file @
b4182991
...
...
@@ -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
);
...
...
meteoio/plugins/PGMIO.cc
View file @
b4182991
...
...
@@ -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
);
...
...
meteoio/plugins/SMETIO.cc
View file @
b4182991
...
...
@@ -355,7 +355,7 @@ void SMETIO::readDataBinary(const char&, const std::string&, const double& timez
if
(
md
.
date
<
dateStart
)
continue
;
if
(
md
.
date
>
dateEnd
)
b
re
ak
;
re
turn
;
}
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
)
b
re
ak
;
re
turn
;
}
else
if
(
vecDataSequence
[
ii
]
==
"latitude"
){
if
(
!
IOUtils
::
convertString
(
lat
,
tmpvec
[
ii
]))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment