Changeset 8697
- Timestamp:
- 06/23/11 09:48:35 (14 years ago)
- Location:
- issm/trunk/src/mex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/Ll2xy/Ll2xy.cpp
r8689 r8697 65 65 else ncoord=nlat; 66 66 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); 69 69 70 70 x=(double *)xmalloc(ncoord*sizeof(double)); -
issm/trunk/src/mex/Xy2ll/Xy2ll.cpp
r8689 r8697 65 65 else ncoord=nx; 66 66 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); 69 69 70 70 lat=(double *)xmalloc(ncoord*sizeof(double));
Note:
See TracChangeset
for help on using the changeset viewer.