%if MAP_PROJECTION = tephigram %or MAP_PROJECTION = skewt %or MAP_PROJECTION = emagram %then
    %unset HORIZONTAL_AXIS
    %unset VERTICAL_AXIS
    %unset X_AUTOMATIC
    %unset X_AXIS_TYPE
    %unset X_DATE_MIN
    %unset X_DATE_MAX
    %unset X_MIN_LATITUDE
    %unset X_MAX_LATITUDE
    %unset X_MIN_LONGITUDE
    %unset X_MAX_LONGITUDE   
    %unset Y_AUTOMATIC
    %unset Y_AXIS_TYPE
    %unset Y_DATE_MIN
    %unset Y_DATE_MAX
    %unset Y_MIN_LATITUDE
    %unset Y_MAX_LATITUDE
    %unset Y_MIN_LONGITUDE
    %unset Y_MAX_LONGITUDE

%if MAP_PROJECTION <> tephigram %or  MAP_PROJECTION = skewt %or MAP_PROJECTION = emagram %then
    %unset THERMO_GRID

%if MAP_PROJECTION <> taylor %then
    %unset TAYLOR_GRID

%if X_AUTOMATIC = on %then
    %unset X_MIN
    %unset X_MAX
    %unset X_MIN_LATITUDE
    %unset X_MAX_LATITUDE
    %unset X_MIN_LONGITUDE
    %unset X_MAX_LONGITUDE
    %unset X_DATE_MIN
    %unset X_DATE_MAX

%if X_AUTOMATIC = off %then
    %unset X_AUTOMATIC_REVERSE

%if X_AXIS_TYPE = regular %or X_AXIS_TYPE = logarithmic %then
     %unset X_DATE_MIN
     %unset X_DATE_MAX
     %unset X_MIN_LATITUDE
     %unset X_MAX_LATITUDE
     %unset X_MIN_LONGITUDE
     %unset X_MAX_LONGITUDE

%if X_AXIS_TYPE = geoline %then
     %unset X_MIN
     %unset X_MAX
     %unset X_DATE_MIN
     %unset X_DATE_MAX

%if X_AXIS_TYPE = date %then
     %unset X_MIN
     %unset X_MAX
     %unset X_MIN_LATITUDE
     %unset X_MAX_LATITUDE
     %unset X_MIN_LONGITUDE
     %unset X_MAX_LONGITUDE

%if Y_AUTOMATIC = on %then
    %unset Y_MIN
    %unset Y_MAX
    %unset Y_MIN_LATITUDE
    %unset Y_MAX_LATITUDE
    %unset Y_MIN_LONGITUDE
    %unset Y_MAX_LONGITUDE
    %unset Y_DATE_MIN
    %unset Y_DATE_MAX

%if Y_AUTOMATIC = off %then
    %unset Y_AUTOMATIC_REVERSE

%if Y_AXIS_TYPE = regular %or Y_AXIS_TYPE = logarithmic %then
     %unset Y_DATE_MIN
     %unset Y_DATE_MAX
     %unset Y_MIN_LATITUDE
     %unset Y_MAX_LATITUDE
     %unset Y_MIN_LONGITUDE
     %unset Y_MAX_LONGITUDE

%if Y_AXIS_TYPE = geoline %then
     %unset Y_MIN
     %unset Y_MAX
     %unset Y_DATE_MIN
     %unset Y_DATE_MAX

%if Y_AXIS_TYPE = date %then
     %unset Y_MIN
     %unset Y_MAX
     %unset Y_MIN_LATITUDE
     %unset Y_MAX_LATITUDE
     %unset Y_MIN_LONGITUDE
     %unset Y_MAX_LONGITUDE

%include PageFrameRules
%include SubpageFrameRules
