Skip to content
Snippets Groups Projects
Commit 4acea038 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

GRIB: sort only unsorted pressure levels.

parent 30277221
No related branches found
No related tags found
No related merge requests found
2016-09-22 Uwe Schulzweida
* GRIB: sort only unsorted pressure levels
2016-09-19 Uwe Schulzweida
* time axis: added support for NC_FLOAT
......
......@@ -670,7 +670,7 @@ void cdi_generate_vars(stream_t *streamptr)
* levelTable[levelID1].level1 < levelTable[levelID2].level1 <=> levelID1 > levelID2
* unless already sorted in decreasing order
*/
if ( !ldec && zaxistype == ZAXIS_PRESSURE )
if ( (!linc && !ldec) && zaxistype == ZAXIS_PRESSURE )
{
qsort(levelTable, nlevels, sizeof(leveltable_t), cmpLevelTableInv);
lsort = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment