Commit 0b50af7c authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Implementation of option --reduce_dim for x/y axis.

parent 87543893
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
2017-08-31 Uwe Schulzweida 2017-08-31 Uwe Schulzweida
* Implementation of option --reduce_dim for time axis * Implementation of option --reduce_dim for time axis
* Implementation of option --reduce_dim for x/y axis
2017-08-30 Uwe Schulzweida 2017-08-30 Uwe Schulzweida
......
...@@ -145,22 +145,13 @@ void *Fldstat(void *argument) ...@@ -145,22 +145,13 @@ void *Fldstat(void *argument)
int taxisID2 = taxisDuplicate(taxisID1); int taxisID2 = taxisDuplicate(taxisID1);
vlistDefTaxis(vlistID2, taxisID2); vlistDefTaxis(vlistID2, taxisID2);
if ( CDO_Reduce_Dim ) double slon = 0;
{ double slat = 0;
gridID2 = gridCreate(GRID_GENERIC, 1); gridID2 = gridCreate(GRID_LONLAT, 1);
gridDefXsize(gridID2, 0); gridDefXsize(gridID2, 1);
gridDefYsize(gridID2, 0); gridDefYsize(gridID2, 1);
} gridDefXvals(gridID2, &slon);
else gridDefYvals(gridID2, &slat);
{
double slon = 0;
double slat = 0;
gridID2 = gridCreate(GRID_LONLAT, 1);
gridDefXsize(gridID2, 1);
gridDefYsize(gridID2, 1);
gridDefXvals(gridID2, &slon);
gridDefYvals(gridID2, &slat);
}
int ngrids = vlistNgrids(vlistID1); int ngrids = vlistNgrids(vlistID1);
......
...@@ -123,22 +123,13 @@ void *Fldstat2(void *argument) ...@@ -123,22 +123,13 @@ void *Fldstat2(void *argument)
int taxisID3 = taxisDuplicate(taxisID1); int taxisID3 = taxisDuplicate(taxisID1);
vlistDefTaxis(vlistID3, taxisID3); vlistDefTaxis(vlistID3, taxisID3);
if ( CDO_Reduce_Dim ) double slon = 0;
{ double slat = 0;
gridID3 = gridCreate(GRID_GENERIC, 1); gridID3 = gridCreate(GRID_LONLAT, 1);
gridDefXsize(gridID3, 0); gridDefXsize(gridID3, 1);
gridDefYsize(gridID3, 0); gridDefYsize(gridID3, 1);
} gridDefXvals(gridID3, &slon);
else gridDefYvals(gridID3, &slat);
{
double slon = 0;
double slat = 0;
gridID3 = gridCreate(GRID_LONLAT, 1);
gridDefXsize(gridID3, 1);
gridDefYsize(gridID3, 1);
gridDefXvals(gridID3, &slon);
gridDefYvals(gridID3, &slat);
}
int ngrids = vlistNgrids(vlistID1); int ngrids = vlistNgrids(vlistID1);
......
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