Converts .hdf file to .nc file using h4toncff_nc4 http://www.hdfeos.org/software/h4cflib.php

maiac_2nc4(file, converterPath = "./executables/h4toncff_nc4", cleanup = TRUE)

Arguments

file

absolute path of file to be converted

converterPath

location of converter function

cleanup

logical specifying whether to remove original .hdf file

Value

Absolute path of converted NetCDF file.

Examples

if (FALSE) { hdfPath <- maiac_downloadNorthAmerica("h01v04", 20171009, 2150) ncdfPath <- maiac_2nc4(hdfPath) nc <- ncdf4::nc_open(ncdfPath) nc }