Importing h5 data into python
Posted: Mon Aug 22, 2022 2:44 am America/New_York
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
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