Changeset 2273 for trunk/psLib/src/astro/psCoord.c
- Timestamp:
- Nov 3, 2004, 3:05:00 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psCoord.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psCoord.c
r2221 r2273 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-1 0-27 23:31:43$12 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-11-04 01:04:57 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 27 27 #include "psConstants.h" 28 28 #include "psError.h" 29 #include "psAstronomyErrors.h" 29 30 #include <math.h> 30 31 #include <float.h> … … 278 279 279 280 } else if (projection->type == PS_PROJ_PAR) { 280 psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n"); 281 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 282 PS_ERRORTEXT_psCoord_PROJECTION_TYPE_UNDEFINED, 283 "PS_PROJ_PAR"); 281 284 282 285 } else if (projection->type == PS_PROJ_GLS) { 283 psError(__func__, "The projection type PS_PROJ_GLS is undefined.\n"); 286 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 287 PS_ERRORTEXT_psCoord_PROJECTION_TYPE_UNDEFINED, 288 "PS_PROJ_GLS"); 284 289 } else { 285 psError(__func__, "Unknown projection type.\n"); 290 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 291 PS_ERRORTEXT_psCoord_PROJECTION_TYPE_UNKNOWN, 292 projection->type); 286 293 } 287 294 … … 333 340 334 341 } else if (projection->type == PS_PROJ_PAR) { 335 psError(__func__, "The projection type PS_PROJ_PAR is undefined.\n"); 342 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 343 PS_ERRORTEXT_psCoord_PROJECTION_TYPE_UNDEFINED, 344 "PS_PROJ_PAR"); 336 345 337 346 } else if (projection->type == PS_PROJ_GLS) { 338 psError(__func__, "The projection type PS_PROJ_GLG is undefined.\n"); 347 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 348 PS_ERRORTEXT_psCoord_PROJECTION_TYPE_UNDEFINED, 349 "PS_PROJ_GLS"); 339 350 } else { 340 psError(__func__, "Unknown projection type.\n"); 351 psError(PS_ERR_BAD_PARAMETER_TYPE, true, 352 PS_ERRORTEXT_psCoord_PROJECTION_TYPE_UNKNOWN, 353 projection->type); 341 354 } 342 355 … … 407 420 } else if (unit == PS_RADIAN) {} 408 421 else { 409 psError(__func__, "Unknown offset unit: 0x%x\n", unit); 422 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 423 PS_ERRORTEXT_psCoord_UNITS_UNKNOWN, 424 unit); 410 425 } 411 426 … … 413 428 } 414 429 415 psError(__func__, "Unrecognized offset mode\n"); 430 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 431 PS_ERRORTEXT_psCoord_OFFSET_MODE_UNKNOWN, 432 mode); 416 433 return (NULL); 417 434 } … … 469 486 tmpD = offset->d; 470 487 } else { 471 psError(__func__, "Unknown offset unit: 0x%x\n", unit); 488 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 489 PS_ERRORTEXT_psCoord_UNITS_UNKNOWN, 490 unit); 472 491 } 473 492 … … 483 502 } 484 503 485 psError(__func__, "Unrecognized offset mode\n"); 504 psError(PS_ERR_BAD_PARAMETER_VALUE, true, 505 PS_ERRORTEXT_psCoord_OFFSET_MODE_UNKNOWN, 506 mode); 507 486 508 return (NULL); 487 509 }
Note:
See TracChangeset
for help on using the changeset viewer.
