Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WAPORWP ;During running modules facing an issue #10

Open
dawitmillion opened this issue Mar 10, 2023 · 0 comments
Open

WAPORWP ;During running modules facing an issue #10

dawitmillion opened this issue Mar 10, 2023 · 0 comments

Comments

@dawitmillion
Copy link

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'

Capture
AND
Capture-2
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant