! these 3 to fix a temporary bad solution
%if STATION_TYPE = LOCATION %then
	%set SEARCH_STATIONS_DATABASE = NO

%if STATION_TYPE = WMO_STATION %then
	%set SEARCH_STATIONS_DATABASE = WMO

%if SEARCH_STATIONS_DATABASE = NO %then
	%unset WMO_BLOCK
	%unset THRESHOLD
	%unset AREA
	%unset IDENT
	%unset SEARCH_KEY

%if SEARCH_KEY = NAME %then
!	%unset NAME
	%unset IDENT
	%unset WMO_BLOCK
	%unset POSITION
	%unset THRESHOLD
	%unset AREA
	%unset HEIGHT

%if SEARCH_KEY = IDENT %then
	%unset NAME
!	%unset IDENT
	%unset WMO_BLOCK
	%unset POSITION
	%unset THRESHOLD
	%unset AREA
	%unset HEIGHT


%if SEARCH_KEY = WMO_BLOCK %then
	%unset NAME
	%unset IDENT
!	%unset WMO_BLOCK
	%unset POSITION
	%unset THRESHOLD
	%unset AREA
	%unset HEIGHT

%if SEARCH_KEY = POSITION %then
	%unset NAME
	%unset IDENT
	%unset WMO_BLOCK
!	%unset POSITION
!	%unset THRESHOLD
	%unset AREA
	%unset HEIGHT

%if SEARCH_KEY = AREA %then
	%unset NAME
	%unset IDENT
	%unset WMO_BLOCK
	%unset POSITION
	%unset THRESHOLD
!	%unset AREA
	%unset HEIGHT
