Commit 338595c4 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

pstreamDefVlist: unpack netCDF data if datatype = FLT64

parent 611089d4
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
* using CDI library version 1.0.2 * using CDI library version 1.0.2
* Seltime: print warning message if parameter not found * Seltime: print warning message if parameter not found
* pstreamDefVlist: unpack netCDF data if datatype = FLT64
* Version 1.0.2 released * Version 1.0.2 released
2006-08-01 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de> 2006-08-01 Uwe Schulzweida <Uwe.Schulzweida@zmaw.de>
...@@ -23,8 +24,8 @@ ...@@ -23,8 +24,8 @@
* gradsdes: fix bug for only one record without time [report: Angelika Heil] * gradsdes: fix bug for only one record without time [report: Angelika Heil]
* gradsdes: fix problem for variable names with - character * gradsdes: fix problem for variable names with - character
* namelist update * namelist update
* New module: Setbox [Etienne Tourigny) * New module: Setbox [Etienne Tourigny]
* history format changed to nco [Etienne Tourigny) * history format changed to nco [Etienne Tourigny]
* process: set MAX_ARGS from 1024 to 8192 * process: set MAX_ARGS from 1024 to 8192
* Version 1.0.1 released * Version 1.0.1 released
......
...@@ -122,15 +122,15 @@ INTEGER Value of the new month ...@@ -122,15 +122,15 @@ INTEGER Value of the new month
@Item = year @Item = year
INTEGER Value of the new year INTEGER Value of the new year
@Item = units @Item = units
STRING Base units of the time axis (minutes, hours, days, months, years). STRING Base units of the time axis (minutes, hours, days, months, years).
@Item = date @Item = date
STRING Date (format YYYY-MM-DD) STRING Date (format YYYY-MM-DD)
@Item = time @Item = time
STRING Time (format HH:MM) STRING Time (format HH:MM)
@Item = inc @Item = inc
STRING Optional increment (e.g. 12hour) [default: 0hour] STRING Optional increment (e.g. 12hour) [default: 0hour]
@Item = calendar @Item = calendar
STRING Calendar (standard, 360days, 365days, 366days) STRING Calendar (standard, 360days, 365days, 366days)
@Item = sval @Item = sval
STRING Shift value (e.g. -3hour) STRING Shift value (e.g. -3hour)
@EndParameter @EndParameter
......
...@@ -789,8 +789,18 @@ void pstreamDefVlist(int pstreamID, int vlistID) ...@@ -789,8 +789,18 @@ void pstreamDefVlist(int pstreamID, int vlistID)
if ( cdoDefaultDataType != CDI_UNDEFID ) if ( cdoDefaultDataType != CDI_UNDEFID )
{ {
int varID, nvars = vlistNvars(vlistID); int varID, nvars = vlistNvars(vlistID);
for ( varID = 0; varID < nvars; varID++ ) for ( varID = 0; varID < nvars; varID++ )
vlistDefVarDatatype(vlistID, varID, cdoDefaultDataType); vlistDefVarDatatype(vlistID, varID, cdoDefaultDataType);
if ( cdoDefaultDataType == DATATYPE_FLT64 )
{
for ( varID = 0; varID < nvars; varID++ )
{
vlistDefVarAddoffset(vlistID, varID, 0.0);
vlistDefVarScalefactor(vlistID, varID, 1.0);
}
}
} }
vlistDefAttribute(vlistID, "CDO", cdoComment()); vlistDefAttribute(vlistID, "CDO", cdoComment());
if ( cdoTimer ) timer_start(timer_write); if ( cdoTimer ) timer_start(timer_write);
......
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