Commit 3bf9a83b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Removed unused function streamGrbChangeModeUvRelativeToGrid().

parent 90e520b8
......@@ -1820,17 +1820,6 @@ void cgribexDefGrid(int *isec1, int *isec2, double *fsec2, int *isec4, int gridI
break;
}
}
if ( cdiGribChangeModeUvRelativeToGrid.active )
{
// this will overrule/change the UvRelativeToGrid flag;
// typically when the wind is rotated with respect to north pole
const bool uvRelativeToGrid = gribbyte_get_bit(ISEC2_ResFlag, 5);
if ( uvRelativeToGrid && !cdiGribChangeModeUvRelativeToGrid.mode )
gribbyte_clear_bit(&ISEC2_ResFlag, 5);
else if ( !uvRelativeToGrid && cdiGribChangeModeUvRelativeToGrid.mode )
gribbyte_set_bit(&ISEC2_ResFlag, 5);
}
}
static
......
......@@ -64,15 +64,6 @@ void streamGrbChangeParameterIdentification(int code, int ltype, int lev)
cdiGribChangeParameterID.lev = lev;
}
struct cdiGribModeChange cdiGribChangeModeUvRelativeToGrid;
// Used only for CDO module WindTrans
void streamGrbChangeModeUvRelativeToGrid(int mode)
{
cdiGribChangeModeUvRelativeToGrid.active = true;
cdiGribChangeModeUvRelativeToGrid.mode = (mode > 0);
}
struct cdiGribScanModeChange cdiGribDataScanningMode;
void streamGrbDefDataScanningMode(int scanmode)
......
......@@ -39,12 +39,6 @@ struct cdiGribParamChange
bool active;
};
struct cdiGribModeChange
{
bool mode;
bool active;
};
struct cdiGribScanModeChange
{
int value;
......@@ -52,12 +46,10 @@ struct cdiGribScanModeChange
};
extern struct cdiGribParamChange cdiGribChangeParameterID;
extern struct cdiGribModeChange cdiGribChangeModeUvRelativeToGrid;
extern struct cdiGribScanModeChange cdiGribDataScanningMode;
// Used in CDO
void streamGrbChangeParameterIdentification(int code, int ltype, int lev);
void streamGrbChangeModeUvRelativeToGrid(int mode);
void streamGrbDefDataScanningMode(int scanmode);
int streamGrbInqDataScanningMode(void);
......
......@@ -2980,14 +2980,6 @@ void gribapiSetExtMode(grib_handle *gh, int gridID, size_t datasize, const doubl
gribapiSetScanningMode(gh, scanModeIN);
}
#endif
if ( cdiGribChangeModeUvRelativeToGrid.active )
{
// this will overrule/change the UvRelativeToGrid flag;
// typically when the wind is rotated with respect to north pole
if (cdiDebugExt>=100) Message("Set ModeUvRelativeToGrid =>%d ( note grid has: %d)", cdiGribChangeModeUvRelativeToGrid.mode, gridInqUvRelativeToGrid(gridID));
GRIB_CHECK(my_grib_set_long(gh, "uvRelativeToGrid", (long) cdiGribChangeModeUvRelativeToGrid.mode), 0);
}
}
}
......
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