379 | | |
380 | | |
381 | | |
382 | | |
383 | | |
384 | | |
385 | | |
386 | | |
387 | | |
388 | | |
389 | | |
390 | | |
391 | | |
392 | | |
393 | | |
| 379 | '''Failure Example''' |
| 380 | |
| 381 | // The expected results were edited to produce a failure, i.e. tie point shift:[[BR]] |
| 382 | |
| 383 | // Run the test:[[BR]] |
| 384 | {{{ |
| 385 | $ ossim-batch-test orthoigen-test.kwl |
| 386 | Logging to file: /data1/test/logs/osgeo/ossim-batch-test-log-20111216110702.txt |
| 387 | test1[0]: PASSED |
| 388 | test2[0]: PASSED |
| 389 | 100% |
| 390 | 100% |
| 391 | Time elapsed : 10.525 |
| 392 | MPI running with 1 processors... |
| 393 | Creating overviews for file: /data1/test/out/orthoigen-test/test3/t2.tif |
| 394 | creating r1... |
| 395 | 100% |
| 396 | creating r2... |
| 397 | 100% |
| 398 | creating r3... |
| 399 | 100% |
| 400 | creating r4... |
| 401 | 100% |
| 402 | creating r5... |
| 403 | 100% |
| 404 | creating r6... |
| 405 | 100% |
| 406 | creating r7... |
| 407 | 100% |
| 408 | Finished... |
| 409 | Elapsed time: 1 |
| 410 | test3[0]: PASSED |
| 411 | test3[1]: FAILED |
| 412 | Wrote: /data1/test/logs/osgeo/ossim-batch-test-log-20111216110702.txt |
| 413 | }}} |
| 414 | |
| 415 | // Contents of log file:[[BR]] |
| 416 | |
| 417 | {{{ |
| 418 | // --- |
| 419 | // ossim-batch-test log: |
| 420 | // date format = yyyymmddhhmmss |
| 421 | //--- |
| 422 | start_time: 20111216110702 |
| 423 | config_file: /data1/test/orthoigen-test.kwl |
| 424 | |
| 425 | ---------------------------------------------------------------------- |
| 426 | processing_test: test1 |
| 427 | description: Test height for the center of the image for test2 and test3. |
| 428 | preProcessFlag: 0 |
| 429 | expectedFlag: 0 |
| 430 | testFlag: 1 |
| 431 | postProcessFlag: 1 |
| 432 | cleanFlag: 0 |
| 433 | executing command: ossim-info --height -42.8508 147.2537 > /data1/test/out/orthoigen-test/test1/height.txt |
| 434 | begin: 20111216110702 |
| 435 | end: 20111216110703 |
| 436 | test1[0]: elapsed time in seconds: 0.2289 |
| 437 | return status: 0 |
| 438 | executing command: diff -w /data1/test/exp/orthoigen-test/test1/height.txt /data1/test/out/orthoigen-test/test1/height.txt > /tmp/tmp.txt |
| 439 | return status: 0 |
| 440 | test1[0]: PASSED |
| 441 | end_test: test1 |
| 442 | ---------------------------------------------------------------------- |
| 443 | |
| 444 | ---------------------------------------------------------------------- |
| 445 | processing_test: test2 |
| 446 | description: Test geometry for GeoEye NITF with RPC model. |
| 447 | preProcessFlag: 0 |
| 448 | expectedFlag: 0 |
| 449 | testFlag: 1 |
| 450 | postProcessFlag: 1 |
| 451 | cleanFlag: 0 |
| 452 | executing command: ossim-info -d -i -p /data1/test/source/GeoEye/GE1_Hobart_GeoStereo_NITF-NCD/5V090205M0001912264B220000100072M_001508507.ntf > /data1/test/out/orthoigen-test/test2/info.txt |
| 453 | begin: 20111216110703 |
| 454 | end: 20111216110703 |
| 455 | test2[0]: elapsed time in seconds: 0.2582 |
| 456 | return status: 0 |
| 457 | executing command: diff -w /data1/test/exp/orthoigen-test/test2/info.txt /data1/test/out/orthoigen-test/test2/info.txt > /tmp/tmp.txt |
| 458 | return status: 0 |
| 459 | test2[0]: PASSED |
| 460 | end_test: test2 |
| 461 | ---------------------------------------------------------------------- |
| 462 | |
| 463 | ---------------------------------------------------------------------- |
| 464 | processing_test: test3 |
| 465 | description: Test orthorectification of a GeoEye NITF with RPC model. |
| 466 | preProcessFlag: 0 |
| 467 | expectedFlag: 0 |
| 468 | testFlag: 1 |
| 469 | postProcessFlag: 1 |
| 470 | cleanFlag: 0 |
| 471 | executing command: ossim-orthoigen -t 1024 --geo-scaled -42.85 --resample-type bilinear /data1/test/source/GeoEye/GE1_Hobart_GeoStereo_NITF-NCD/5V090205M0001912264B220000100072M_001508507.ntf /data1/test/out/orthoigen-test/test3/t2.tif |
| 472 | begin: 20111216110703 |
| 473 | end: 20111216110713 |
| 474 | test3[0]: elapsed time in seconds: 10.5560 |
| 475 | return status: 0 |
| 476 | executing command: ossim-img2rr -r --create-histogram /data1/test/out/orthoigen-test/test3/t2.tif |
| 477 | begin: 20111216110713 |
| 478 | end: 20111216110714 |
| 479 | test3[1]: elapsed time in seconds: 0.5340 |
| 480 | return status: 0 |
| 481 | executing command: ossim-info -d -i -p /data1/test/out/orthoigen-test/test3/t2.tif > /data1/test/out/orthoigen-test/test3/t2-info.txt |
| 482 | begin: 20111216110714 |
| 483 | end: 20111216110714 |
| 484 | test3[2]: elapsed time in seconds: 0.2372 |
| 485 | return status: 0 |
| 486 | executing command: diff -w /data1/test/out/orthoigen-test/test3/t1.his /data1/test/out/orthoigen-test/test3/t2.his > /tmp/tmp.txt |
| 487 | return status: 0 |
| 488 | test3[0]: PASSED |
| 489 | executing command: diff -w /data1/test/out/orthoigen-test/test3/t1-info.txt /data1/test/out/orthoigen-test/test3/t2-info.txt > /tmp/tmp.txt |
| 490 | return status: 256 |
| 491 | test3[1]: FAILED |
| 492 | diff -w /data1/test/out/orthoigen-test/test3/t1-info.txt /data1/test/out/orthoigen-test/test3/t2-info.txt > /tmp/tmp.txt |
| 493 | output follows: |
| 494 | 83c83 |
| 495 | < image0.projection.tie_point_xy: (147.1657,-42.7826) |
| 496 | --- |
| 497 | > image0.projection.tie_point_xy: (147.165760750085,-42.7826084701764) |
| 498 | |
| 499 | end_test: test3 |
| 500 | ---------------------------------------------------------------------- |
| 501 | |
| 502 | stop_time: 20111216110714 |
| 503 | total elapsed time in seconds: 11.8294 |
| 504 | }}} |
| 505 | |
| 506 | // Accept the new tie point as valid:[[BR]] |
| 507 | |
| 508 | {{{ |
| 509 | $ ossim-batch-test --accept-test test3 orthoigen-test.kwlLogging to file: /data1/test/logs/osgeo/ossim-batch-test-log-20111216111011.txt |
| 510 | test1: disabled |
| 511 | test2: disabled |
| 512 | 100% |
| 513 | 100% |
| 514 | Time elapsed : 12.526 |
| 515 | MPI running with 1 processors... |
| 516 | Creating overviews for file: /data1/test/out/orthoigen-test/test3/t1.tif |
| 517 | creating r1... |
| 518 | 100% |
| 519 | creating r2... |
| 520 | 100% |
| 521 | creating r3... |
| 522 | 100% |
| 523 | creating r4... |
| 524 | 100% |
| 525 | creating r5... |
| 526 | 100% |
| 527 | creating r6... |
| 528 | 100% |
| 529 | creating r7... |
| 530 | 100% |
| 531 | Finished... |
| 532 | Elapsed time: 0 |
| 533 | Wrote: /data1/test/logs/osgeo/ossim-batch-test-log-20111216111011.txt |
| 534 | }}} |
| 535 | |
| 536 | // Re-run test3:[[BR]] |
| 537 | {{{ |
| 538 | $ ossim-batch-test --run-test test3 orthoigen-test.kwl |
| 539 | Logging to file: /data1/test/logs/osgeo/ossim-batch-test-log-20111216111102.txt |
| 540 | test1: disabled |
| 541 | test2: disabled |
| 542 | 100% |
| 543 | 100% |
| 544 | Time elapsed : 12.504 |
| 545 | MPI running with 1 processors... |
| 546 | Creating overviews for file: /data1/test/out/orthoigen-test/test3/t2.tif |
| 547 | creating r1... |
| 548 | 100% |
| 549 | creating r2... |
| 550 | 100% |
| 551 | creating r3... |
| 552 | 100% |
| 553 | creating r4... |
| 554 | 100% |
| 555 | creating r5... |
| 556 | 100% |
| 557 | creating r6... |
| 558 | 100% |
| 559 | creating r7... |
| 560 | 100% |
| 561 | Finished... |
| 562 | Elapsed time: 1 |
| 563 | test3[0]: PASSED |
| 564 | test3[1]: PASSED |
| 565 | Wrote: /data1/test/logs/osgeo/ossim-batch-test-log-20111216111102.txt |
| 566 | }}} |
| 567 | |
| 568 | |
| 569 | |
| 570 | |
| 571 | |
| 572 | |
| 573 | |
| 574 | |
| 575 | |
| 576 | |
| 577 | |
| 578 | |
| 579 | |
| 580 | |
| 581 | |
| 582 | |
| 583 | |
| 584 | |
| 585 | |
| 586 | |
| 587 | |
| 588 | |