NetCDF: HDF error when processing MODIST and VIIRSN
Posted: Thu Feb 04, 2021 2:58 pm
Hello,
I have processed about 1200 images of MODISA from L1C to L2 without any trouble. I am now trying to process about the same number of images of MODIST and VIIRSN for the same dates and locations. It worked for 300 images for VIIRS and 348 images for MODIST, but after that, it throws me the following error:
Starting processing at 2021-02-04 09:27:37.091891
Initializing output file "/home/gbourdin/data/T2018174205500.POLY_L2_MODIS.nc"
Processing block: size (500, 400), offset (0, 0)
Processing block: size (500, 400), offset (0, 400)
Processing block: size (500, 400), offset (0, 800)
Processing block: size (500, 154), offset (0, 1200)
Processing block: size (500, 400), offset (500, 0)
Processing block: size (500, 400), offset (500, 400)
Processing block: size (500, 400), offset (500, 800)
Processing block: size (500, 154), offset (500, 1200)
Traceback (most recent call last):
File "POLYbatchL2.py", line 255, in <module>
L2process(singlref, options.instrument, options.force_process)
File "POLYbatchL2.py", line 185, in L2process
process_MODIS_L1C_to_L2(ref, force_process)
File "POLYbatchL2.py", line 159, in process_MODIS_L1C_to_L2
overwrite=force), multiprocessing = 0 # 0 for single thread | -1 for as many thread available | # for multiprocessing with limited number of thread
File "/home/gbourdin/polymer-v4.13/polymer/main.py", line 517, in run_atm_corr
for block in block_iter:
File "/home/gbourdin/polymer-v4.13/polymer/main.py", line 434, in blockiterator
for block in level1.blocks(params.bands_read()):
File "/home/gbourdin/polymer-v4.13/polymer/level1.py", line 175, in blocks
yield self.read_block(size, offset, bands_read)
File "/home/gbourdin/polymer-v4.13/polymer/level1_nasa.py", line 194, in read_block
'rhot_{}'.format(band)][SY, SX], ok=ok)
File "netCDF4/_netCDF4.pyx", line 4452, in netCDF4._netCDF4.Variable.__getitem__
File "netCDF4/_netCDF4.pyx", line 5394, in netCDF4._netCDF4.Variable._get
File "netCDF4/_netCDF4.pyx", line 1928, in netCDF4._netCDF4._ensure_nc_success
RuntimeError: NetCDF: HDF error
I have checked the L1C file I input in polymer but it looks good. I have tried to process the next files but it still gives this error and I can't process more image.
I am running polymer on linux with 24 cores and 240G of memory when run with the multiprocessing =-1 option.
Best,
Guillaume
I have processed about 1200 images of MODISA from L1C to L2 without any trouble. I am now trying to process about the same number of images of MODIST and VIIRSN for the same dates and locations. It worked for 300 images for VIIRS and 348 images for MODIST, but after that, it throws me the following error:
Starting processing at 2021-02-04 09:27:37.091891
Initializing output file "/home/gbourdin/data/T2018174205500.POLY_L2_MODIS.nc"
Processing block: size (500, 400), offset (0, 0)
Processing block: size (500, 400), offset (0, 400)
Processing block: size (500, 400), offset (0, 800)
Processing block: size (500, 154), offset (0, 1200)
Processing block: size (500, 400), offset (500, 0)
Processing block: size (500, 400), offset (500, 400)
Processing block: size (500, 400), offset (500, 800)
Processing block: size (500, 154), offset (500, 1200)
Traceback (most recent call last):
File "POLYbatchL2.py", line 255, in <module>
L2process(singlref, options.instrument, options.force_process)
File "POLYbatchL2.py", line 185, in L2process
process_MODIS_L1C_to_L2(ref, force_process)
File "POLYbatchL2.py", line 159, in process_MODIS_L1C_to_L2
overwrite=force), multiprocessing = 0 # 0 for single thread | -1 for as many thread available | # for multiprocessing with limited number of thread
File "/home/gbourdin/polymer-v4.13/polymer/main.py", line 517, in run_atm_corr
for block in block_iter:
File "/home/gbourdin/polymer-v4.13/polymer/main.py", line 434, in blockiterator
for block in level1.blocks(params.bands_read()):
File "/home/gbourdin/polymer-v4.13/polymer/level1.py", line 175, in blocks
yield self.read_block(size, offset, bands_read)
File "/home/gbourdin/polymer-v4.13/polymer/level1_nasa.py", line 194, in read_block
'rhot_{}'.format(band)][SY, SX], ok=ok)
File "netCDF4/_netCDF4.pyx", line 4452, in netCDF4._netCDF4.Variable.__getitem__
File "netCDF4/_netCDF4.pyx", line 5394, in netCDF4._netCDF4.Variable._get
File "netCDF4/_netCDF4.pyx", line 1928, in netCDF4._netCDF4._ensure_nc_success
RuntimeError: NetCDF: HDF error
I have checked the L1C file I input in polymer but it looks good. I have tried to process the next files but it still gives this error and I can't process more image.
I am running polymer on linux with 24 cores and 240G of memory when run with the multiprocessing =-1 option.
Best,
Guillaume