Commit 32878170 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

changed GRIB1 default packing type of spherical harmonics to complex

parent c1d65e58
2010-02-18 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* using CDI library version 1.4.3
* changed GRIB1 default packing type of spherical harmonics to complex
* Version 1.4.3 released
2010-02-08 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
* using CDI library version 1.4.2
* Added new module Gridboxstat (testversion)
* Version 1.4.2 released
......
......@@ -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-2009 Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-2010 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
......@@ -165,6 +165,7 @@ static int import_e5ml(const char *filename, VAR **vars)
nsp = (int) dimlen;
gridIDsp = gridCreate(GRID_SPECTRAL, nsp*2);
gridDefComplexPacking(gridIDsp, 1);
nce(nc_inq_dimid(nc_file_id, "nlev", &nc_dim_id));
nce(nc_inq_dimlen(nc_file_id, nc_dim_id, &dimlen));
......
......@@ -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-2009 Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-2010 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
......@@ -128,6 +128,7 @@ void *Spectral(void *argument)
{
gridIDsp = gridCreate(GRID_SPECTRAL, (ntr+1)*(ntr+2));
gridDefTrunc(gridIDsp, ntr);
gridDefComplexPacking(gridIDsp, 1);
}
}
......@@ -193,6 +194,7 @@ void *Spectral(void *argument)
int nsp = (ntr+1)*(ntr+2);
gridIDsp = gridCreate(GRID_SPECTRAL, nsp);
gridDefTrunc(gridIDsp, ntr);
gridDefComplexPacking(gridIDsp, 1);
}
else
cdoAbort("No spectral data found!");
......
......@@ -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-2010 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
......@@ -178,6 +178,7 @@ void *Wind(void *argument)
{
gridIDsp = gridCreate(GRID_SPECTRAL, (ntr+1)*(ntr+2));
gridDefTrunc(gridIDsp, ntr);
gridDefComplexPacking(gridIDsp, 1);
}
}
......
......@@ -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-2009 Uwe Schulzweida, Uwe.Schulzweida@zmaw.de
Copyright (C) 2003-2010 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
......@@ -65,6 +65,7 @@ void gridInit(grid_t *grid)
grid->size = 0;
grid->xsize = 0;
grid->ysize = 0;
grid->lcomplex = 1;
grid->xpole = 0;
grid->ypole = 0;
grid->prec = 0;
......@@ -410,6 +411,8 @@ int gridDefine(grid_t grid)
gridDefPrec(gridID, grid.prec);
gridDefTrunc(gridID, grid.ntr);
gridDefComplexPacking(gridID, grid.lcomplex);
break;
}
......
......@@ -41,6 +41,7 @@ typedef struct {
int size;
int xsize;
int ysize;
int lcomplex;
int def_xfirst;
int def_yfirst;
int def_xlast;
......
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