Skip to content
Advertisement

Tag: gdal

Error related to the number of input tensors in Keras

I am inputting series of float32 grayscale images as a list with 16*16 shape to python and try do a regression task with labels inputted from Pandas data frame. Here is the shape of images and df: I used train_test_split from sklearn to split the data to train and test: I am using the following model for doing the prediction,

How do I change a raster’s geotransform with GDAL?

I’m trying to use GDAL to set the geotransform of a new raster that I’ve created by following the steps outlined in the GDAL API Tutorial. The dataset.SetGeoTransform() documentation says that this should set the affine transformation coefficients (which, according to the dataset.GetGeoTransform() documentation is set to [0, 1, 0, 0, 0, 1] by default), but as you can see

Advertisement