[R] #2 (Thanks) → Consultation about reading hdf files from nsidc

David Winsemius dwinsemius at comcast.net
Thu Oct 29 19:50:41 CET 2015


> On Oct 29, 2015, at 10:21 AM, Jorge Rabinovich <bibtri at gmail.com> wrote:
> 
> City Bell, Thursday, October 29, 2015, 14:10
> 
> Hi there:
> On 10/29/2015 10:12 AM, HDF-EOS Tools and Information Center Help wrote:
>> Hi, Jorge!   The AMSR-E file you're trying to read with R is HDF"4", not HDF"5" file format. Unfortunately, R does not support HDF4 directly. You can either convert it to HDF5 using h4toh5tool [1] or to netCDF using h4tonccf [2]. Then, you can use HDF5 or netCDF R routines to access the file.
>> [1] https://www.hdfgroup.org/h4toh5/
>> [2] http://www.hdfeos.org/software/h4cflib.php
> Thanks a million.
> 
> I downloaded the h4h5tools-2.2.2-win64.zip file and obtained the H4TOH5-2.2.2-win64.exe after decompressing.
> 
> I executed that file and installed the H4TOH5-2.2.2-win64 without any problem. I also downloaded the H4TOH5 Users Guide and Reference Manual.
> 
> However I am not able to make the conversion. I went to the "command" option of Windows, and I pasted the following:
> 
> C:\Program Files\HDF_Group\H4TOH5\2.2.2\bin\h4toh5convert.exe D:\Guanacos_3\Consultoria Santa Cruz\Datos SC\Clima\MODIS Snow\AMSR_E_L3_5DaySnow_V09_20050126.hdf
> 
> and I got the following message: "C:\Program" is not recognized a an internal or external command.

It appears that you do not know how to tell Windows how to deal with a space in your command. That not really an on topic question for R-help. You need to learn how to use the operating system you have chosen. It might be a simple as not using full path to your program if it is registered, or you might need to navigate to the “Program Files” directory, or <something else>.


> 
> What do you think I am doing wrong?
> 
> Thanks again,
> 
> Jorge
> 
> -- 
> Dr.  Jorge Rabinovich
> Centro de Estudios Parasitológicos y de Vectores (CEPAVE)
> Universidad Nacional de La Plata
> Boulevard 120 s/n (e/ 61 y 62), B1902CHX La Plata
> Prov. de Buenos Aires, Argentina
> Tel/fax directo: 0221-472-4694
> E-mail: Jorge.Rabinovich at gmail.com (preferido)
> E-mail: jrabinovich at cepave.edu.ar (alternativo)
> Sitio Web Personal: http://www.ecopaedia.com.ar/cv/
> Sitio Web Institucional: http://www.cepave.edu.ar
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA



More information about the R-help mailing list