Commit f5cd1085 authored by Uwe Schulzweida's avatar Uwe Schulzweida

Version 1.0.8 released

parent 3f67e76f
......@@ -17,6 +17,7 @@
* remapcon: bug fix in intersection (s1 >= ZERO) [report: Joerg Wegner]
* remapcon: speed up by increasing BABY_STEP from 0.001 to 0.01
* interpolate: bug fix for north/south bounds > 90 or < -90 [report: Stefan Hagemann]
* gradsdes: bug fix for GRIB files with absolute path [report: Matthias Bchner]
* replace ztype2ltype by zaxis2ltype
* ltype2ztype: set default zaxis type to ZAXIS_GENERIC
* selltype, setltype, chltype: extent to all ltypes [request: Patrick Samuelsson]
......
CDO NEWS
--------
Version 1.0.8 (15 June 2007):
Version 1.0.8 (27 June 2007):
* New operators:
o Remap vertical hybrid level - remapeta
o 9 point smoothing - smooth9
o Mask region - maskregion
o Split selected time steps - splitsel
o Set range to constant - setrtoc, setrtoc2
o Histogram - histcount, histsum, histmean, histfreq
o Show GRIB level types - showltype
o Select GRIB level types - selltype
o Set GRIB level type - setltype
......
......@@ -67,7 +67,6 @@ Operator catalog:
Select selzaxisname Select zaxes by name
Select selltype Select GRIB level types
Select seltabnum Select parameter table numbers
Select selrec Select records
Seltime seltimestep Select time steps
Seltime seltime Select times
Seltime selhour Select hours
......
......@@ -91,7 +91,7 @@ case "${HOSTNAME}" in
xxf)
${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/solaris10 \
--with-netcdf=/sw/solaris10/netcdf-3.6.1 \
CC=cc CFLAGS="-g -mt -fast"
CC=cc CFLAGS="-g -mt -fast -xarch=v9"
;;
# sparc-sun-solaris2.9
executor | yang | yin)
......
No preview for this file type
......@@ -5,7 +5,7 @@
@Section = Selection
@Class = Selection
@Arguments = ifile ofile
@Operators = selcode delcode selname delname selstdname sellevel selgrid selgridname selzaxis selzaxisname selltype seltabnum selrec
@Operators = selcode delcode selname delname selstdname sellevel selgrid selgridname selzaxis selzaxisname selltype seltabnum
@BeginDescription
This module selects some fields from @file{ifile} and writes them to @file{ofile}.
......@@ -166,8 +166,8 @@ INTEGER Comma separated list of zaxis numbers
STRING Comma separated list of zaxis names
@Item = tabnums
INTEGER Comma separated list of parameter table numbers
@Item = records
INTEGER Comma separated list of records
@C @Item = records
@C INTEGER Comma separated list of records
@EndParameter
......
......@@ -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-2006 Uwe Schulzweida, schulzweida@dkrz.de
Copyright (C) 2003-2007 Uwe Schulzweida, schulzweida@dkrz.de
See COPYING file for copying and redistribution conditions.
This program is free software; you can redistribute it and/or modify
......@@ -197,7 +197,7 @@ void *Gradsdes(void *argument)
int vdate, vtime;
int ltype, code;
const char *datfile;
char ctlfile[1024];
char ctlfile[1024], *pctlfile;
int len;
char varname[256], varlongname[256], varunits[256];
FILE *gdp;
......@@ -561,10 +561,19 @@ void *Gradsdes(void *argument)
{
fprintf(gdp, "DTYPE GRIB\n");
len = (int) strlen(ctlfile);
strcpy(&ctlfile[len-4], ".gmp");
pctlfile = ctlfile;
len = (int) strlen(pctlfile);
strcpy(&pctlfile[len-4], ".gmp");
fprintf(gdp, "INDEX ^%s\n", ctlfile);
if ( datfile[0] == '/' )
fprintf(gdp, "INDEX %s\n", pctlfile);
else
{
pctlfile = strrchr(pctlfile, '/');
if ( pctlfile == 0 ) pctlfile = ctlfile;
else pctlfile++;
fprintf(gdp, "INDEX ^%s\n", pctlfile);
}
gridsize = vlistGridsizeMax(vlistID);
array = (double *) malloc(gridsize*sizeof(double));
......
......@@ -27,11 +27,12 @@
# include "config.h"
#endif
#include <string.h>
#include "cdi.h"
#include "cdo.h"
#include "cdo_int.h"
#include "pstream.h"
#include <string.h>
double arg2val(char *arg)
......@@ -49,7 +50,6 @@ void *Setrange(void *argument)
int streamID1, streamID2;
int gridsize;
int nrecs, recID;
int nvars;
int tsID;
int varID, levelID;
int vlistID1, vlistID2;
......@@ -57,10 +57,10 @@ void *Setrange(void *argument)
int i;
// double missval, missval2 = 0;
double missval;
double rconst = 0, rmin = 0, rmax = 0;
double rmin = 0, rmax = 0;
double *array;
int taxisID1, taxisID2;
double newval, newval2;
double newval = 0, newval2 = 0;
cdoInitialize(argument);
......
......@@ -327,8 +327,7 @@ static char *SplitselHelp[] = {
static char *SelectHelp[] = {
"NAME",
" selcode, delcode, selname, delname, selstdname, sellevel, selgrid, ",
" selgridname, selzaxis, selzaxisname, selltype, seltabnum, selrec - ",
" Select fields",
" selgridname, selzaxis, selzaxisname, selltype, seltabnum - Select fields",
"",
"SYNOPSIS",
" selcode,codes ifile ofile",
......@@ -343,7 +342,6 @@ static char *SelectHelp[] = {
" selzaxisname,zaxisnames ifile ofile",
" selltype,ltypes ifile ofile",
" seltabnum,tabnums ifile ofile",
" selrec,records ifile ofile",
"",
"DESCRIPTION",
" This module selects some fields from ifile and writes them to ofile.",
......@@ -374,9 +372,6 @@ static char *SelectHelp[] = {
" Selects all fields with GRIB level type in a user given list.",
" seltabnum Select parameter table numbers",
" Selects all fields with parameter table numbers in a user given list.",
" selrec Select records",
" Selects all fields with record numbers in a user given list.",
" This operator can not be used with netCDF data!",
"",
"PARAMETER",
" codes INTEGER Comma separated list of code numbers",
......@@ -389,7 +384,6 @@ static char *SelectHelp[] = {
" zaxes INTEGER Comma separated list of zaxis numbers",
" zaxisnames STRING Comma separated list of zaxis names",
" tabnums INTEGER Comma separated list of parameter table numbers",
" records INTEGER Comma separated list of records",
NULL
};
......
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