Changeset 8697


Ignore:
Timestamp:
06/23/11 09:48:35 (14 years ago)
Author:
jschierm
Message:

Modified validity checks in Xy2ll and Ll2xy modules for standard_parallel.

Location:
issm/trunk/src/mex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/mex/Ll2xy/Ll2xy.cpp

    r8689 r8697  
    6565        else                ncoord=nlat;
    6666        if (sgn != +1 && sgn != -1) _error_("Hemisphere sgn=%d must be +1 (north) or -1 (south).",sgn);
    67         if (fabs(cm) > 180.+DBL_EPSILON) _error_("Central meridian cm=%g must be between -180 (west) and +180 (east) degrees.",cm);
    68         if (fabs(sp) >  90.+DBL_EPSILON) _error_("Standard parallel sp=%g must be between -90 (south) and +90 (north) degrees.",sp);
     67        if (fabs(cm)      > 180.) _error_("Central meridian cm=%g must be between -180 (west) and +180 (east) degrees.",cm);
     68        if (sp < 0. || sp >  90.) _error_("Standard parallel sp=%g must be between 0 and 90 degrees (in specified hemisphere).",sp);
    6969
    7070        x=(double *)xmalloc(ncoord*sizeof(double));
  • issm/trunk/src/mex/Xy2ll/Xy2ll.cpp

    r8689 r8697  
    6565        else            ncoord=nx;
    6666        if (sgn != +1 && sgn != -1) _error_("Hemisphere sgn=%d must be +1 (north) or -1 (south).",sgn);
    67         if (fabs(cm) > 180.+DBL_EPSILON) _error_("Central meridian cm=%g must be between -180 (west) and +180 (east) degrees.",cm);
    68         if (fabs(sp) >  90.+DBL_EPSILON) _error_("Standard parallel sp=%g must be between -90 (south) and +90 (north) degrees.",sp);
     67        if (fabs(cm)      > 180.) _error_("Central meridian cm=%g must be between -180 (west) and +180 (east) degrees.",cm);
     68        if (sp < 0. || sp >  90.) _error_("Standard parallel sp=%g must be between 0 and 90 degrees (in specified hemisphere).",sp);
    6969
    7070        lat=(double *)xmalloc(ncoord*sizeof(double));
Note: See TracChangeset for help on using the changeset viewer.