Commit 3d47d7ef authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Fillmiss: added support for curvilinear grid

parent 1d51dad8
......@@ -2,7 +2,7 @@
This file is part of CDO. CDO is a collection of Operators to
manipulate and analyse Climate model Data.
Copyright (C) 2003-2008 Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-2009 Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
See COPYING file for copying and redistribution conditions.
This program is free software; you can redistribute it and/or modify
......
......@@ -103,7 +103,7 @@ void fillmiss(FIELD *field1, FIELD *field2, int nfill)
if ( !DBL_IS_EQUAL(matrix1[io][i], missval) )
{ ko = j - io; xo = matrix1[io][i]; break; }
/* printf("%d %d %d %d %d %d %g %g %g %g\n", j,i,kr,kl,ku,ko,xr,xl,xu,xo);*/
/* printf("%d %d %d %d %d %d %g %g %g %g\n", j,i,kr,kl,ku,ko,xr,xl,xu,xo);*/
kh = kl + kr;
kv = ko + ku;
......@@ -186,9 +186,9 @@ void *Fillmiss(void *argument)
{
gridID1 = vlistGrid(vlistID1, index);
if ( gridInqType(gridID1) != GRID_LONLAT &&
gridInqType(gridID1) != GRID_GAUSSIAN )
cdoAbort("Interpolation of %s data failed!", gridNamePtr(gridInqType(gridID1)) );
if ( gridInqType(gridID1) == GRID_GME ||
gridInqType(gridID1) == GRID_CELL )
cdoAbort("Interpolation of %s data unsupported!", gridNamePtr(gridInqType(gridID1)) );
}
streamID2 = streamOpenWrite(cdoStreamName(1), cdoFiletype());
......
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