OSError: [Errno -101] NetCDF4: HDF error:

Post Reply
UanGQ1009
Posts: 4
Joined: Wed Sep 25, 2019 1:44 pm
company / institution: University of Copenhagen
Location: Copenhagen

OSError: [Errno -101] NetCDF4: HDF error:

Post by UanGQ1009 »

Hi fsteinmetz,

I tried to process OLCI images using POLYMER. But now it throws some error messages as follows:

OSError: [Errno -101] NetCDF4: HDF error: '/mnt/sf_share/olci/S3A_OL_1_EFR____20200402T015923_20200402T020223_20200403T060843_0179_056_331_2160_LN1_O_NT_002.SEN3/Oa01_radiance.nc

And my code is:

for fid in range(1):
olci_name = olci_names[fid]
if os.path.exists(os.path.join(os.path.split(olci_name)[0], 'Oa01_radiance.nc')):
print(olci_name)

run_atm_corr(
Level1_OLCI(
olci_name,
landmask='default'),
Level2_NETCDF(outdir=out_dir)
)

Here olci_names represent the absolute paths of OLCI images. How do I solve this issue?

Best regards,
Qi Guan
User avatar
fsteinmetz
Site Admin
Posts: 315
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: OSError: [Errno -101] NetCDF4: HDF error:

Post by fsteinmetz »

Hi, the path to OLCI products has to be the path to the SEN3 directory, not the Oa01_radiance.nc file.
Cheers, François
Post Reply