Commit 4acea038 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

GRIB: sort only unsorted pressure levels.

parent 30277221
2016-09-22 Uwe Schulzweida
* GRIB: sort only unsorted pressure levels
2016-09-19 Uwe Schulzweida 2016-09-19 Uwe Schulzweida
* time axis: added support for NC_FLOAT * time axis: added support for NC_FLOAT
......
...@@ -670,7 +670,7 @@ void cdi_generate_vars(stream_t *streamptr) ...@@ -670,7 +670,7 @@ void cdi_generate_vars(stream_t *streamptr)
* levelTable[levelID1].level1 < levelTable[levelID2].level1 <=> levelID1 > levelID2 * levelTable[levelID1].level1 < levelTable[levelID2].level1 <=> levelID1 > levelID2
* unless already sorted in decreasing order * unless already sorted in decreasing order
*/ */
if ( !ldec && zaxistype == ZAXIS_PRESSURE ) if ( (!linc && !ldec) && zaxistype == ZAXIS_PRESSURE )
{ {
qsort(levelTable, nlevels, sizeof(leveltable_t), cmpLevelTableInv); qsort(levelTable, nlevels, sizeof(leveltable_t), cmpLevelTableInv);
lsort = true; lsort = true;
......
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