Commit 439766dc authored by Matthias Rüster's avatar Matthias Rüster
Browse files

Fix no data value for arrival times output

parent a01f4ca3
......@@ -119,7 +119,7 @@ int ewDump2D()
FILE *fp;
short nOutI,nOutJ;
int i,j,m;
float ftmp;
float ftmp,ftmpcalc;
double dtmp,lonOutMin,lonOutMax,latOutMin,latOutMax;
char record[128];
......@@ -164,8 +164,14 @@ int ewDump2D()
dtmp = 1.; fwrite( &dtmp, sizeof(double), 1, fp );
for( j=Jmin; j<=Jmax; j++ ) {
for( i=Imin; i<=Imax; i++ ) {
ftmp = (float)Node(idx(j,i), iTime) / 60;
fwrite( &ftmp, sizeof(float), 1, fp );
ftmp = (float)Node(idx(j,i), iTime);
if (ftmp == -1.0f) {
// no data value
ftmpcalc = -1.0f;
} else {
ftmpcalc = ftmp / 60.0f;
}
fwrite( &ftmpcalc, sizeof(float), 1, fp );
}
}
fclose( fp );
......
Markdown is supported
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