-
Notifications
You must be signed in to change notification settings - Fork 24
Description
I have an error while running the script. During running module-1 for preprocessing the data for further analysis I encounter a problem with resampling raster data. After running these codes in the cell ‘Resample = gis.MatchProjResNDV (source_file, target_fhs, output_folder, resample = 'near', dtype = 'float32') ‘ I got these errors. So would you help me, please?
Based on a case study Xinavane, Mozambique counter these error KeyError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_6320\53625801.py in ----> 1 Resample = gis.MatchProjResNDV (source_file, target_fhs, output_folder, resample = 'near', dtype = 'float32') ~\OneDrive\Desktop\WAPORWP-master\WAPORWP-master\Modules\GIS_functions\GIS_function.py in MatchProjResNDV(source_file, target_fhs, output_folder, resample, dtype, scale, ndv_to_zero) 163 output_file = os.path.join(output_folder, fn) 164 gdal.Warp(output_file,target_file,format='GTiff', --> 165 srcSRS=src_info['coordinateSystem']['wkt'], 166 dstSRS=dst_info['coordinateSystem']['wkt'], 167 srcNodata=src_info['bands'][0]['noDataValue'],
KeyError: 'coordinateSystem'
AND
The size & shape of the template raster = 159556 & (353, 452)
The size & shape of the data to be resampled = 9 & (3, 3), the size and shape I get after running is not the same as the executed result on youtube released by Dr.Abebe Chukalla, is that normal?