diff --git a/test/scenario_5/temp.yaml b/test/scenario_5/temp.yaml new file mode 100644 index 000000000..38dd6bfb2 --- /dev/null +++ b/test/scenario_5/temp.yaml @@ -0,0 +1,16 @@ +aoi_group: + bounding_box: + - 28 + - 39 + - -123 + - -112 +date_group: + date_end: '20200130' + date_start: '20200124' + date_step: 3 +runtime_group: + output_directory: /Users/jlmd9g/software/RAiDER/test/scenario_5 + weather_model_directory: /Users/jlmd9g/software/RAiDER/test/scenario_5/weather_files +time_group: + time: 00:00:00 +weather_model: GMAO diff --git a/test/scenario_6/lat.hdr b/test/scenario_6/lat.hdr index 12b90e981..4e4b4b565 100644 --- a/test/scenario_6/lat.hdr +++ b/test/scenario_6/lat.hdr @@ -1,9 +1,14 @@ ENVI -samples = 226 -lines = 45 +description = { +lat.rdr} +samples = 7 +lines = 7 bands = 1 header offset = 0 file type = ENVI Standard -data type = 5 +data type = 4 interleave = bsq byte order = 0 +band names = { +Band 1} +data ignore value = -9999 diff --git a/test/scenario_6/lat.rdr b/test/scenario_6/lat.rdr index c3b3d4bdc..dbc9fa15e 100644 Binary files a/test/scenario_6/lat.rdr and b/test/scenario_6/lat.rdr differ diff --git a/test/scenario_6/lat.rdr.vrt b/test/scenario_6/lat.rdr.vrt deleted file mode 100644 index 702cf03c3..000000000 --- a/test/scenario_6/lat.rdr.vrt +++ /dev/null @@ -1,18 +0,0 @@ - - - - 21.493668454337 - 18.706121111652 - 15.763767828026 - 1.5837206786523 - - 0 - - lat.rdr - 1 - - - - - - diff --git a/test/scenario_6/lon.hdr b/test/scenario_6/lon.hdr index 12b90e981..28e98f018 100644 --- a/test/scenario_6/lon.hdr +++ b/test/scenario_6/lon.hdr @@ -1,9 +1,14 @@ ENVI -samples = 226 -lines = 45 +description = { +lon.rdr} +samples = 7 +lines = 7 bands = 1 header offset = 0 file type = ENVI Standard -data type = 5 +data type = 4 interleave = bsq byte order = 0 +band names = { +Band 1} +data ignore value = -9999 diff --git a/test/scenario_6/lon.rdr b/test/scenario_6/lon.rdr index d4617cc24..ab97f9cad 100644 Binary files a/test/scenario_6/lon.rdr and b/test/scenario_6/lon.rdr differ diff --git a/test/scenario_6/lon.rdr.aux.xml b/test/scenario_6/lon.rdr.aux.xml index 99011b51f..7790bf4ff 100644 --- a/test/scenario_6/lon.rdr.aux.xml +++ b/test/scenario_6/lon.rdr.aux.xml @@ -5,19 +5,14 @@ 1 0 - 5 + 4 ENVI Standard 0 bsq - 45 - 226 + 7 + 7 - - 0 - -96.050506796609 - -101.6383676311 - 19.143507420765 - + -9.99900000000000E+03 diff --git a/test/scenario_6/lon.rdr.vrt b/test/scenario_6/lon.rdr.vrt deleted file mode 100644 index 7ee762472..000000000 --- a/test/scenario_6/lon.rdr.vrt +++ /dev/null @@ -1,18 +0,0 @@ - - - - -98.241840984674 - -99.860320396801 - -101.6383676311 - 0.74882734423551 - - 0 - - lon.rdr - 1 - - - - - - diff --git a/test/scenario_6/warpedDEM.dem b/test/scenario_6/warpedDEM.dem deleted file mode 100644 index 1ef74c301..000000000 Binary files a/test/scenario_6/warpedDEM.dem and /dev/null differ diff --git a/test/scenario_6/warpedDEM.dem.aux.xml b/test/scenario_6/warpedDEM.dem.aux.xml deleted file mode 100644 index cc6ff8dc6..000000000 --- a/test/scenario_6/warpedDEM.dem.aux.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - BAND - - - 1 - 0 - 4 - ENVI Standard - 0 - bsq - 45 - 226 - - - 0.00000000000000E+00 - - diff --git a/test/scenario_6/warpedDEM.hdr b/test/scenario_6/warpedDEM.hdr deleted file mode 100644 index c60fbad61..000000000 --- a/test/scenario_6/warpedDEM.hdr +++ /dev/null @@ -1,9 +0,0 @@ -ENVI -samples = 226 -lines = 45 -bands = 1 -header offset = 0 -file type = ENVI Standard -data type = 4 -interleave = bsq -byte order = 0 diff --git a/test/scenario_6/wmtype b/test/scenario_6/wmtype deleted file mode 100644 index ff7600d03..000000000 --- a/test/scenario_6/wmtype +++ /dev/null @@ -1,2 +0,0 @@ -era5 -20100625000000 diff --git a/test/test_intersect.py b/test/test_intersect.py index 950119f49..5fd219060 100644 --- a/test/test_intersect.py +++ b/test/test_intersect.py @@ -44,7 +44,7 @@ def test_cube_intersect(wm): path_delays = os.path.join(SCENARIO_DIR, f'{wm}_hydro_{date}T{time.replace(":", "")}_ztd.tiff') da = xrr.open_rasterio(path_delays, band_as_variable=True)['band_1'] hyd = da.sel(x=-117.8, y=33.4, method='nearest').item() - np.testing.assert_almost_equal(gold[wm], hyd) + np.testing.assert_almost_equal(gold[wm], hyd, decimal=4) # Clean up files shutil.rmtree(SCENARIO_DIR) @@ -87,7 +87,7 @@ def test_gnss_intersect(wm): id = 'TORP' td = df.set_index('ID').loc[id, 'totalDelay'] - np.testing.assert_almost_equal(gold[wm], td.item()) + np.testing.assert_almost_equal(gold[wm], td.item(), decimal=4) shutil.rmtree(SCENARIO_DIR) [os.remove(f) for f in glob.glob(f'{wm}*')]