python-dms


Namepython-dms JSON
Version 1.2.1 PyPI version JSON
download
home_pageNone
SummaryPython implementation of Data Mining Sharpener (DMS)
upload_time2025-10-10 12:28:37
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseCopyright 2018 Radoslaw Guzinski and contributors listed in the README.md file. This package is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this package. If not, see <http://www.gnu.org/licenses/>. --- GNU LESSER GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below. 0. Additional Definitions. As used herein, “this License” refers to version 3 of the GNU Lesser General Public License, and the “GNU GPL” refers to version 3 of the GNU General Public License. “The Library” refers to a covered work governed by this License, other than an Application or a Combined Work as defined below. An “Application” is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library. A “Combined Work” is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the “Linked Version”. The “Minimal Corresponding Source” for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that are based on the Application, and not on the Linked Version. The “Corresponding Application Code” for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work. 1. Exception to Section 3 of the GNU GPL. You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL. 2. Conveying Modified Versions. If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version: - a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or - b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy. 3. Object Code Incorporating Material from Library Header Files. The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following: - a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License. - b) Accompany the object code with a copy of the GNU GPL and this license document. 4. Combined Works. You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following: - a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License. - b) Accompany the Combined Work with a copy of the GNU GPL and this license document. - c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference to where the full notice is found. - d) Do one of the following: - i) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source. - ii) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version. 5. Combined Libraries. You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following: - a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License. - b) Give prominent notice with the combined library that part of it is a work based on the Library, and explain where to find the accompanying uncombined form of the same work. 6. Revised Versions of the GNU Lesser General Public License. The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies that a certain numbered version of the GNU Lesser General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library does not specify a version number of the GNU Lesser General Public License, you may choose any version ever published by the Free Software Foundation. If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
keywords dms remote sensing data mining sharpener disaggregation image sharpening
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pyDMS
Python implementation of Data Mining Sharpener (DMS): a decision tree based algorithm for
sharpening (disaggregation) of low-resolution images using high-resolution images.
The implementation is mostly based on [Gao2012].

The DMS is trained with high-resolution data resampled to
    low resolution and low-resolution data and then applied
    directly to high-resolution data to obtain high-resolution representation
    of the low-resolution data.

The implementation includes selecting training data based on homogeneity
    statistics and using the homogeneity as weight factor ([Gao2012], section 2.2),
    performing linear regression with samples located within each regression
    tree leaf node ([Gao2012], section 2.1), using an ensemble of regression trees
    ([Gao2012], section 2.1), performing local (moving window) and global regressions and
    combining them based on residuals ([Gao2012] section 2.3) and performing residual
    analysis and bias correction ([Gao2012], section 2.4)

Additionally, the Decision Tree regressor can be replaced by Neural Network regressor.

## Installation
```python_dms``` requires GDAL to be installed on your system.
Since GDAL provides compiled binaries that vary by platform, this package does not bundle them. You will need to install GDAL yourself before installing ```python_dms```.

1. **Install GDAL**
    #### macOS (Homebrew)
    ```
    brew install gdal
    ```
    #### Ubuntu / Debian
    ```
    sudo apt-get update
    sudo apt-get install -y gdal-bin libgdal-dev
    ```
    #### Windows
    Download and install GDAL from GIS Internals or install via conda:
    ```
    conda install -c conda-forge gdal
    ``` 

    You can verify your installation by running:
    ```
    gdalinfo --version
    ``` 

2. **Install ```python_dms```**

    Once GDAL is installed and available in your environment, install python_dms with pip:
    ```
    pip install python_dms
    ```

    or download the project to your local system, enter the download directory and then type

    `python setup.py install`

## Usage
For usage template see [run_pyDMS.py](/run_pyDMS.py).

Copyright: (C) 2024 Radoslaw Guzinski and contributors.

## References

* [Gao2012] Gao, F., Kustas, W. P., & Anderson, M. C. (2012). A Data
       Mining Approach for Sharpening Thermal Satellite Imagery over Land.
       Remote Sensing, 4(11), 3287–3319. https://doi.org/10.3390/rs4113287

* [Guzinski2019] Guzinski, R., & Nieto, H. (2019). Evaluating the feasibility of using Sentinel-2 and Sentinel-3 satellites for high-resolution evapotranspiration estimations. Remote Sensing of Environment, 221, 157–172. https://doi.org/10.1016/j.rse.2018.11.019

* [Guzinski2023] Guzinski, R., Nieto, H., Ramo Sánchez, R., Sánchez, J.M., Jomaa, I., Zitouna-Chebbi, R., Roupsard, O., and López-Urrea, R. (2023). Improving field-scale crop actual evapotranspiration monitoring with Sentinel-3, Sentinel-2, and Landsat data fusion. International Journal of Applied Earth Observation and Geoinformation 125, 103587. https://doi.org/10.1016/j.jag.2023.103587


## License

pyDMS: a Python Data Mining Sharpener implementation

Copyright 2024 Radoslaw Guzinski and contributors.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "python-dms",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "DMS, Remote Sensing, data mining sharpener, disaggregation, image sharpening",
    "author": null,
    "author_email": "Radoslaw Guzinski <rmgu@dhigroup.com>",
    "download_url": "https://files.pythonhosted.org/packages/d9/1d/566381f078e0c7cc03d047ce65989c40681a21e3ae0fd30002dcdba7fad1/python_dms-1.2.1.tar.gz",
    "platform": null,
    "description": "# pyDMS\nPython implementation of Data Mining Sharpener (DMS): a decision tree based algorithm for\nsharpening (disaggregation) of low-resolution images using high-resolution images.\nThe implementation is mostly based on [Gao2012].\n\nThe DMS is trained with high-resolution data resampled to\n    low resolution and low-resolution data and then applied\n    directly to high-resolution data to obtain high-resolution representation\n    of the low-resolution data.\n\nThe implementation includes selecting training data based on homogeneity\n    statistics and using the homogeneity as weight factor ([Gao2012], section 2.2),\n    performing linear regression with samples located within each regression\n    tree leaf node ([Gao2012], section 2.1), using an ensemble of regression trees\n    ([Gao2012], section 2.1), performing local (moving window) and global regressions and\n    combining them based on residuals ([Gao2012] section 2.3) and performing residual\n    analysis and bias correction ([Gao2012], section 2.4)\n\nAdditionally, the Decision Tree regressor can be replaced by Neural Network regressor.\n\n## Installation\n```python_dms``` requires GDAL to be installed on your system.\nSince GDAL provides compiled binaries that vary by platform, this package does not bundle them. You will need to install GDAL yourself before installing ```python_dms```.\n\n1. **Install GDAL**\n    #### macOS (Homebrew)\n    ```\n    brew install gdal\n    ```\n    #### Ubuntu / Debian\n    ```\n    sudo apt-get update\n    sudo apt-get install -y gdal-bin libgdal-dev\n    ```\n    #### Windows\n    Download and install GDAL from GIS Internals or install via conda:\n    ```\n    conda install -c conda-forge gdal\n    ``` \n\n    You can verify your installation by running:\n    ```\n    gdalinfo --version\n    ``` \n\n2. **Install ```python_dms```**\n\n    Once GDAL is installed and available in your environment, install python_dms with pip:\n    ```\n    pip install python_dms\n    ```\n\n    or download the project to your local system, enter the download directory and then type\n\n    `python setup.py install`\n\n## Usage\nFor usage template see [run_pyDMS.py](/run_pyDMS.py).\n\nCopyright: (C) 2024 Radoslaw Guzinski and contributors.\n\n## References\n\n* [Gao2012] Gao, F., Kustas, W. P., & Anderson, M. C. (2012). A Data\n       Mining Approach for Sharpening Thermal Satellite Imagery over Land.\n       Remote Sensing, 4(11), 3287\u20133319. https://doi.org/10.3390/rs4113287\n\n* [Guzinski2019] Guzinski, R., & Nieto, H. (2019). Evaluating the feasibility of using Sentinel-2 and Sentinel-3 satellites for high-resolution evapotranspiration estimations. Remote Sensing of Environment, 221, 157\u2013172. https://doi.org/10.1016/j.rse.2018.11.019\n\n* [Guzinski2023] Guzinski, R., Nieto, H., Ramo S\u00e1nchez, R., S\u00e1nchez, J.M., Jomaa, I., Zitouna-Chebbi, R., Roupsard, O., and L\u00f3pez-Urrea, R. (2023). Improving field-scale crop actual evapotranspiration monitoring with Sentinel-3, Sentinel-2, and Landsat data fusion. International Journal of Applied Earth Observation and Geoinformation 125, 103587. https://doi.org/10.1016/j.jag.2023.103587\n\n\n## License\n\npyDMS: a Python Data Mining Sharpener implementation\n\nCopyright 2024 Radoslaw Guzinski and contributors.\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n",
    "bugtrack_url": null,
    "license": "Copyright 2018 Radoslaw Guzinski and contributors listed in the README.md file.\n        \n        This package is free software: you can redistribute it and/or modify\n        it under the terms of the GNU Lesser General Public License as published by\n        the Free Software Foundation, either version 3 of the License, or\n        (at your option) any later version.\n        \n        This package is distributed in the hope that it will be useful,\n        but WITHOUT ANY WARRANTY; without even the implied warranty of\n        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n        GNU Lesser General Public License for more details.\n        \n        You should have received a copy of the GNU Lesser General Public License\n        along with this package. If not, see <http://www.gnu.org/licenses/>.\n        \n        ---\n        \n        GNU LESSER GENERAL PUBLIC LICENSE\n        Version 3, 29 June 2007\n        \n        Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n        Everyone is permitted to copy and distribute verbatim copies\n        of this license document, but changing it is not allowed.\n        \n        This version of the GNU Lesser General Public License incorporates\n        the terms and conditions of version 3 of the GNU General Public License,\n        supplemented by the additional permissions listed below.\n        \n        0. Additional Definitions.\n        \n        As used herein, \u201cthis License\u201d refers to version 3 of the GNU Lesser General Public License,\n        and the \u201cGNU GPL\u201d refers to version 3 of the GNU General Public License.\n        \n        \u201cThe Library\u201d refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.\n        \n        An \u201cApplication\u201d is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library.\n        Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.\n        \n        A \u201cCombined Work\u201d is a work produced by combining or linking an Application with the Library.\n        The particular version of the Library with which the Combined Work was made is also called the \u201cLinked Version\u201d.\n        \n        The \u201cMinimal Corresponding Source\u201d for a Combined Work means the Corresponding Source for the Combined Work,\n        excluding any source code for portions of the Combined Work that are based on the Application,\n        and not on the Linked Version.\n        \n        The \u201cCorresponding Application Code\u201d for a Combined Work means the object code and/or source code for the Application,\n        including any data and utility programs needed for reproducing the Combined Work from the Application,\n        but excluding the System Libraries of the Combined Work.\n        \n        1. Exception to Section 3 of the GNU GPL.\n        \n        You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.\n        \n        2. Conveying Modified Versions.\n        \n        If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application\n        that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:\n        \n        - a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data,\n        the facility still operates, and performs whatever part of its purpose remains meaningful, or\n        \n        - b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.\n        \n        3. Object Code Incorporating Material from Library Header Files.\n        \n        The object code form of an Application may incorporate material from a header file that is part of the Library.\n        You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters,\n        data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length),\n        you do both of the following:\n        \n        - a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.\n        \n        - b) Accompany the object code with a copy of the GNU GPL and this license document.\n        \n        4. Combined Works.\n        \n        You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library\n        contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:\n        \n        - a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.\n        \n        - b) Accompany the Combined Work with a copy of the GNU GPL and this license document.\n        \n        - c) For a Combined Work that displays copyright notices during execution,\n        include the copyright notice for the Library among these notices, as well as a reference to where the full notice is found.\n        \n        - d) Do one of the following:\n          - i) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for,\n             and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work,\n             in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.\n        \n          - ii) Use a suitable shared library mechanism for linking with the Library.\n             A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system,\n             and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.\n        \n        5. Combined Libraries.\n        \n        You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities\n        not covered by this License, and convey such a combined library under terms of your choice,\n        if you do both of the following:\n        \n        - a) Accompany the combined library with a copy of the same work based on the Library,\n        uncombined with any other library facilities, conveyed under the terms of this License.\n        \n        - b) Give prominent notice with the combined library that part of it is a work based on the Library,\n        and explain where to find the accompanying uncombined form of the same work.\n        \n        6. Revised Versions of the GNU Lesser General Public License.\n        \n        The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time.\n        Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n        \n        Each version is given a distinguishing version number.\n        If the Library specifies that a certain numbered version of the GNU Lesser General Public License \u201cor any later version\u201d applies to it,\n        you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation.\n        If the Library does not specify a version number of the GNU Lesser General Public License, you may choose any version ever published by the Free Software Foundation.\n        \n        If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall apply,\n        that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.",
    "summary": "Python implementation of Data Mining Sharpener (DMS)",
    "version": "1.2.1",
    "project_urls": null,
    "split_keywords": [
        "dms",
        " remote sensing",
        " data mining sharpener",
        " disaggregation",
        " image sharpening"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "abe6f57954baec2acd7e141d8d1806a7476c6a07196b4a407aac7129b4ba8ef8",
                "md5": "8fc7b44a9d1cf2d154bd9f3caf7682bc",
                "sha256": "fe234b885adfb3a5eab648bd41da9a788c7a8168b6702cbc9c57cc8d4cf38fd5"
            },
            "downloads": -1,
            "filename": "python_dms-1.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8fc7b44a9d1cf2d154bd9f3caf7682bc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 21648,
            "upload_time": "2025-10-10T12:28:36",
            "upload_time_iso_8601": "2025-10-10T12:28:36.751094Z",
            "url": "https://files.pythonhosted.org/packages/ab/e6/f57954baec2acd7e141d8d1806a7476c6a07196b4a407aac7129b4ba8ef8/python_dms-1.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "d91d566381f078e0c7cc03d047ce65989c40681a21e3ae0fd30002dcdba7fad1",
                "md5": "2fabd728c47ce0475491af4542d2e58a",
                "sha256": "a3cfcbe5a6b669d71c6349d0b200c20e6bd6147858a928dc24703aab68af9230"
            },
            "downloads": -1,
            "filename": "python_dms-1.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "2fabd728c47ce0475491af4542d2e58a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 20782,
            "upload_time": "2025-10-10T12:28:37",
            "upload_time_iso_8601": "2025-10-10T12:28:37.996809Z",
            "url": "https://files.pythonhosted.org/packages/d9/1d/566381f078e0c7cc03d047ce65989c40681a21e3ae0fd30002dcdba7fad1/python_dms-1.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-10 12:28:37",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "python-dms"
}
        
Elapsed time: 1.95835s