|
27 | 27 | public class MatchupToolIntegrationTest_SMOSL1_sic_cci extends AbstractUsecaseIntegrationTest { |
28 | 28 |
|
29 | 29 | @Test |
30 | | - public void testMatchup() throws IOException, SQLException, ParseException, InvalidRangeException { |
31 | | - final UseCaseConfig useCaseConfig = createUseCaseConfigBuilder() |
| 30 | + public void testMatchup_DTUSIC1() throws IOException, SQLException, ParseException, InvalidRangeException { |
| 31 | + final UseCaseConfig useCaseConfig = createUseCaseConfigBuilder("DTUSIC1-sic-cci") |
32 | 32 | .withTimeDeltaSeconds(28800, null) |
33 | 33 | .withMaxPixelDistanceKm(10, null) |
34 | 34 | .createConfig(); |
35 | 35 | final File useCaseConfigFile = storeUseCaseConfig(useCaseConfig, "usecase-44.xml"); |
36 | 36 |
|
37 | | - insert_SIC_CCI(); |
38 | | - insert_miras_CDF3TA(); |
| 37 | + insert_DTU_SIC_CCI(); |
| 38 | + insert_miras_CDF3TA_June(); |
39 | 39 |
|
40 | 40 | final String[] args = new String[]{"-c", configDir.getAbsolutePath(), "-u", useCaseConfigFile.getName(), "-start", "2016-156", "-end", "2016-156"}; |
41 | 41 | MatchupToolMain.main(args); |
@@ -79,31 +79,64 @@ public void testMatchup() throws IOException, SQLException, ParseException, Inva |
79 | 79 | } |
80 | 80 | } |
81 | 81 |
|
82 | | - private void insert_SIC_CCI() throws IOException, SQLException { |
| 82 | + @Test |
| 83 | + public void testMatchup_ANTXXXI() throws IOException, SQLException, ParseException, InvalidRangeException { |
| 84 | + final UseCaseConfig useCaseConfig = createUseCaseConfigBuilder("ANTXXXI-sic-cci") |
| 85 | + .withTimeDeltaSeconds(86400, null) |
| 86 | + .withMaxPixelDistanceKm(14, null) |
| 87 | + .createConfig(); |
| 88 | + final File useCaseConfigFile = storeUseCaseConfig(useCaseConfig, "usecase-44.xml"); |
| 89 | + |
| 90 | + insert_ANT_SIC_CCI(); |
| 91 | + insert_miras_CDF3TA_Jan(); |
| 92 | + |
| 93 | + final String[] args = new String[]{"-c", configDir.getAbsolutePath(), "-u", useCaseConfigFile.getName(), "-start", "2016-001", "-end", "2016-002"}; |
| 94 | + MatchupToolMain.main(args); |
| 95 | + |
| 96 | + // @todo 1/1 add assertions tb 2023-02-09 |
| 97 | + } |
| 98 | + |
| 99 | + private void insert_DTU_SIC_CCI() throws IOException, SQLException { |
83 | 100 | final String sensorKey = "DTUSIC1-sic-cci"; |
84 | 101 | final String relativeArchivePath = TestUtil.assembleFileSystemPath(new String[]{"insitu", "sic-cci", sensorKey, "v3", "QSCAT-vs-SMAP-vs-SMOS-vs-ASCAT-vs-AMSR2-vs-ERA-vs-DTUSIC1-2016-N.text"}, true); |
85 | 102 |
|
86 | 103 | final SatelliteObservation satelliteObservation = readSatelliteObservation(sensorKey, relativeArchivePath, "v3"); |
87 | 104 | storage.insert(satelliteObservation); |
88 | 105 | } |
89 | 106 |
|
90 | | - private void insert_miras_CDF3TA() throws IOException, SQLException { |
| 107 | + private void insert_ANT_SIC_CCI() throws IOException, SQLException { |
| 108 | + final String sensorKey = "ANTXXXI-sic-cci"; |
| 109 | + final String relativeArchivePath = TestUtil.assembleFileSystemPath(new String[]{"insitu", "sic-cci", sensorKey, "v3", "ASCAT-vs-AMSR2-vs-ERA-vs-ANTXXXI_2_FROSN_SeaIceObservations_reformatted.txt"}, true); |
| 110 | + |
| 111 | + final SatelliteObservation satelliteObservation = readSatelliteObservation(sensorKey, relativeArchivePath, "v3"); |
| 112 | + storage.insert(satelliteObservation); |
| 113 | + } |
| 114 | + |
| 115 | + private void insert_miras_CDF3TA_Jan() throws IOException, SQLException { |
| 116 | + final String sensorKey = "miras-smos-CDF3TA"; |
| 117 | + final String relativeArchivePath = TestUtil.assembleFileSystemPath(new String[]{sensorKey, "re07", "2016", "001", "SM_RE07_MIR_CDF3TA_20160101T000000_20160101T235959_330_001_7.tgz"}, true); |
| 118 | + |
| 119 | + final SatelliteObservation satelliteObservation = readSatelliteObservation(sensorKey, relativeArchivePath, "re07"); |
| 120 | + storage.insert(satelliteObservation); |
| 121 | + } |
| 122 | + |
| 123 | + private void insert_miras_CDF3TA_June() throws IOException, SQLException { |
91 | 124 | final String sensorKey = "miras-smos-CDF3TA"; |
92 | 125 | final String relativeArchivePath = TestUtil.assembleFileSystemPath(new String[]{sensorKey, "re07", "2016", "156", "SM_RE07_MIR_CDF3TA_20160604T000000_20160604T235959_330_001_7.tgz"}, true); |
93 | 126 |
|
94 | 127 | final SatelliteObservation satelliteObservation = readSatelliteObservation(sensorKey, relativeArchivePath, "re07"); |
95 | 128 | storage.insert(satelliteObservation); |
96 | 129 | } |
97 | 130 |
|
98 | | - private MatchupToolTestUseCaseConfigBuilder createUseCaseConfigBuilder() { |
| 131 | + private MatchupToolTestUseCaseConfigBuilder createUseCaseConfigBuilder(String sicSensor) { |
99 | 132 | final List<Sensor> sensorList = new ArrayList<>(); |
100 | | - final Sensor primary = new Sensor("DTUSIC1-sic-cci"); |
| 133 | + final Sensor primary = new Sensor(sicSensor); |
101 | 134 | primary.setPrimary(true); |
102 | 135 | sensorList.add(primary); |
103 | 136 | sensorList.add(new Sensor("miras-smos-CDF3TA")); |
104 | 137 |
|
105 | 138 | final List<com.bc.fiduceo.core.Dimension> dimensions = new ArrayList<>(); |
106 | | - dimensions.add(new com.bc.fiduceo.core.Dimension("DTUSIC1-sic-cci", 1, 1)); |
| 139 | + dimensions.add(new com.bc.fiduceo.core.Dimension(sicSensor, 1, 1)); |
107 | 140 | dimensions.add(new com.bc.fiduceo.core.Dimension("miras-smos-CDF3TA", 3, 3)); |
108 | 141 |
|
109 | 142 | return (MatchupToolTestUseCaseConfigBuilder) new MatchupToolTestUseCaseConfigBuilder("mmd44") |
|
0 commit comments