Page 1 of 1

Importing h5 data into python

Posted: Mon Aug 22, 2022 2:44 am America/New_York
by mbruins
To whom this may concern,

I am interested in importing black marble VNP46A2 data into python. I have run the script below, but I get the following error:

TypeError: h5py objects cannot be pickled

I am quite new to working with geospatial data and am a bit lost! Any help would be greatly appreciated.

Marianne

--code------------------------------------------------------------------------
import os
import h5py

# Set current directory
directory_path = os.getcwd()
print("My current directory is : " + directory_path)

filename = "VNP46A2.A2022207.h00v16.001.2022219104939.h5"

hf = h5py.File(filename, "w")

*********
TypeError: h5py objects cannot be pickled

Re: Importing h5 data into python

Posted: Mon Aug 22, 2022 10:23 am America/New_York
by LAADSx_UserServices_M
Dear Marianne:
For help with h5py code please contact https://www.h5py.org/. Otherwise, you can check out python examples for VNP46 data provided by the HDF-EOS Tools and Information Center at:
http://hdfeos.org/zoo/index_openLAADS_Examples.php#NPP_VIIRS
For further help/questions, contact hdfeos:
http://hdfeos.org/home/contact.php