Skip to content

Commit

Permalink
Update Tests for HyBIG (#76)
Browse files Browse the repository at this point in the history
Updates Harmony Regression Test suite for latest HyBIG chnages.
  • Loading branch information
flamingbear committed Oct 19, 2023
1 parent 72020f9 commit 31fb757
Show file tree
Hide file tree
Showing 31 changed files with 242 additions and 142 deletions.
4 changes: 2 additions & 2 deletions test/hoss/HOSS_Regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
" hoss_shape_request = Request(collection=hoss_shape_info['collection'],\n",
" granule_id=hoss_shape_info['granule_id'],\n",
" shape=hoss_shape_info['shape_file_path'],\n",
" variables=['/Grid/precipitationCal'])\n",
" variables=['Grid/precipitationCal'])\n",
" submit_and_download(harmony_client, hoss_shape_request, hoss_shape_file_name)\n",
" assert exists(hoss_shape_file_name), 'Unsuccessful HOSS-Geographic polygon spatial subset request.'\n",
"\n",
Expand Down Expand Up @@ -527,7 +527,7 @@
" hoss_bounds_bbox = BBox(w=60, s=-15, e=75, n=0)\n",
" hoss_bounds_request = Request(collection=hoss_info['bounds_collection'],\n",
" granule_id=[hoss_info['bounds_granule_id']],\n",
" variables=['/Grid/precipitationCal'],\n",
" variables=['Grid/precipitationCal'],\n",
" spatial=hoss_bounds_bbox,\n",
" temporal={'start': datetime(2020, 1, 18, 18, 45, 0),\n",
" 'stop': datetime(2020, 1, 18, 19, 45, 0)})\n",
Expand Down
2 changes: 1 addition & 1 deletion test/hoss/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.3
0.1.4
294 changes: 182 additions & 112 deletions test/hybig/HyBIG_Regression.ipynb

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions test/hybig/reference_data/ASTGTMV003_N00E022_dem.jgw
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
0.09997222993612885
0.00027464982147761604
0.0
0.0
-0.049986114968064425
-179.95001388503192
89.97500694251596
-0.00027464982147761604
22.00013732491074
0.9998626750892612
Binary file modified test/hybig/reference_data/ASTGTMV003_N00E022_dem.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<PAMDataset>
<SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]</SRS>
<GeoTransform> -1.8000000000000000e+02, 9.9972229936128851e-02, 0.0000000000000000e+00, 9.0000000000000000e+01, 0.0000000000000000e+00, -4.9986114968064425e-02</GeoTransform>
<GeoTransform> 2.2000000000000000e+01, 2.7464982147761604e-04, 0.0000000000000000e+00, 1.0000000000000000e+00, 0.0000000000000000e+00, -2.7464982147761604e-04</GeoTransform>
<Metadata domain="IMAGE_STRUCTURE">
<MDI key="COMPRESSION">JPEG</MDI>
<MDI key="INTERLEAVE">PIXEL</MDI>
Expand Down
8 changes: 4 additions & 4 deletions test/hybig/reference_data/ASTGTMV003_N00E022_dem.pgw
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
0.09997222993612885
0.00027464982147761604
0.0
0.0
-0.049986114968064425
-179.95001388503192
89.97500694251596
-0.00027464982147761604
22.00013732491074
0.9998626750892612
Binary file modified test/hybig/reference_data/ASTGTMV003_N00E022_dem.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<PAMDataset>
<SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]</SRS>
<GeoTransform> -1.8000000000000000e+02, 9.9972229936128851e-02, 0.0000000000000000e+00, 9.0000000000000000e+01, 0.0000000000000000e+00, -4.9986114968064425e-02</GeoTransform>
<GeoTransform> 2.2000000000000000e+01, 2.7464982147761604e-04, 0.0000000000000000e+00, 1.0000000000000000e+00, 0.0000000000000000e+00, -2.7464982147761604e-04</GeoTransform>
</PAMDataset>
Binary file not shown.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
0.001
0.0
0.0
-0.002900232018561485
-29.9995
69.99854988399072
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<PAMDataset>
<SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]</SRS>
<GeoTransform> -3.0000000000000000e+01, 1.0000000000000000e-02, 0.0000000000000000e+00, 7.0000000000000000e+01, 0.0000000000000000e+00, -1.0000000000000000e-02</GeoTransform>
<GeoTransform> -3.0000000000000000e+01, 1.0000000000000000e-03, 0.0000000000000000e+00, 7.0000000000000000e+01, 0.0000000000000000e+00, -2.9002320185614848e-03</GeoTransform>
</PAMDataset>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
0.001
0.0
0.0
-0.002900232018561485
-25.9035
69.99854988399072
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<PAMDataset>
<SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]</SRS>
<GeoTransform> -2.0000000000000000e+01, 1.0000000000000000e-02, 0.0000000000000000e+00, 7.0000000000000000e+01, 0.0000000000000000e+00, -1.0000000000000000e-02</GeoTransform>
<GeoTransform> -2.5904000000000000e+01, 1.0000000000000000e-03, 0.0000000000000000e+00, 7.0000000000000000e+01, 0.0000000000000000e+00, -2.9002320185614848e-03</GeoTransform>
</PAMDataset>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
0.001
0.0
0.0
-0.002900232018561485
-21.8075
69.99854988399072
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<PAMDataset>
<SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]</SRS>
<GeoTransform> 2.2000000000000000e+01, 2.7464982147761604e-04, 0.0000000000000000e+00, 1.0000000000000000e+00, 0.0000000000000000e+00, -2.7464982147761604e-04</GeoTransform>
<GeoTransform> -2.1808000000000000e+01, 1.0000000000000000e-03, 0.0000000000000000e+00, 7.0000000000000000e+01, 0.0000000000000000e+00, -2.9002320185614848e-03</GeoTransform>
</PAMDataset>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
0.001
0.0
0.0
-0.002900232018561485
-17.7115
69.99854988399072
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<PAMDataset>
<SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]</SRS>
<GeoTransform> -1.7712000000000000e+01, 1.0000000000000000e-03, 0.0000000000000000e+00, 7.0000000000000000e+01, 0.0000000000000000e+00, -2.9002320185614848e-03</GeoTransform>
</PAMDataset>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
0.001
0.0
0.0
-0.002900232018561485
-13.615499999999999
69.99854988399072
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<PAMDataset>
<SRS dataAxisToSRSAxisMapping="2,1">GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]]</SRS>
<GeoTransform> -1.3616000000000000e+01, 1.0000000000000000e-03, 0.0000000000000000e+00, 7.0000000000000000e+01, 0.0000000000000000e+00, -2.9002320185614848e-03</GeoTransform>
</PAMDataset>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c00.png, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c00.pgw, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c00.png.aux.xml
/tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c01.png, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c01.pgw, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c01.png.aux.xml
/tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c02.png, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c02.pgw, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c02.png.aux.xml
/tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c03.png, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c03.pgw, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c03.png.aux.xml
/tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c04.png, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c04.pgw, /tmp/tmpkp0l7w_q/1e6d8e6a2c90bc1108f8dd03f2e2e7f30e379a984ce287da0e42efe14316c44a.r00c04.png.aux.xml
2 changes: 1 addition & 1 deletion test/hybig/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.3
0.0.4

0 comments on commit 31fb757

Please sign in to comment.