maiac_2nc4: Convert hdf file to .nc file

Description Usage Arguments Value Examples

Description

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

Usage

1
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

1
2
3
4
5
6
7
## Not run: 
hdfPath <- maiac_downloadNorthAmerica("h01v04", 20171009, 2150)
ncdfPath <- maiac_2nc4(hdfPath)
nc <- ncdf4::nc_open(ncdfPath)
nc

## End(Not run)

MazamaScience/MazamaSatelliteUtils documentation built on Dec. 17, 2021, 3:20 a.m.