protected boolean frameFitsCriteria(double left,double right,double up,double down,double rlinterval,double udinterval){
switch (boundaryLimits) {
case OUTSIDE:
    return (left < leftLon && right < leftLon) || (left > rightLon && right > rightLon) || (up < lowerLat && down < lowerLat)|| (up > upperLat && down > upperLat);
case INSIDE:
  return (left > leftLon && right > leftLon && left < rightLon && right < rightLon && up > lowerLat && down > lowerLat && up < upperLat && down < upperLat);
default :
return (((right <= rightLon && left >= leftLon - rlinterval) || (left >= leftLon && right <= rightLon + rlinterval) || (left <= leftLon && right >= rightLon)) && ((up <= upperLat + udinterval && down >= lowerLat) || (down >= lowerLat - udinterval && up <= upperLat) || (up >= upperLat && down <= lowerLat)));
}
}

protected boolean frameFitsCriteria ( double left , double right , double up , double down , double rlinterval , double udinterval ) { switch ( boundaryLimits ) { case OUTSIDE : return ( left < leftLon && right < leftLon ) || ( left > rightLon && right > rightLon ) || ( up < lowerLat && down < lowerLat ) || ( up > upperLat && down > upperLat ) ; case INSIDE : return ( left > leftLon && right > leftLon && left < rightLon && right < rightLon && up > lowerLat && down > lowerLat && up < upperLat && down < upperLat ) ; default : return ( ( ( right <= rightLon && left >= leftLon - rlinterval ) || ( left >= leftLon && right <= rightLon + rlinterval ) || ( left <= leftLon && right >= rightLon ) ) && ( ( up <= upperLat + udinterval && down >= lowerLat ) || ( down >= lowerLat - udinterval && up <= upperLat ) || ( up >= upperLat && down <= lowerLat ) ) ) ; } }
geographical evaluation of frame file
