# hrepack issue

**URL:** <https://forum.hdfgroup.org/t/hrepack-issue/2850>\
**Category:** Hdf-forum archives\
**Created:** [March 18, 2013, 5:30pm UTC](https://forum.hdfgroup.org/t/hrepack-issue/2850 "2013-03-18T17:30:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sudipta\_sarkar](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@sudipta\_sarkar](https://forum.hdfgroup.org/u/sudipta_sarkar)\
**Post date:** [March 18, 2013, 5:30pm UTC](https://forum.hdfgroup.org/t/hrepack-issue/2850/1 "2013-03-18T17:30:47Z")

</div>

Hi All,  
I am facing a strange problem related to HDF tool "hrepack".  
I am trying to use the hrepack tool to copy and compress a particular MODIS  
dataset as follows:

hrepack -i MOD13Q1.A2003001.h12v09.006.201029312065.hdf -o test.hdf.temp -t  
'\*:GZIP 4'

where MOD13Q1.A2003001.h12v09.006.201029312065.hdf is a HDF4 MODIS dataset.

When I run the tool on the above file that has 12 SDS inside, the tool  
throws up an error:

"Failed to check empty SDS \<MODIS\_Grid\_16DAY\_250m\_500m\_VI/Data Fields/250m  
16 days view zenith angle\>"

The strange thing is that the particular SDS "250m 16 days view zenith  
angle" is not empty at all and is filled with valid data. I can open that  
SDS in HDFView or in ENVI. I can also run other in-house hdf tools on that  
file and sds and yet hrepack complains about it being empty and cannot  
process this and all similar files.

I am not even sure as to what to look for and what is wrong.  
Any suggestions or comments from anyone will be most welcome.  
Thanks

---

<div class="post-metadata">

**Author:** ![Peter\_Cao](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/p/e68b1a/32.png) [@Peter\_Cao](https://forum.hdfgroup.org/u/Peter_Cao)\
**Post date:** [March 19, 2013, 3:34pm UTC](https://forum.hdfgroup.org/t/hrepack-issue/2850/2 "2013-03-19T15:34:50Z")

</div>

Hi Sudipta,

I downloaded a similar file, MOD13Q1.A2003001.h12v09.005.2007261172941.hdf,  
from [http://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.005/2003.01.01/](http://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.005/2003.01.01/)

I used the same option as you did but I could not reproduce the problem. Everything  
worked fine. The new file is a little bigger than the original one since the original file  
was compressed with GZIP level 5.

Could you download the file and try again? Just want to make sure the file is not corrupted  
along the way.

Thanks  
--pc

> **···**
>
> On 3/18/2013 12:30 PM, sudipta sarkar wrote:
> 
> > Hi All,  
> > I am facing a strange problem related to HDF tool "hrepack".  
> > I am trying to use the hrepack tool to copy and compress a particular MODIS dataset as follows:
> > 
> > hrepack -i MOD13Q1.A2003001.h12v09.006.201029312065.hdf -o test.hdf.temp -t '\*:GZIP 4'
> > 
> > where MOD13Q1.A2003001.h12v09.006.201029312065.hdf is a HDF4 MODIS dataset.
> > 
> > When I run the tool on the above file that has 12 SDS inside, the tool throws up an error:
> > 
> > "Failed to check empty SDS \<MODIS\_Grid\_16DAY\_250m\_500m\_VI/Data Fields/250m 16 days view zenith angle\>"
> > 
> > The strange thing is that the particular SDS "250m 16 days view zenith angle" is not empty at all and is filled with valid data. I can open that SDS in HDFView or in ENVI. I can also run other in-house hdf tools on that file and sds and yet hrepack complains about it being empty and cannot process this and all similar files.
> > 
> > I am not even sure as to what to look for and what is wrong.  
> > Any suggestions or comments from anyone will be most welcome.  
> > Thanks
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![sudipta\_sarkar](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@sudipta\_sarkar](https://forum.hdfgroup.org/u/sudipta_sarkar)\
**Post date:** [March 19, 2013, 3:38pm UTC](https://forum.hdfgroup.org/t/hrepack-issue/2850/3 "2013-03-19T15:38:55Z")

</div>

Hi Peter  
Sorry I should have clarified earlier. You will not get this problem from  
any of the files downloaded from the public site. We are facing this error  
for the files that are being generated for the upcoming Collection 6  
product of MODIS. I had sent a ftp link to Barbara from your organization  
earlier to download one such file. I am forwarding the same link to you as  
well:

\*You have 10 days from 03-19-2013 to download the file(s) from the  
following URL:\*

\*[https://webdrive.gsfc.nasa.gov/shortauth/sudipta.sarkar/gz005oC](https://webdrive.gsfc.nasa.gov/shortauth/sudipta.sarkar/gz005oC)\*

\*Please use the following to login:\*

\*username = barbara\_hdf  
password = hdfmodis\*

If you download the file from this link, you should get the hrepack error  
that I mentioned earlier.  
Let me know if you face any problem in downloading the file.  
Thanks

> **···**
>
> On Tue, Mar 19, 2013 at 11:34 AM, Peter Cao \<xcao@hdfgroup.org\> wrote:
> 
> > Hi Sudipta,
> > 
> > I downloaded a similar file, MOD13Q1.A2003001.h12v09.005.2007261172941.hdf,  
> > from [http://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.005/2003.01.01/](http://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.005/2003.01.01/)
> > 
> > I used the same option as you did but I could not reproduce the problem.  
> > Everything  
> > worked fine. The new file is a little bigger than the original one since  
> > the original file  
> > was compressed with GZIP level 5.
> > 
> > Could you download the file and try again? Just want to make sure the file  
> > is not corrupted  
> > along the way.
> > 
> > Thanks  
> > --pc
> > 
> > On 3/18/2013 12:30 PM, sudipta sarkar wrote:
> > 
> > Hi All,  
> > I am facing a strange problem related to HDF tool "hrepack".  
> > I am trying to use the hrepack tool to copy and compress a particular  
> > MODIS dataset as follows:
> > 
> > hrepack -i MOD13Q1.A2003001.h12v09.006.201029312065.hdf -o test.hdf.temp  
> > -t '\*:GZIP 4'
> > 
> > where MOD13Q1.A2003001.h12v09.006.201029312065.hdf is a HDF4 MODIS  
> > dataset.
> > 
> > When I run the tool on the above file that has 12 SDS inside, the tool  
> > throws up an error:
> > 
> > "Failed to check empty SDS \<MODIS\_Grid\_16DAY\_250m\_500m\_VI/Data Fields/250m  
> > 16 days view zenith angle\>"
> > 
> > The strange thing is that the particular SDS "250m 16 days view zenith  
> > angle" is not empty at all and is filled with valid data. I can open that  
> > SDS in HDFView or in ENVI. I can also run other in-house hdf tools on that  
> > file and sds and yet hrepack complains about it being empty and cannot  
> > process this and all similar files.
> > 
> > I am not even sure as to what to look for and what is wrong.  
> > Any suggestions or comments from anyone will be most welcome.  
> > Thanks
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.Hdf-forum@hdfgroup.orghttp://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![Peter\_Cao](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/p/e68b1a/32.png) [@Peter\_Cao](https://forum.hdfgroup.org/u/Peter_Cao)\
**Post date:** [March 19, 2013, 4:50pm UTC](https://forum.hdfgroup.org/t/hrepack-issue/2850/4 "2013-03-19T16:50:54Z")

</div>

Hi Sudipta,

I downloaded and tried the file. It worked OK.

I am using the latest version of hdf4.  
hrepack -V  
hrepack, HDF Version 4.2 Release 9-post0, February 25, 2013

What version did you use? We had this issue with older version of hdf4.

Thanks  
--pc

> **···**
>
> On 3/19/2013 10:38 AM, sudipta sarkar wrote:
> 
> > Hi Peter  
> > Sorry I should have clarified earlier. You will not get this problem from any of the files downloaded from the public site. We are facing this error for the files that are being generated for the upcoming Collection 6 product of MODIS. I had sent a ftp link to Barbara from your organization earlier to download one such file. I am forwarding the same link to you as well:
> > 
> > \*You have 10 days from 03-19-2013 to download the file(s) from the following URL:\*
> > 
> > \*[https://webdrive.gsfc.nasa.gov/shortauth/sudipta.sarkar/gz005oC](https://webdrive.gsfc.nasa.gov/shortauth/sudipta.sarkar/gz005oC)\*
> > 
> > \*Please use the following to login:\*
> > 
> > \*username = barbara\_hdf  
> > password = hdfmodis\*
> > 
> > If you download the file from this link, you should get the hrepack error that I mentioned earlier.  
> > Let me know if you face any problem in downloading the file.  
> > Thanks
> > 
> > On Tue, Mar 19, 2013 at 11:34 AM, Peter Cao \<xcao@hdfgroup.org \> \<mailto:xcao@hdfgroup.org\>\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Hi Sudipta,
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;I downloaded a similar file,  
> > &nbsp;&nbsp;&nbsp;&nbsp;MOD13Q1.A2003001.h12v09.005.2007261172941.hdf,  
> > &nbsp;&nbsp;&nbsp;&nbsp;from [http://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.005/2003.01.01/](http://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.005/2003.01.01/)
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;I used the same option as you did but I could not reproduce the  
> > &nbsp;&nbsp;&nbsp;&nbsp;problem. Everything  
> > &nbsp;&nbsp;&nbsp;&nbsp;worked fine. The new file is a little bigger than the original one  
> > &nbsp;&nbsp;&nbsp;&nbsp;since the original file  
> > &nbsp;&nbsp;&nbsp;&nbsp;was compressed with GZIP level 5.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Could you download the file and try again? Just want to make sure  
> > &nbsp;&nbsp;&nbsp;&nbsp;the file is not corrupted  
> > &nbsp;&nbsp;&nbsp;&nbsp;along the way.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Thanks  
> > &nbsp;&nbsp;&nbsp;&nbsp;--pc
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;On 3/18/2013 12:30 PM, sudipta sarkar wrote:
> > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;Hi All,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;I am facing a strange problem related to HDF tool "hrepack".  
> > > &nbsp;&nbsp;&nbsp;&nbsp;I am trying to use the hrepack tool to copy and compress a  
> > > &nbsp;&nbsp;&nbsp;&nbsp;particular MODIS dataset as follows:
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;hrepack -i MOD13Q1.A2003001.h12v09.006.201029312065.hdf -o  
> > > &nbsp;&nbsp;&nbsp;&nbsp;test.hdf.temp -t '\*:GZIP 4'
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;where MOD13Q1.A2003001.h12v09.006.201029312065.hdf is a HDF4  
> > > &nbsp;&nbsp;&nbsp;&nbsp;MODIS dataset.
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;When I run the tool on the above file that has 12 SDS inside,  
> > > &nbsp;&nbsp;&nbsp;&nbsp;the tool throws up an error:
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;"Failed to check empty SDS \<MODIS\_Grid\_16DAY\_250m\_500m\_VI/Data  
> > > &nbsp;&nbsp;&nbsp;&nbsp;Fields/250m 16 days view zenith angle\>"
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;The strange thing is that the particular SDS "250m 16 days view  
> > > &nbsp;&nbsp;&nbsp;&nbsp;zenith angle" is not empty at all and is filled with valid data.  
> > > &nbsp;&nbsp;&nbsp;&nbsp;I can open that SDS in HDFView or in ENVI. I can also run other  
> > > &nbsp;&nbsp;&nbsp;&nbsp;in-house hdf tools on that file and sds and yet hrepack complains  
> > > &nbsp;&nbsp;&nbsp;&nbsp;about it being empty and cannot process this and all similar files.
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;I am not even sure as to what to look for and what is wrong.  
> > > &nbsp;&nbsp;&nbsp;&nbsp;Any suggestions or comments from anyone will be most welcome.  
> > > &nbsp;&nbsp;&nbsp;&nbsp;Thanks
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > &nbsp;&nbsp;&nbsp;&nbsp;Hdf-forum is for HDF software users discussion.  
> > > &nbsp;&nbsp;&nbsp;&nbsp;Hdf-forum@hdfgroup.org \<mailto:Hdf-forum@hdfgroup.org\>  
> > > &nbsp;&nbsp;&nbsp;&nbsp;[http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > &nbsp;&nbsp;&nbsp;&nbsp;Hdf-forum is for HDF software users discussion.  
> > &nbsp;&nbsp;&nbsp;&nbsp;Hdf-forum@hdfgroup.org \<mailto:Hdf-forum@hdfgroup.org\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;[http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)

---

<div class="post-metadata">

**Author:** ![sudipta\_sarkar](https://forum.hdfgroup.org/letter_avatar_proxy/v4/letter/s/f6c823/32.png) [@sudipta\_sarkar](https://forum.hdfgroup.org/u/sudipta_sarkar)\
**Post date:** [March 19, 2013, 4:53pm UTC](https://forum.hdfgroup.org/t/hrepack-issue/2850/5 "2013-03-19T16:53:20Z")

</div>

O maybe thats the reason. We are using Version 4.2 Release 5.

> **···**
>
> On Tue, Mar 19, 2013 at 12:50 PM, Peter Cao \<xcao@hdfgroup.org\> wrote:
> 
> > Hi Sudipta,
> > 
> > I downloaded and tried the file. It worked OK.
> > 
> > I am using the latest version of hdf4.  
> > hrepack -V  
> > hrepack, HDF Version 4.2 Release 9-post0, February 25, 2013
> > 
> > What version did you use? We had this issue with older version of hdf4.
> > 
> > Thanks  
> > --pc
> > 
> > On 3/19/2013 10:38 AM, sudipta sarkar wrote:
> > 
> > &nbsp;&nbsp;Hi Peter  
> > Sorry I should have clarified earlier. You will not get this problem from  
> > any of the files downloaded from the public site. We are facing this error  
> > for the files that are being generated for the upcoming Collection 6  
> > product of MODIS. I had sent a ftp link to Barbara from your organization  
> > earlier to download one such file. I am forwarding the same link to you as  
> > well:
> > 
> > \*You have 10 days from 03-19-2013 to download the file(s) from the  
> > following URL:\*
> > 
> > \*[https://webdrive.gsfc.nasa.gov/shortauth/sudipta.sarkar/gz005oC](https://webdrive.gsfc.nasa.gov/shortauth/sudipta.sarkar/gz005oC)\*
> > 
> > \*Please use the following to login:\*
> > 
> > \*username = barbara\_hdf  
> > password = hdfmodis\*
> > 
> > If you download the file from this link, you should get the hrepack error  
> > that I mentioned earlier.  
> > Let me know if you face any problem in downloading the file.  
> > Thanks
> > 
> > On Tue, Mar 19, 2013 at 11:34 AM, Peter Cao \<xcao@hdfgroup.org\> wrote:
> > 
> > > Hi Sudipta,
> > > 
> > > I downloaded a similar file,  
> > > MOD13Q1.A2003001.h12v09.005.2007261172941.hdf,  
> > > from [http://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.005/2003.01.01/](http://e4ftl01.cr.usgs.gov/MOLT/MOD13Q1.005/2003.01.01/)
> > > 
> > > I used the same option as you did but I could not reproduce the problem.  
> > > Everything  
> > > worked fine. The new file is a little bigger than the original one since  
> > > the original file  
> > > was compressed with GZIP level 5.
> > > 
> > > Could you download the file and try again? Just want to make sure the  
> > > file is not corrupted  
> > > along the way.
> > > 
> > > Thanks  
> > > --pc
> > > 
> > > On 3/18/2013 12:30 PM, sudipta sarkar wrote:
> > > 
> > > Hi All,  
> > > I am facing a strange problem related to HDF tool "hrepack".  
> > > I am trying to use the hrepack tool to copy and compress a particular  
> > > MODIS dataset as follows:
> > > 
> > > hrepack -i MOD13Q1.A2003001.h12v09.006.201029312065.hdf -o test.hdf.temp  
> > > -t '\*:GZIP 4'
> > > 
> > > where MOD13Q1.A2003001.h12v09.006.201029312065.hdf is a HDF4 MODIS  
> > > dataset.
> > > 
> > > When I run the tool on the above file that has 12 SDS inside, the tool  
> > > throws up an error:
> > > 
> > > "Failed to check empty SDS \<MODIS\_Grid\_16DAY\_250m\_500m\_VI/Data  
> > > Fields/250m 16 days view zenith angle\>"
> > > 
> > > The strange thing is that the particular SDS "250m 16 days view zenith  
> > > angle" is not empty at all and is filled with valid data. I can open that  
> > > SDS in HDFView or in ENVI. I can also run other in-house hdf tools on that  
> > > file and sds and yet hrepack complains about it being empty and cannot  
> > > process this and all similar files.
> > > 
> > > I am not even sure as to what to look for and what is wrong.  
> > > Any suggestions or comments from anyone will be most welcome.  
> > > Thanks
> > > 
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.Hdf-forum@hdfgroup.orghttp://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org
> > > 
> > > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > > Hdf-forum is for HDF software users discussion.  
> > > Hdf-forum@hdfgroup.org  
> > > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.Hdf-forum@hdfgroup.orghttp://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > Hdf-forum is for HDF software users discussion.  
> > Hdf-forum@hdfgroup.org  
> > [http://mail.hdfgroup.org/mailman/listinfo/hdf-forum\_hdfgroup.org](http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org)
