Last active
April 24, 2020 03:56
-
-
Save PratyushTripathy/f7a6a4f86ec88198d2514c02447e2db5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
predicted = model.predict(featuresHyderabad) | |
predicted = predicted[:,1] | |
#Export raster | |
prediction = np.reshape(predicted, (ds.RasterYSize, ds.RasterXSize)) | |
outFile = 'Hyderabad_2011_BuiltupNN_predicted.tif' | |
raster.export(prediction, ds3, filename=outFile, dtype='float') |
@foranastes this is only the gist to embed code snippets in the Medium post. You have to use the full code available here https://github.com/PratyushTripathy/Landsat-Classification-Using-Neural-Network?files=1
However, a quick fix to the issue could be reading a dummy raster and use its ds as the data source.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ds is not defined