Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses the four issues in the
i.in.spotvgt
module that previously led to incorrect imports or completely null raster outputs as highlighted in #6175.Summary of Changes:
if f < 2:
caused type error due to comparison of list directly, it has been correctly fixed asif len(f) < 2:
qname = spotname.replace("NDV", "SM")
resulted in missing file error due to missing extension. This has been fixed by changing it toqname = spotname.replace("NDV", "SM") + ".HDF"
raised
TypeError
asstdin
can only accept string or bytes. This has been fixed by modifying it to:gs.use_temp_region()
caused the output map to be null, since the temporary region prevented g.rename and r.mapcalc results from being preserved in main mapset. This line has been commented out.This PR closes #6175.