Skip to content

Commit

Permalink
test_hdf4_read_online_8(): update URL
Browse files Browse the repository at this point in the history
Slightly related to #3348
  • Loading branch information
rouault committed Nov 27, 2024
1 parent 90c910b commit 638b0a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions autotest/gcore/hdf4_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,26 +364,26 @@ def test_hdf4_read_online_8():

# 5 MB
gdaltest.download_or_skip(
"https://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.006/2006.06.10/MOD13Q1.A2006161.h34v09.006.2015161173716.hdf",
"MOD13Q1.A2006161.h34v09.006.2015161173716.hdf",
"https://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.061/2006.06.10/MOD13Q1.A2006161.h34v09.061.2020265043931.hdf",
"MOD13Q1.A2006161.h34v09.061.2020265043931.hdf",
)

tst = gdaltest.GDALTest(
"HDF4Image",
"HDF4_EOS:EOS_GRID:tmp/cache/MOD13Q1.A2006161.h34v09.006.2015161173716.hdf:MODIS_Grid_16DAY_250m_500m_VI:250m 16 days NDVI",
"HDF4_EOS:EOS_GRID:tmp/cache/MOD13Q1.A2006161.h34v09.061.2020265043931.hdf:MODIS_Grid_16DAY_250m_500m_VI:250m 16 days NDVI",
1,
44174,
45111,
filename_absolute=1,
)

tst.testOpen()

ds = gdal.Open(
"HDF4_EOS:EOS_GRID:tmp/cache/MOD13Q1.A2006161.h34v09.006.2015161173716.hdf:MODIS_Grid_16DAY_250m_500m_VI:250m 16 days NDVI"
"HDF4_EOS:EOS_GRID:tmp/cache/MOD13Q1.A2006161.h34v09.061.2020265043931.hdf:MODIS_Grid_16DAY_250m_500m_VI:250m 16 days NDVI"
)

cs = ds.GetRasterBand(1).Checksum()
assert cs == 44174, "did not get expected checksum"
assert cs == 45111, "did not get expected checksum"

if "GetBlockSize" in dir(gdal.Band):
(blockx, blocky) = ds.GetRasterBand(1).GetBlockSize()
Expand Down

0 comments on commit 638b0a7

Please sign in to comment.