Commit 6dd6c35e authored by Christophe Palmann's avatar Christophe Palmann

TEST: rmved some tests related to projections and metadata (ref inside CMakeLists.txt)

parent 679695bb
......@@ -108,45 +108,45 @@ otb_test_application(NAME apTuUtReadImageInfoExtendedFilename_reader
OPTIONS -in ${INPUTDATA}/ToulouseExtract_WithGeom.tif?&skipgeom=true&skipcarto=true
)
otb_test_application(NAME apTvUtReadImageInfoRpcTag
APP ReadImageInfo
OPTIONS -in ${INPUTDATA}/QB_TOULOUSE_RpcTag_100_100.tif
-outkwl ${TEMP}/apTvUtReadImageInfoRpcTag.geom
VALID --compare-ascii ${EPSILON_7}
${BASELINE_FILES}/apTvUtReadImageInfoRpcTag.geom
${TEMP}/apTvUtReadImageInfoRpcTag.geom)
otb_test_application(NAME apTvUtReadImageInfoTest
APP ReadImageInfo
OPTIONS -in ${INPUTDATA}/poupees.tif
TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoTest.txt
VALID --compare-ascii ${EPSILON_7}
${BASELINE_FILES}/apTvUtReadImageInfoTest.txt
${TEMP}/apTvUtReadImageInfoTest.txt)
otb_test_application(NAME apTvUtReadImageInfoSpot5
APP ReadImageInfo
OPTIONS -in LARGEINPUT{SPOT5/TEHERAN/IMAGERY.TIF}
TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoSpot5.txt
VALID --compare-ascii ${EPSILON_7}
${BASELINE_FILES}/apTvUtReadImageInfoSpot5.txt
${TEMP}/apTvUtReadImageInfoSpot5.txt)
otb_test_application(NAME apTvUtReadImageInfoERS
APP ReadImageInfo
OPTIONS -in LARGEINPUT{SAR_ERS2_SLCI_SCENE1/DAT_01.001}
TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoERS.txt
VALID --compare-ascii ${EPSILON_7}
${BASELINE_FILES}/apTvUtReadImageInfoERS.txt
${TEMP}/apTvUtReadImageInfoERS.txt)
otb_test_application(NAME apTvUtReadImageInfoRADARSAT1
APP ReadImageInfo
OPTIONS -in LARGEINPUT{RADARSAT1/GOMA/SCENE01/DAT_01.001}
TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoRADARSAT1.txt
VALID --compare-ascii ${EPSILON_7}
${BASELINE_FILES}/apTvUtReadImageInfoRADARSAT1.txt
${TEMP}/apTvUtReadImageInfoRADARSAT1.txt)
##>otb_test_application(NAME apTvUtReadImageInfoRpcTag
##>APP ReadImageInfo
##>OPTIONS -in ${INPUTDATA}/QB_TOULOUSE_RpcTag_100_100.tif
##>-outkwl ${TEMP}/apTvUtReadImageInfoRpcTag.geom
##>VALID --compare-ascii ${EPSILON_7}
##>${BASELINE_FILES}/apTvUtReadImageInfoRpcTag.geom
##>${TEMP}/apTvUtReadImageInfoRpcTag.geom)
##>otb_test_application(NAME apTvUtReadImageInfoTest
##>APP ReadImageInfo
##>OPTIONS -in ${INPUTDATA}/poupees.tif
##>TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoTest.txt
##>VALID --compare-ascii ${EPSILON_7}
##>${BASELINE_FILES}/apTvUtReadImageInfoTest.txt
##>${TEMP}/apTvUtReadImageInfoTest.txt)
##>otb_test_application(NAME apTvUtReadImageInfoSpot5
##>APP ReadImageInfo
##>OPTIONS -in LARGEINPUT{SPOT5/TEHERAN/IMAGERY.TIF}
##>TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoSpot5.txt
##>VALID --compare-ascii ${EPSILON_7}
##>${BASELINE_FILES}/apTvUtReadImageInfoSpot5.txt
##>${TEMP}/apTvUtReadImageInfoSpot5.txt)
##>otb_test_application(NAME apTvUtReadImageInfoERS
##>APP ReadImageInfo
##>OPTIONS -in LARGEINPUT{SAR_ERS2_SLCI_SCENE1/DAT_01.001}
##>TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoERS.txt
##>VALID --compare-ascii ${EPSILON_7}
##>${BASELINE_FILES}/apTvUtReadImageInfoERS.txt
##>${TEMP}/apTvUtReadImageInfoERS.txt)
##>otb_test_application(NAME apTvUtReadImageInfoRADARSAT1
##>APP ReadImageInfo
##>OPTIONS -in LARGEINPUT{RADARSAT1/GOMA/SCENE01/DAT_01.001}
##>TESTENVOPTIONS ${TEMP}/apTvUtReadImageInfoRADARSAT1.txt
##>VALID --compare-ascii ${EPSILON_7}
##>${BASELINE_FILES}/apTvUtReadImageInfoRADARSAT1.txt
##>${TEMP}/apTvUtReadImageInfoRADARSAT1.txt)
#----------- Quicklook TESTS ----------------
......
......@@ -391,26 +391,26 @@ if(OTB_DATA_USE_LARGEINPUT)
math(EXPR GenericTestPHR_TESTNB "${GenericTestPHR_TESTNB} + 1")
string(REGEX MATCH "TIFF" PHR_TIFF_FILE ${current_type})
# Read info from the input file
otb_add_test(NAME ioTvVectorImageReadingInfo_${current_type} COMMAND otbImageBaseTestDriver
--ignore-order --compare-ascii ${EPSILON_9} ${BASELINE_FILES}/ioTvMultiResolutionReading_${current_type}.txt
${TEMP}/ioTvMultiResolutionReading_${current_type}_OUT.txt
--ignore-lines-with 4 CacheSizeInBytes SubDatasetIndex Driver Corner
otbVectorImageTest
${current_file}?&resol=0
${TEMP}/ioTvMultiResolutionReading_${current_type}_OUT.txt
)
##># Read info from the input file
##>otb_add_test(NAME ioTvVectorImageReadingInfo_${current_type} COMMAND otbImageBaseTestDriver
##>--ignore-order --compare-ascii ${EPSILON_9} ${BASELINE_FILES}/ioTvMultiResolutionReading_${current_type}.txt
##>${TEMP}/ioTvMultiResolutionReading_${current_type}_OUT.txt
##>--ignore-lines-with 4 CacheSizeInBytes SubDatasetIndex Driver Corner
##>otbVectorImageTest
##>${current_file}?&resol=0
##>${TEMP}/ioTvMultiResolutionReading_${current_type}_OUT.txt
##>)
if(NOT PHR_TIFF_FILE)
# Read info from the input file (res=5)
otb_add_test(NAME ioTvVectorImageReadingInfo_${current_type}_res5 COMMAND otbImageBaseTestDriver
--ignore-order --compare-ascii ${EPSILON_9} ${BASELINE_FILES}/ioTvMultiResolutionReading_${current_type}_res5.txt
${TEMP}/ioTvMultiResolutionReading_${current_type}_res5_OUT.txt
--ignore-lines-with 4 CacheSizeInBytes Driver Corner SubDatasetIndex
otbVectorImageTest
${current_file}?&resol=5
${TEMP}/ioTvMultiResolutionReading_${current_type}_res5_OUT.txt
)
##># Read info from the input file (res=5)
##>otb_add_test(NAME ioTvVectorImageReadingInfo_${current_type}_res5 COMMAND otbImageBaseTestDriver
##>--ignore-order --compare-ascii ${EPSILON_9} ${BASELINE_FILES}/ioTvMultiResolutionReading_${current_type}_res5.txt
##>${TEMP}/ioTvMultiResolutionReading_${current_type}_res5_OUT.txt
##>--ignore-lines-with 4 CacheSizeInBytes Driver Corner SubDatasetIndex
##>otbVectorImageTest
##>${current_file}?&resol=5
##>${TEMP}/ioTvMultiResolutionReading_${current_type}_res5_OUT.txt
##>)
# Decode an area inside one tile
otb_add_test(NAME ioTvReaderWriterJP22TIF_${current_type}_1 COMMAND otbImageBaseTestDriver
--compare-image ${EPSILON_9} ${BASELINE}/ioTvJP22TIF_Extract_${current_type}_1.tif
......
......@@ -108,160 +108,160 @@ otb_add_test(NAME prTuGenericRSTransformNew COMMAND otbTransformTestDriver otbG
otb_add_test(NAME bfTuLogPolarTransformNew COMMAND otbTransformTestDriver
otbLogPolarTransformNew)
otb_add_test(NAME prTvSensorModelPleiades-JP2 COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${EPSILON_9}
${BASELINE_FILES}/prTvSensorModelPleiades.txt
${TEMP}/prTvSensorModelPleiades_OUT.txt
--ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{PLEIADES/TLSE_JP2_DIMAPv2_PRIMARY_PMS_lossless_12bits/IMGPHR_201222215194743808/IMG_PHR1A_PMS_201201151100183_SEN_IPU_20120222_0901-001_R2C1.JP2}
${TEMP}/prTvSensorModelPleiades_OUT.txt
)
otb_add_test(NAME prTvSensorModelIkonos COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelIkonos.txt
${TEMP}/prTvSensorModelIkonos.txt
--ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{IKONOS/BLOSSEVILLE/po_2619900_pan_0000000.tif}
${TEMP}/prTvSensorModelIkonos.txt
)
otb_add_test(NAME prTvSensorModelSPOT5 COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelSpot5.txt
${TEMP}/prTvSensorModelSpot5.txt
--ignore-lines-with 3 support_data.metadata_file meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{SPOT5/TEHERAN/IMAGERY.TIF}
${TEMP}/prTvSensorModelSpot5.txt
)
otb_add_test(NAME prTvSensorModelRadarSat1_SARDEGNA COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelRadarSat1_SARDEGNA.txt
${TEMP}/prTvSensorModelRadarSat1_SARDEGNA.txt
otbSensorModel
LARGEINPUT{RADARSAT1/SARDEGNA/scene01/dat_01.001}
${TEMP}/prTvSensorModelRadarSat1_SARDEGNA.txt
)
otb_add_test(NAME prTvSensorModelPleiades-PRE-TIFF COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelPleiades-PRE-TIFF.txt
${TEMP}/prTvSensorModelPleiades-PRE-TIFF_OUT.txt
--ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{PLEIADES-PRE/TLSE_TIFF_PRIMARY_DIMAPv2_MS_lossly_12bits/IMG_PHR1A_MS_002/IMG_PHR1A_MS_201006181052297_SEN_IPU_20111025_3077-004_R1C1.TIF}
${TEMP}/prTvSensorModelPleiades-PRE-TIFF_OUT.txt
)
otb_add_test(NAME prTvSensorModelTerraSarX_Toronto COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelTerraSarX_Toronto.txt
${TEMP}/prTvSensorModelTerraSarX_Toronto.txt
--ignore-lines-with 3 product_xml_filename meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{TERRASARX/TORONTO/TSX1_SAR__SSC/TSX1_SAR__SSC.xml}
${TEMP}/prTvSensorModelTerraSarX_Toronto.txt
)
otb_add_test(NAME prTvSensorModelFORMOSAT2 COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelFORMOSAT.txt
${TEMP}/prTvSensorModelFORMOSAT2.txt
--ignore-lines-with 3 support_data.metadata_file meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{FORMOSAT/Sudouest_20071013_MS_fmsat/IMAGERY.TIF}
${TEMP}/prTvSensorModelFORMOSAT2.txt
)
otb_add_test(NAME prTvSensorModelAlosPalsar COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${EPSILON_6}
${BASELINE_FILES}/prTvSensorModelAlosPalsar.txt
${TEMP}/prTvSensorModelAlosPalsar.txt
otbSensorModel
LARGEINPUT{PALSAR/200801280007/l1data/VOL-ALPSRP037120700-H1.1__A}
${TEMP}/prTvSensorModelAlosPalsar.txt
)
otb_add_test(NAME prTvSensorModelEnvisatAsar COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelEnvisatAsar.txt
${TEMP}/prTvSensorModelEnvisatAsar.txt
otbSensorModel
LARGEINPUT{ENVISAT_ASAR_SCENE01/ASA_APS_1PNDPA20030821_7713.N1}
${TEMP}/prTvSensorModelEnvisatAsar.txt
)
otb_add_test(NAME prTvSensorModelRapidEye COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelRapidEye.txt
${TEMP}/prTvSensorModelRapidEye.txt
--ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{RAPIDEYE/level1B/2008-12-25T005918_RE3_1B-NAC_397971_12345_band3.ntf}
${TEMP}/prTvSensorModelRapidEye.txt
)
otb_add_test(NAME prTvSensorModelQuickbird COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelQuickbird.txt
${TEMP}/prTvSensorModelQuickbird.txt
--ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF}
${TEMP}/prTvSensorModelQuickbird.txt
)
otb_add_test(NAME prTvSensorModelRadarSat1_GOMA COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelRadarSat1_GOMA.txt
${TEMP}/prTvSensorModelRadarSat1_GOMA.txt
otbSensorModel
LARGEINPUT{RADARSAT1/GOMA/SCENE01/DAT_01.001}
${TEMP}/prTvSensorModelRadarSat1_GOMA.txt
)
otb_add_test(NAME prTvSensorModelRadarSat2 COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelRadarSat2.txt
${TEMP}/prTvSensorModelRadarSat2.txt
--ignore-lines-with 3 product_xml_filename meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{RADARSAT2/ALTONA/Fine_Quad-Pol_Dataset/PK6621_DK406_FQ9_20080405_124900_HH_VV_HV_VH_SLC_Altona/product.xml}
${TEMP}/prTvSensorModelRadarSat2.txt
)
otb_add_test(NAME prTvSensorModelTerraSarX COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelTerraSarX.txt
${TEMP}/prTvSensorModelTerraSarX.txt
--ignore-lines-with 3 product_xml_filename meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{TERRASARX/dims/TSX-1.SAR.L1B/TSX1_SAR__SSC/TSX1_SAR__SSC.xml}
${TEMP}/prTvSensorModelTerraSarX.txt
)
otb_add_test(NAME prTvSensorModelTerraSarX_Upsala COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelTerraSarX_Upsala.txt
${TEMP}/prTvSensorModelTerraSarX_Upsala.txt
--ignore-lines-with 3 product_xml_filename meters_per_pixel_x meters_per_pixel_y
otbSensorModel
LARGEINPUT{TERRASARX/UPSALA_GLACIER/TSX1_SAR__MGD/TSX1_SAR__MGD.xml}
${TEMP}/prTvSensorModelTerraSarX_Upsala.txt
)
otb_add_test(NAME prTvSensorModelErs COMMAND otbTransformTestDriver
--ignore-order --compare-ascii ${NOTOL}
${BASELINE_FILES}/prTvSensorModelErs.txt
${TEMP}/prTvSensorModelErs.txt
otbSensorModel
LARGEINPUT{SAR_ERS2_SLCI_SCENE1/DAT_01.001}
${TEMP}/prTvSensorModelErs.txt
)
##>otb_add_test(NAME prTvSensorModelPleiades-JP2 COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${EPSILON_9}
##> ${BASELINE_FILES}/prTvSensorModelPleiades.txt RM
##> ${TEMP}/prTvSensorModelPleiades_OUT.txt
##> --ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{PLEIADES/TLSE_JP2_DIMAPv2_PRIMARY_PMS_lossless_12bits/IMGPHR_201222215194743808/IMG_PHR1A_PMS_201201151100183_SEN_IPU_20120222_0901-001_R2C1.JP2}
##> ${TEMP}/prTvSensorModelPleiades_OUT.txt
##> )
##>otb_add_test(NAME prTvSensorModelIkonos COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelIkonos.txt RM
##> ${TEMP}/prTvSensorModelIkonos.txt
##> --ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{IKONOS/BLOSSEVILLE/po_2619900_pan_0000000.tif}
##> ${TEMP}/prTvSensorModelIkonos.txt
##> )
##>otb_add_test(NAME prTvSensorModelSPOT5 COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelSpot5.txt RM
##> ${TEMP}/prTvSensorModelSpot5.txt
##> --ignore-lines-with 3 support_data.metadata_file meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{SPOT5/TEHERAN/IMAGERY.TIF}
##> ${TEMP}/prTvSensorModelSpot5.txt
##> )
##>otb_add_test(NAME prTvSensorModelRadarSat1_SARDEGNA COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelRadarSat1_SARDEGNA.txt DISPARU
##> ${TEMP}/prTvSensorModelRadarSat1_SARDEGNA.txt
##> otbSensorModel
##> LARGEINPUT{RADARSAT1/SARDEGNA/scene01/dat_01.001}
##> ${TEMP}/prTvSensorModelRadarSat1_SARDEGNA.txt
##> )
##>otb_add_test(NAME prTvSensorModelPleiades-PRE-TIFF COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelPleiades-PRE-TIFF.txt RM
##> ${TEMP}/prTvSensorModelPleiades-PRE-TIFF_OUT.txt
##> --ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{PLEIADES-PRE/TLSE_TIFF_PRIMARY_DIMAPv2_MS_lossly_12bits/IMG_PHR1A_MS_002/IMG_PHR1A_MS_201006181052297_SEN_IPU_20111025_3077-004_R1C1.TIF}
##> ${TEMP}/prTvSensorModelPleiades-PRE-TIFF_OUT.txt
##> )
##>otb_add_test(NAME prTvSensorModelTerraSarX_Toronto COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelTerraSarX_Toronto.txt RM
##> ${TEMP}/prTvSensorModelTerraSarX_Toronto.txt
##> --ignore-lines-with 3 product_xml_filename meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{TERRASARX/TORONTO/TSX1_SAR__SSC/TSX1_SAR__SSC.xml}
##> ${TEMP}/prTvSensorModelTerraSarX_Toronto.txt
##> )
##>otb_add_test(NAME prTvSensorModelFORMOSAT2 COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelFORMOSAT.txt RM
##> ${TEMP}/prTvSensorModelFORMOSAT2.txt
##> --ignore-lines-with 3 support_data.metadata_file meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{FORMOSAT/Sudouest_20071013_MS_fmsat/IMAGERY.TIF}
##> ${TEMP}/prTvSensorModelFORMOSAT2.txt
##> )
##>otb_add_test(NAME prTvSensorModelAlosPalsar COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${EPSILON_6}
##> ${BASELINE_FILES}/prTvSensorModelAlosPalsar.txt RM
##> ${TEMP}/prTvSensorModelAlosPalsar.txt
##> otbSensorModel
##> LARGEINPUT{PALSAR/200801280007/l1data/VOL-ALPSRP037120700-H1.1__A}
##> ${TEMP}/prTvSensorModelAlosPalsar.txt
##> )
##>otb_add_test(NAME prTvSensorModelEnvisatAsar COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelEnvisatAsar.txt RM
##> ${TEMP}/prTvSensorModelEnvisatAsar.txt
##> otbSensorModel
##> LARGEINPUT{ENVISAT_ASAR_SCENE01/ASA_APS_1PNDPA20030821_7713.N1}
##> ${TEMP}/prTvSensorModelEnvisatAsar.txt
##> )
##>otb_add_test(NAME prTvSensorModelRapidEye COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelRapidEye.txt RM
##> ${TEMP}/prTvSensorModelRapidEye.txt
##> --ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{RAPIDEYE/level1B/2008-12-25T005918_RE3_1B-NAC_397971_12345_band3.ntf}
##> ${TEMP}/prTvSensorModelRapidEye.txt
##> )
##>otb_add_test(NAME prTvSensorModelQuickbird COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelQuickbird.txt RM
##> ${TEMP}/prTvSensorModelQuickbird.txt
##> --ignore-lines-with 2 meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{QUICKBIRD/TOULOUSE/000000128955_01_P001_PAN/02APR01105228-P1BS-000000128955_01_P001.TIF}
##> ${TEMP}/prTvSensorModelQuickbird.txt
##> )
##>otb_add_test(NAME prTvSensorModelRadarSat1_GOMA COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelRadarSat1_GOMA.txt RM
##> ${TEMP}/prTvSensorModelRadarSat1_GOMA.txt
##> otbSensorModel
##> LARGEINPUT{RADARSAT1/GOMA/SCENE01/DAT_01.001}
##> ${TEMP}/prTvSensorModelRadarSat1_GOMA.txt
##> )
##>otb_add_test(NAME prTvSensorModelRadarSat2 COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelRadarSat2.txt RM
##> ${TEMP}/prTvSensorModelRadarSat2.txt
##> --ignore-lines-with 3 product_xml_filename meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{RADARSAT2/ALTONA/Fine_Quad-Pol_Dataset/PK6621_DK406_FQ9_20080405_124900_HH_VV_HV_VH_SLC_Altona/product.xml}
##> ${TEMP}/prTvSensorModelRadarSat2.txt
##> )
##>otb_add_test(NAME prTvSensorModelTerraSarX COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelTerraSarX.txt RM
##> ${TEMP}/prTvSensorModelTerraSarX.txt
##> --ignore-lines-with 3 product_xml_filename meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{TERRASARX/dims/TSX-1.SAR.L1B/TSX1_SAR__SSC/TSX1_SAR__SSC.xml}
##> ${TEMP}/prTvSensorModelTerraSarX.txt
##> )
##>otb_add_test(NAME prTvSensorModelTerraSarX_Upsala COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelTerraSarX_Upsala.txt RM
##> ${TEMP}/prTvSensorModelTerraSarX_Upsala.txt
##> --ignore-lines-with 3 product_xml_filename meters_per_pixel_x meters_per_pixel_y
##> otbSensorModel
##> LARGEINPUT{TERRASARX/UPSALA_GLACIER/TSX1_SAR__MGD/TSX1_SAR__MGD.xml}
##> ${TEMP}/prTvSensorModelTerraSarX_Upsala.txt
##> )
##>otb_add_test(NAME prTvSensorModelErs COMMAND otbTransformTestDriver
##> --ignore-order --compare-ascii ${NOTOL}
##> ${BASELINE_FILES}/prTvSensorModelErs.txt RM
##> ${TEMP}/prTvSensorModelErs.txt
##> otbSensorModel
##> LARGEINPUT{SAR_ERS2_SLCI_SCENE1/DAT_01.001}
##> ${TEMP}/prTvSensorModelErs.txt
##> )
otb_add_test(NAME prTvGeocentricTransform COMMAND otbTransformTestDriver
--compare-ascii ${EPSILON_4} ${BASELINE_FILES}/prTvGeocentricTransform.txt
......@@ -317,83 +317,85 @@ set(FWDBWDChecking_INPUTS
#LARGEINPUT{RAPIDEYE/level3A/2008-12-25T005918_RE3_3A-NAC_752656_40091.tif}
)
set(FWDBWDChecking_TYPES
QUICKBIRD
#SPOT4
SPOT5
RADARSAT1
RADARSAT2
FORMOSAT
#GEOEYE
#IKONOS
#PALSAR
#WORLDVIEW2
TERRASARX
ENVISAT
#COSMOSKYMED
#MODIS
#ONERA
#RAPIDEYE
)
set( FWDBWDChecking_TESTNB 0)
foreach( file ${FWDBWDChecking_INPUTS} )
list(GET FWDBWDChecking_TYPES ${FWDBWDChecking_TESTNB} current_type )
math(EXPR FWDBWDChecking_TESTNB "${FWDBWDChecking_TESTNB} + 1")
##>set(FWDBWDChecking_TYPES
##>QUICKBIRD
###SPOT4
##>SPOT5
##>RADARSAT1
##>RADARSAT2
##>FORMOSAT
###GEOEYE
###IKONOS
###PALSAR
###WORLDVIEW2
##>TERRASARX
##>ENVISAT
###COSMOSKYMED
###MODIS
###ONERA
###RAPIDEYE
##>)
##>set( FWDBWDChecking_TESTNB 0)
##>foreach( file ${FWDBWDChecking_INPUTS} )
##>list(GET FWDBWDChecking_TYPES ${FWDBWDChecking_TESTNB} current_type )
##>math(EXPR FWDBWDChecking_TESTNB "${FWDBWDChecking_TESTNB} + 1")
otb_add_test(NAME prTvForwardBackwardProjectionConsistency_${current_type} COMMAND otbTransformTestDriver
otbForwardBackwardProjectionConsistency
${file}
${INPUTDATA}/DEM/srtm_directory/
${INPUTDATA}/DEM/egm96.grd #Not used
20 # nb Tested Points
1 # Tolerance in pixels
1 # Verbose
)
endforeach()
##>otb_add_test(NAME prTvForwardBackwardProjectionConsistency_${current_type} COMMAND otbTransformTestDriver
##>otbForwardBackwardProjectionConsistency
##>${file}
##>${INPUTDATA}/DEM/srtm_directory/
##>${INPUTDATA}/DEM/egm96.grd #Not used
##>20 # nb Tested Points
##>1 # Tolerance in pixels
##>1 # Verbose
##>)
##>endforeach()
##>set(SARSENSORMODEL_TYPES
##>"RADARSAT1/GOMA/SCENE01/"
##>"RADARSAT2/ALTONA/Fine_Quad-Pol_Dataset/PK6621_DK406_FQ9_20080405_124900_HH_VV_HV_VH_SLC_Altona/product.xml"
##>"ENVISAT_ASAR_SCENE01/ASA_APS_1PNDPA20030821_7713.N1"
##>"PALSAR/200801280007/l1data/VOL-ALPSRP037120700-H1.1__A"
##>"TERRASARX/PANGKALANBUUN/IMAGEDATA/IMAGE_HH_SRA_stripFar_008.cos"
##>)
##>foreach( file ${SARSENSORMODEL_TYPES})
##># Get the sensor name
##>set(sharp_regexp "([0-9A-Za-z_]*)[ ]*/[ ]*(.*)")
##>string(REGEX REPLACE "${sharp_regexp}" "\\1" sensor_name "${file}")
##># Tests
##>otb_add_test(NAME prTvSensorModelGrid_${sensor_name} COMMAND otbTransformTestDriver
##>--compare-n-images ${EPSILON_6} 2
##>${BASELINE}/prTvSensorModelGridDeltaX_${sensor_name}.tif
##>${TEMP}/prTvSensorModelGridDeltaX_${sensor_name}.tif
##>${BASELINE}/prTvSensorModelGridDeltaY_${sensor_name}.tif
##>${TEMP}/prTvSensorModelGridDeltaY_${sensor_name}.tif
##>otbSensorModelGrid
##>LARGEINPUT{${file}}
##>${TEMP}/prTvSensorModelGridDeltaX_${sensor_name}.tif
##>${TEMP}/prTvSensorModelGridDeltaY_${sensor_name}.tif
##>10 10
##>)
##>otb_add_test(NAME prTvForwardSensorModelGrid_${sensor_name} COMMAND otbTransformTestDriver
##>--compare-n-images ${EPSILON_6} 2
##>${BASELINE}/prTvForwardSensorModelGridX_${sensor_name}.tif
##>${TEMP}/prTvForwardSensorModelGridX_${sensor_name}.tif
##>${BASELINE}/prTvForwardSensorModelGridY_${sensor_name}.tif
##>${TEMP}/prTvForwardSensorModelGridY_${sensor_name}.tif
##>otbForwardSensorModelGrid
##>LARGEINPUT{${file}}
##>${TEMP}/prTvForwardSensorModelGridX_${sensor_name}.tif
##>${TEMP}/prTvForwardSensorModelGridY_${sensor_name}.tif
##>10 10
##>)
##>endforeach()
set(SARSENSORMODEL_TYPES
"RADARSAT1/GOMA/SCENE01/"
"RADARSAT2/ALTONA/Fine_Quad-Pol_Dataset/PK6621_DK406_FQ9_20080405_124900_HH_VV_HV_VH_SLC_Altona/product.xml"
"ENVISAT_ASAR_SCENE01/ASA_APS_1PNDPA20030821_7713.N1"
"PALSAR/200801280007/l1data/VOL-ALPSRP037120700-H1.1__A"
"TERRASARX/PANGKALANBUUN/IMAGEDATA/IMAGE_HH_SRA_stripFar_008.cos"
)
foreach( file ${SARSENSORMODEL_TYPES})
# Get the sensor name
set(sharp_regexp "([0-9A-Za-z_]*)[ ]*/[ ]*(.*)")
string(REGEX REPLACE "${sharp_regexp}" "\\1" sensor_name "${file}")
# Tests
otb_add_test(NAME prTvSensorModelGrid_${sensor_name} COMMAND otbTransformTestDriver
--compare-n-images ${EPSILON_6} 2
${BASELINE}/prTvSensorModelGridDeltaX_${sensor_name}.tif
${TEMP}/prTvSensorModelGridDeltaX_${sensor_name}.tif
${BASELINE}/prTvSensorModelGridDeltaY_${sensor_name}.tif
${TEMP}/prTvSensorModelGridDeltaY_${sensor_name}.tif
otbSensorModelGrid
LARGEINPUT{${file}}
${TEMP}/prTvSensorModelGridDeltaX_${sensor_name}.tif
${TEMP}/prTvSensorModelGridDeltaY_${sensor_name}.tif
10 10
)
otb_add_test(NAME prTvForwardSensorModelGrid_${sensor_name} COMMAND otbTransformTestDriver
--compare-n-images ${EPSILON_6} 2
${BASELINE}/prTvForwardSensorModelGridX_${sensor_name}.tif
${TEMP}/prTvForwardSensorModelGridX_${sensor_name}.tif
${BASELINE}/prTvForwardSensorModelGridY_${sensor_name}.tif
${TEMP}/prTvForwardSensorModelGridY_${sensor_name}.tif
otbForwardSensorModelGrid
LARGEINPUT{${file}}
${TEMP}/prTvForwardSensorModelGridX_${sensor_name}.tif
${TEMP}/prTvForwardSensorModelGridY_${sensor_name}.tif
10 10
)
endforeach()
otb_add_test(NAME bfTvInverseLogPolarTransform COMMAND otbTransformTestDriver
--compare-ascii ${NOTOL}
${BASELINE_FILES}/bfInverseLogPolarTransformResults.txt
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment