pansism / downscale-satellitelst Goto Github PK
View Code? Open in Web Editor NEWA python class for enhancing the spatial resolution of satellite-derived Land Surface Temperatures (LST) using statistical downscaling.
License: MIT License
A python class for enhancing the spatial resolution of satellite-derived Land Surface Temperatures (LST) using statistical downscaling.
License: MIT License
Hi. First, thanks for writing this class. Unfortunately when I try to run the example script (example_using_SEVIRI_data.py),
%Run example_using_SEVIRI_data.py
I encounter the following. I am using version 1.1.0 of your code with Python 3.9.5.
Warning 1: LSALST_20180819_Athens_15min.tif: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.
Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.
Downscaling started at: 21/01/2022, 12:56
SETTINGS
========
Residual Correction: True
R2-threshold: 0.5
Missing pxls threshold: 40.0%
Train/test size split: 0.7/0.3
Parallel jobs: 1
Hyperarameter tuning trials: 60
Building the regression models.
Processing band 0:
Traceback (most recent call last):
File "/home/pramit/Downloads/downscale-satelliteLST-1.1.0/example/example_using_SEVIRI_data.py", line 45, in <module>
main()
File "/home/pramit/Downloads/downscale-satelliteLST-1.1.0/example/example_using_SEVIRI_data.py", line 32, in main
data.ApplyDownscaling(residual_corr=True)
File "/home/pramit/Downloads/downscale-satelliteLST-1.1.0/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
Given that Python is not my go-to language, it would be of much help if you could please point out if I am doing something wrong. Thanks!
Hi,
The code runs perfectly on my own dataset consisting of principal components of several predictors and a low-resolution LST image.
%Run example_using_SEVIRI_data.py
Downscaling started at: 01/02/2022, 15:52
SETTINGS
========
Residual Correction: True
R2-threshold: 0.0
Missing pxls threshold: 40.0%
Train/test size split: 0.7/0.3
Parallel jobs: 1
Hyperarameter tuning trials: 60
Building the regression models.
Processing band 0:
Tuning the random forest hyperparameters... Done [CV R2 score = 0.54]
Tuning the ridge hyperparameters... Done [CV R2 score = 0.48]
Tuning the svr hyperparameters... Done [CV R2 score = 0.35]
/home/pramit/.local/lib/python3.9/site-packages/sklearn/linear_model/_coordinate_descent.py:647: ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations, check the scale of the features or consider increasing regularisation. Duality gap: 1.408e-02, tolerance: 1.181e-02
model = cd_fast.enet_coordinate_descent(
The R2 score of the ensemble model is: 0.56 PASS
Models that passed the checks: 1/1
Downscaling the corresponding LST bands...
Downscaling LST band 0: [#########################] 100.00%
Downscaling completed in: 222.5 sec
Writing to GeoTiff... Done
Generating report... Done
LST bands that have been downscaled:
[0]
However, the result exhibits a padding effect on the bottom and right edges only that looks like a frame, as visible in the screenshot below. No such artefacts exist in any of the inputs to the model.
The width of this "frame" is different at the two edges. Could it be because of the warning that was raised? I look forward to your opinion on this and a possible solution will, of course, be lovely. Thanks in advance!
Could you tell me how this predictor was made,please
Warning 1: TIFFReadDirectory:Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples.
i don't know what caused this warning, which will make an impact on the result?
and you provided a predictor sample file "LST_predictors_100m.tif" as referrence downscaling background, if i want to downscale to another scales,i must provide the corresponding referrence files,which may be hard to provide sometimes.
Hello
I want use PERSIANN precipitation data for Hydrology simulation.
Before this I want downscale input data.
can I use your scripts for this?
Hello!Thanks for your nice work!
I have a question that what is the every bands of the predictors.tif meaning,I guess NDVI and DEM data maybe in it, but I don't the others. Could you please give me an answer?Also, where can I find the class reference paper to read?
Best wishes to you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.