Skip to content

AttributeError: 'NoneType' object has no attribute 'GetRasterBand' #136

@Pavithrasl01

Description

@Pavithrasl01

Hi everyone im trying to run miaplpy after ISCE2 preprocessing, but in the first step load data an error is occurring can somebody help me out
I'm attaching the error log here
python /home/pavithra.s@SUHORA.LOCAL/anaconda3/envs/miaplpy/lib/python3.12/site-packages/miaplpy/miaplpyApp.py /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing/shimla.txt --dostep load_data --dir ./miaplpy_processing
Using default MintPy Path: /home/pavithra.s@SUHORA.LOCAL/anaconda3/envs/miaplpy/lib/python3.12/site-packages

MiaplPy version v0.2.1, date 2023-08-22
--RUN-at-2026-01-15 12:07:37.435697--
Current directory: /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR
Run routine processing with arg_parser.py on steps: ['load_data']
Remaining steps: ['phase_linking', 'concatenate_patches', 'generate_ifgram', 'unwrap_ifgram', 'load_ifgram', 'ifgram_correction', 'invert_network', 'timeseries_correction']
Project name: shimla

20260115:120737 * miaplpyApp.py /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing/shimla.txt --dostep load_data --dir ./miaplpy_processing
Project name: shimla
Go to work directory: /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing
copy default template file /home/pavithra.s@SUHORA.LOCAL/anaconda3/envs/miaplpy/lib/python3.12/site-packages/mintpy/defaults/smallbaselineApp.cfg to work directory
read custom template file: /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing/shimla.txt
update default template based on input custom template
mintpy.compute.cluster: auto --> local
mintpy.compute.numWorker: auto --> 8
mintpy.troposphericDelay.method: auto --> no
copy shimla.txt to inputs directory for backup.
copy smallbaselineApp.cfg to inputs directory for backup.
copy shimla.txt to pic directory for backup.
copy smallbaselineApp.cfg to pic directory for backup.
read default template file: /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing/smallbaselineApp.cfg
copy default template file /home/pavithra.s@SUHORA.LOCAL/anaconda3/envs/miaplpy/lib/python3.12/site-packages/miaplpy/objects/../defaults/miaplpyApp.cfg to work directory
update default template based on input custom template
miaplpy.multiprocessing.numProcessor: auto --> 20
miaplpy.load.processor: auto --> isce
miaplpy.load.compression: auto --> lzf
miaplpy.load.autoPath: auto --> yes
miaplpy.load.slcFile: auto --> ../merged/SLC//.slc.full
miaplpy.load.metaFile: auto --> ../reference/IW*.xml
miaplpy.load.baselineDir: auto --> ../baselines
miaplpy.load.demFile: auto --> ../merged/geom_reference/hgt.rdr.full
miaplpy.load.lookupYFile: auto --> ../merged/geom_reference/lat.rdr.full
miaplpy.load.lookupXFile: auto --> ../merged/geom_reference/lon.rdr.full
miaplpy.load.incAngleFile: auto --> ../merged/geom_reference/los.rdr.full
miaplpy.load.azAngleFile: auto --> ../merged/geom_reference/los.rdr.full
miaplpy.load.shadowMaskFile: auto --> ../merged/geom_reference/shadowMask.rdr.full
miaplpy.load.waterMaskFile: auto --> None
miaplpy.load.unwFile: auto --> ./inverted/interferograms_single_reference//fine.unw
miaplpy.load.corFile: auto --> ./inverted/interferograms_single_reference/
/fine.cor
miaplpy.load.connCompFile: auto --> ./inverted/interferograms_single_reference//.unw.conncomp
miaplpy.timeseries.minTempCoh: auto --> 0.7
mintpy.load.processor: auto --> isce
copy miaplpyApp.cfg to inputs directory for backup.
read default template file: /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing/miaplpyApp.cfg
miaplpy.load.compression: lzf --> lzf
miaplpy.load.autoPath: yes --> yes
SAR platform/sensor : None
processor: isce
check auto path setting for Univ of Miami users for processor: isce

prepare metadata files for isce products
prep_slc_isce.py -s ../merged/SLC -f *.slc.full -m ../reference/IW1.xml -b ../baselines -g ../merged/geom_reference --force
extract metadata from ISCE/topsStack xml file: ../reference/IW1.xml
WARNING: No geometry files found with the following pattern!
file basenme: ['hgt', 'lat', 'lon', 'los']
file extension: ['.rdr.full', '.geo.full']
writing ../reference/data.rsc
prepare .rsc file for geometry files
write file: /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/merged/geom_reference/shadowMask.rdr.rsc
read perp baseline time-series from ../baselines
preparing RSC file for *.slc.full
[==================================================] 20250102_20251228 0s / 0s
prep_slc_isce.py: Done.
box to read for datasets in y/x: None

searching slcs info
input data files:
slc : ../merged/SLC//.slc.full
number of slc : 30
----- Number of interferograms in the selected network: 29 -----

<><><><><><><><><> step 1 - load_data (MiaplPy) <><><><><><><><><><>
Generate /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing/network_single_reference/run_files/run_01_miaplpy_load_data
/home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing
20260115:120739 * load_slc_geometry.py --template /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing/miaplpyApp.cfg --project_dir /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR --work_dir /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing
SAR platform/sensor : None
processor: isce
check auto path setting for Univ of Miami users for processor: isce
box to read for datasets in y/x: None

searching slcs info
input data files:
slc : ../merged/SLC//.slc.full
number of slc : 30

searching geometry files info
input data files:
WARNING: No reqired height data files found!

create HDF5 file /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing/inputs/slcStack.h5 with a mode
create dataset /slc of <class 'numpy.complex64'> in size of (30, 11362, 68331) with compression = lzf
/home/pavithra.s@SUHORA.LOCAL/anaconda3/envs/miaplpy/lib/python3.12/site-packages/osgeo/gdal.py:311: FutureWarning: Neither gdal.UseExceptions() nor gdal.DontUseExceptions() has been explicitly called. In GDAL 4.0, exceptions will be enabled by default.
warnings.warn(
ERROR 4: `../merged/SLC/20250102/20250102.slc.full.vrt' not recognized as being in a supported file format.
Traceback (most recent call last):
File "/home/pavithra.s@SUHORA.LOCAL/anaconda3/envs/miaplpy/bin/load_slc_geometry.py", line 7, in
sys.exit(main())
^^^^^^
File "/home/pavithra.s@SUHORA.LOCAL/anaconda3/envs/miaplpy/lib/python3.12/site-packages/miaplpy/load_slc_geometry.py", line 104, in main
stackObj.write2hdf5(outputFile=inps.out_file[0],
File "/home/pavithra.s@SUHORA.LOCAL/anaconda3/envs/miaplpy/lib/python3.12/site-packages/miaplpy/objects/slcStack.py", line 176, in write2hdf5
ds[i, :, :] = dsSlc.GetRasterBand(1).ReadAsArray(int(box[0]), int(box[1]), self.width, self.length)
^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'GetRasterBand'
Go back to directory: /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing

###############################################################
Normal end of Non-Linear time series processing workflow!
##############################################################
Go back to directory: /home/pavithra.s@SUHORA.LOCAL/Shimla_InSAR/miaplpy_processing

################################################
Normal end of miaplpyApp processing!
################################################
Time used: 00 mins 2.2 secs

with regards
Pavithra

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions