以下是出问题的代码
from osgeo import gdal
from DownscaleSatelliteLST import DownscaledLST
# Raster filenames
lst_fname = "LSALST_20180819_Athens_15min.tif"
predictors_fname = "LST_predictors_100m.tif"
def main():
# Read the raster data as gdal datasets
Seviri_LST = gdal.Open(lst_fname)
predictors_100m = gdal.Open(predictors_fname)
# Make an instance of the downscaling class
data = DownscaledLST(
LST=Seviri_LST,
predictors=predictors_100m,
LST_noDataVal=-80,
predictors_noDataVal=-1000,
workdir="./Results",
)
# Change the number of parallel jobs to 4
data.SetNumberOfJobs(4)
# Set the R2 threshold for discarding
# poorly-performing regression models.
data.SetR2Threshold(0.5)
# Apply the Downscaling
data.ApplyDownscaling(residual_corr=True)
# Save the dowscaled data as a geotiff file
data.SaveDLSTasGeotiff(savename="downscaled_LST.tif")
# Save the regression metrics in a txt file
data.GenerateReport()
# Get the indices of the non-discarded downscaled data
print("LST bands that have been downscaled:")
print(data.GetDLSTBandIndices(indexing_from_1=False))
if __name__ == "__main__":
main()
然后出现了这样的报错
Traceback (most recent call last):
File "C:\Users\example\example_using_SEVIRI_data.py", line 45, in <module>
main()
File "C:\Users\example\example_using_SEVIRI_data.py", line 32, in main
data.ApplyDownscaling(residual_corr=True)
File "C:\Users\example\DownscaleSatelliteLST.py", line 246, in ApplyDownscaling
normal_transformer = QuantileTransformer(len(y)//2, "normal", random_state=self.SEED).fit(X)
TypeError: __init__() takes 1 positional argument but 3 positional arguments (and 1 keyword-only argument) were given
请求各位帮帮忙