|
9 | 9 | import com.bc.fiduceo.db.DbAndIOTestRunner; |
10 | 10 | import com.bc.fiduceo.util.NetCDFUtils; |
11 | 11 | import org.apache.commons.cli.ParseException; |
12 | | -import org.junit.Ignore; |
13 | 12 | import org.junit.Test; |
14 | 13 | import org.junit.runner.RunWith; |
15 | 14 | import ucar.ma2.InvalidRangeException; |
@@ -91,27 +90,18 @@ public void testMatchup() throws IOException, SQLException, ParseException, Inva |
91 | 90 | } |
92 | 91 |
|
93 | 92 | @Test |
94 | | - @Ignore |
95 | 93 | public void test_oome_crash() throws IOException, SQLException, ParseException { |
96 | | - final UseCaseConfig useCaseConfig = createUseCaseConfigBuilder("DTUSIC1-sic-cci") |
| 94 | + final UseCaseConfig useCaseConfig = createUseCaseConfigBuilder("ANTXXXI-sic-cci") |
97 | 95 | .withTimeDeltaSeconds(86400, null) |
98 | 96 | .withMaxPixelDistanceKm(14, null) |
99 | 97 | .createConfig(); |
100 | 98 | final File useCaseConfigFile = storeUseCaseConfig(useCaseConfig, "usecase-45.xml"); |
101 | 99 |
|
102 | | - insert_DTU_SIC_CCI("ASCAT-vs-AMSR2-vs-ERA5-vs-DTUSIC1-2018-S.text"); |
103 | | - insert_DTU_SIC_CCI("ASCAT-vs-AMSR2-vs-ERA5-vs-DTUSIC1-2018-N.text"); |
| 100 | + insert_Polarstern(); |
104 | 101 |
|
105 | | - insert_windsat_MD("09", "30", "RSS_WindSat_TB_L1C_r81462_20180930T055123_2018273_V08.0.nc"); |
106 | | - insert_windsat_MD("09", "30", "RSS_WindSat_TB_L1C_r81465_20180930T105600_2018273_V08.0.nc"); |
107 | | - insert_windsat_MD("09", "30", "RSS_WindSat_TB_L1C_r81466_20180930T123732_2018273_V08.0.nc"); |
108 | | - insert_windsat_MD("09", "30", "RSS_WindSat_TB_L1C_r81467_20180930T141905_2018273_V08.0.nc"); |
109 | | - insert_windsat_MD("09", "30", "RSS_WindSat_TB_L1C_r81468_20180930T160038_2018273_V08.0.nc"); |
110 | | - insert_windsat_MD("09", "30", "RSS_WindSat_TB_L1C_r81469_20180930T174209_2018273_V08.0.nc"); |
111 | | - insert_windsat_MD("09", "30", "RSS_WindSat_TB_L1C_r81470_20180930T192342_2018273_V08.0.nc"); |
112 | | - insert_windsat_MD("09", "30", "RSS_WindSat_TB_L1C_r81471_20180930T210513_2018273_V08.0.nc"); |
| 102 | + insert_windsat_MD("2016", "01", "15", "RSS_WindSat_TB_L1C_r67435_20160115T031230_2016015_V08.0.nc"); |
113 | 103 |
|
114 | | - final String[] args = new String[]{"-c", configDir.getAbsolutePath(), "-u", useCaseConfigFile.getName(), "-start", "2018-274", "-end", "2018-274"}; |
| 104 | + final String[] args = new String[]{"-c", configDir.getAbsolutePath(), "-u", useCaseConfigFile.getName(), "-start", "2016-015", "-end", "2016-015"}; |
115 | 105 | MatchupToolMain.main(args); |
116 | 106 | } |
117 | 107 |
|
@@ -139,9 +129,17 @@ private void insert_DTU_SIC_CCI(String fileName) throws IOException, SQLExceptio |
139 | 129 | storage.insert(satelliteObservation); |
140 | 130 | } |
141 | 131 |
|
142 | | - private void insert_windsat_MD(String month, String day, String filename) throws IOException, SQLException { |
| 132 | + private void insert_Polarstern() throws IOException, SQLException { |
| 133 | + final String sensorKey = "ANTXXXI-sic-cci"; |
| 134 | + 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); |
| 135 | + |
| 136 | + final SatelliteObservation satelliteObservation = readSatelliteObservation(sensorKey, relativeArchivePath, "v3"); |
| 137 | + storage.insert(satelliteObservation); |
| 138 | + } |
| 139 | + |
| 140 | + private void insert_windsat_MD(String year, String month, String day, String filename) throws IOException, SQLException { |
143 | 141 | final String sensorKey = "windsat-coriolis"; |
144 | | - final String relativeArchivePath = TestUtil.assembleFileSystemPath(new String[]{sensorKey, "v1.0", "2018", month, day, filename}, true); |
| 142 | + final String relativeArchivePath = TestUtil.assembleFileSystemPath(new String[]{sensorKey, "v1.0", year, month, day, filename}, true); |
145 | 143 |
|
146 | 144 | final SatelliteObservation satelliteObservation = readSatelliteObservation(sensorKey, relativeArchivePath, "v1.0"); |
147 | 145 | storage.insert(satelliteObservation); |
|
0 commit comments