Giter VIP home page Giter VIP logo

smbyc / ccd-plugin Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 4.0 1.04 MB

The CCD-Plugin uses Google Earth Engine to get Landsat or Sentinel2 datasets and run the Continuous Change Detection (CCDC) algorithm to analyze the trends and breakpoints of change over multi-year time series at a given coordinate.

License: GNU General Public License v3.0

Python 95.25% Makefile 4.38% HTML 0.36%
ccdc google-earth-engine landsat qgis-plugin remote-sensing time-series

ccd-plugin's People

Contributors

danielm09 avatar dependabot[bot] avatar xaviercll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ccd-plugin's Issues

'Figure' object has no attribute 'add_vline'

Plot could not be created due to the following error.

Traceback (most recent call last):
File "/Users/philippgaertner/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/utils/system_utils.py", line 35, in wrapper
return func(*args, **kwargs)
File "/Users/philippgaertner/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/utils/system_utils.py", line 91, in wrapper
obj_returned = func(*args, **kwargs)
File "/Users/philippgaertner/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/gui/CCD_Plugin_dockwidget.py", line 170, in new_plot
self.html_file = generate_plot(ccdc_result_info, timeseries, date_range, dataset, band_or_index, CCD_Plugin.tmp_dir)
File "/Users/philippgaertner/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/core/plot.py", line 120, in generate_plot
fig.add_vline(x=break_date, line_width=1, line_dash="dash", line_color="red",
AttributeError: 'Figure' object has no attribute 'add_vline'

MacBook Pro Apple M1
QGIS Version: 3.28.2-Firenze
Qt version: 5.15.2
Python version: 3.9.5
CCD Plugin: 23.7
ee_plugin: 0.0.6

Plot download directory

This plugin is very useful and I also love it's dynamic output using plotly. I would however also love to download the plots and choose the directory where they are saved myself. Currently I am getting a toast message saying saved as "newplot.png" but cannot locate where.

Using linux.

Thanks

Support of Copernicus Sentinel 2

Hi,

Great work! A nice tool for easy data retrieval.
Any chance to be able to port other available in GEE datasets such as Copernicus Sentinel 2 or Planet Cubesat?

Best

Dimitris

Indices scaling

Check if scaling is correct in Landsat module (gee_data_landsat.py).
EVI, EVI2 expressions may need bands scaled from 0 to 1. Check it.

Check also brightness, greeness and wetness

Problem with x-axis labels in the plot

Labels seem to be misplaced. They are being placed in between grid lines, when the correct position would be right under each grid line.

Also, when plotting long Landsat time series, labels seem to be too much squeezed.

Error when setting the days of the year in a one year analysis

@XavierCLL @danielm09 ,What is the reason for this problem? I could not draw the time series.

Traceback (most recent call last):
File "C:\Users/yasar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CCD_Plugin\utils\system_utils.py", line 35, in wrapper
return func(*args, **kwargs)
File "C:\Users/yasar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CCD_Plugin\utils\system_utils.py", line 91, in wrapper
obj_returned = func(*args, **kwargs)
File "C:\Users/yasar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CCD_Plugin\gui\CCD_Plugin_dockwidget.py", line 170, in new_plot
self.html_file = generate_plot(ccdc_result_info, timeseries, date_range, dataset, band_or_index, CCD_Plugin.tmp_dir)
File "C:\Users/yasar/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CCD_Plugin\core\plot.py", line 97, in generate_plot
datetime_min = datetime.fromtimestamp(np.min(dates_obs) / 1000)
File "<array_function internals>", line 200, in amen
File "C:\OSGeo4W\apps\Python39\lib\site-packages\numpy\core\fromnumeric.py", line 2946, in amen
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
File "C:\OSGeo4W\apps\Python39\lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
numpy.core._exceptions._UFuncNoLoopError: ufunc 'minimum' did not contain a loop with signature matching types (dtype('<U38'), dtype('<U38')) -> None

My google earth engine code:
import ee
from ee_plugin import Map

image = ee.ImageCollection('COPERNICUS/S2')
.filterDate('2019-06-01', '2020-07-02')

Map.addLayer(image, 'S2')

image

Issue in CCD Plugin

I am getting this error when I am trying to get the surface reflectance value of any band using Sentinel 2. But there is no error in case of Landsat.
I have reinstalled it, still it is creating issues.
The error is given below:
"Traceback (most recent call last):
File "C:\Users/srabo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CCD_Plugin\utils\system_utils.py", line 35, in wrapper
return func(*args, **kwargs)
File "C:\Users/srabo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CCD_Plugin\utils\system_utils.py", line 91, in wrapper
obj_returned = func(*args, **kwargs)
File "C:\Users/srabo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CCD_Plugin\gui\CCD_Plugin_dockwidget.py", line 170, in new_plot
self.html_file = generate_plot(ccdc_result_info, timeseries, date_range, dataset, band_or_index, CCD_Plugin.tmp_dir)
File "C:\Users/srabo/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\CCD_Plugin\core\plot.py", line 64, in generate_plot
nsegments = len(ccdc_result_info['tBreak'][0])
IndexError: list index out of range"

Thank you.

'Figure' object has no attribute 'add_vline'

Traceback (most recent call last):
File "/Users/inesinghambs/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/utils/system_utils.py", line 35, in wrapper
return func(*args, **kwargs)
File "/Users/inesinghambs/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/utils/system_utils.py", line 91, in wrapper
obj_returned = func(*args, **kwargs)
File "/Users/inesinghambs/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/gui/CCD_Plugin_dockwidget.py", line 170, in new_plot
self.html_file = generate_plot(ccdc_result_info, timeseries, date_range, dataset, band_or_index, CCD_Plugin.tmp_dir)
File "/Users/inesinghambs/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/core/plot.py", line 120, in generate_plot
fig.add_vline(x=break_date, line_width=1, line_dash="dash", line_color="red",
AttributeError: 'Figure' object has no attribute 'add_vline'

Unable to connect using the latest version (24.6) CCD plugin in QGIS

When I use the latest version (24.6) of the CCD plugin in QGIS, the following error message appears:
Your application is authenticating by using local Application Default Credentials. The earthengine.googleapis.com API requires a quota project, which is not set by default. To learn how to set your quota project, see https://cloud.google.com/docs/authentication/adc-troubleshooting/user-creds .
But I can log in to the GEE platform normally( https://code.earthengine.google.com/

'Figure' object has no attribute 'add_vline'

Hello !
Great plugin ! unfortunately I had this issue :

Traceback (most recent call last):
File "/Users/jerome/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/utils/system_utils.py", line 35, in wrapper
return func(*args, **kwargs)
File "/Users/jerome/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/utils/system_utils.py", line 91, in wrapper
obj_returned = func(*args, **kwargs)
File "/Users/jerome/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/gui/CCD_Plugin_dockwidget.py", line 170, in new_plot
self.html_file = generate_plot(ccdc_result_info, timeseries, date_range, dataset, band_or_index, CCD_Plugin.tmp_dir)
File "/Users/jerome/Library/Application Support/QGIS/QGIS3/profiles/default/python/plugins/CCD_Plugin/core/plot.py", line 120, in generate_plot
fig.add_vline(x=break_date, line_width=1, line_dash="dash", line_color="red",
AttributeError: 'Figure' object has no attribute 'add_vline'

Thanks !

Plugin initialization

Different warnings prompt when launching the plugin (and when launching QGIS).
After closing the windows, QGIS and the plugin work fine.

Investigate what's the issue.
(Experienced with QGIS 3.18.3)

image

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.