diff --git a/docs/conf.py b/docs/conf.py index d9e5882d..9fe2b942 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -90,7 +90,8 @@ def gee_configure() -> None: Otherwise it use the simple Initialize command (asking the user to register if necessary). """ # only do the initialization if the credential are missing - if not ee.data._credentials: + if False: + # if not ee.data._credentials: # if the credentials token is asved in the environment use it if "EARTHENGINE_TOKEN" in os.environ: diff --git a/docs/index.rst b/docs/index.rst index 36c1631a..eaff5914 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,8 +1,8 @@ :html_theme.sidebar_secondary.remove: -Pypackage Skeleton -================== +geetools +======== .. toctree:: :hidden: diff --git a/geetools/Array/__init__.py b/geetools/Array/__init__.py index e3f170e1..ab9a2192 100644 --- a/geetools/Array/__init__.py +++ b/geetools/Array/__init__.py @@ -37,7 +37,7 @@ def full( An array with the given dimensions, initialized to the given value. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -67,7 +67,7 @@ def set( The array with the cell set to the given value. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/ComputedObject/__init__.py b/geetools/ComputedObject/__init__.py index eb3beae9..a909ee73 100644 --- a/geetools/ComputedObject/__init__.py +++ b/geetools/ComputedObject/__init__.py @@ -23,7 +23,7 @@ def isInstance(self, klass: Type) -> ee.Number: ``1`` if the element is the passed type or ``0`` if not. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -49,7 +49,7 @@ def save(self, path: pathlike) -> Path: The path to the saved file. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools from tempfile import TemporaryDirectory @@ -80,7 +80,7 @@ def open(cls, path: pathlike) -> ee.ComputedObject: The ComputedObject instance. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools from tempfile import TemporaryDirectory diff --git a/geetools/Date/__init__.py b/geetools/Date/__init__.py index 1ee1d03b..c2eead9b 100644 --- a/geetools/Date/__init__.py +++ b/geetools/Date/__init__.py @@ -31,7 +31,7 @@ def fromEpoch(cls, number: int, unit: str = "day") -> ee.Date: The date as a ``ee.Date`` object. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -55,7 +55,7 @@ def fromDOY(cls, doy: int, year: int) -> ee.Date: The date as a ``ee.Date`` object. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -75,7 +75,7 @@ def to_datetime(self) -> datetime: The ``datetime.datetime`` representation of the ``ee.Date``. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -98,7 +98,7 @@ def getUnitSinceEpoch(self, unit: str = "day") -> ee.Number: The number of units since the epoch. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -117,7 +117,7 @@ def isLeap(self) -> ee.Number: ``1`` if the year is a leap year, ``0`` otherwise. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/DateRange/__init__.py b/geetools/DateRange/__init__.py index 7f35acd7..a621fe9b 100644 --- a/geetools/DateRange/__init__.py +++ b/geetools/DateRange/__init__.py @@ -30,7 +30,7 @@ def split(self, interval: ee_int, unit: str = "day") -> ee.List: The list of DateRanges Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/Dictionary/__init__.py b/geetools/Dictionary/__init__.py index 66d49e87..4a6f3ad1 100644 --- a/geetools/Dictionary/__init__.py +++ b/geetools/Dictionary/__init__.py @@ -26,7 +26,7 @@ def fromPairs(self, list: ee_list) -> ee.Dictionary: A dictionary using the pairs. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -48,7 +48,7 @@ def sort(self) -> ee.Dictionary: The sorted dictionary. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -71,7 +71,7 @@ def getMany(self, list: ee_list) -> ee.List: A list of values. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/Feature/__init__.py b/geetools/Feature/__init__.py index b77bf557..422bd2a6 100644 --- a/geetools/Feature/__init__.py +++ b/geetools/Feature/__init__.py @@ -21,7 +21,7 @@ def toFeatureCollection(self) -> ee.FeatureCollection: The FeatureCollection Example: - .. jupyter-execute:: + .. code-block:: python import ee import geetools diff --git a/geetools/FeatureCollection/__init__.py b/geetools/FeatureCollection/__init__.py index fab594d8..c9d1c26f 100644 --- a/geetools/FeatureCollection/__init__.py +++ b/geetools/FeatureCollection/__init__.py @@ -41,7 +41,7 @@ def addId(self, name: ee_str = "id", start: ee_int = 1) -> ee.FeatureCollection: The parsed collection with a new id property Example: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -68,7 +68,7 @@ def mergeGeometries(self) -> ee.Geometry: the dissolved geometry Example: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -93,7 +93,7 @@ def toPolygons(self) -> ee.FeatureCollection: The parsed collection with only polygon/MultiPolygon geometries Example: - .. jupyter-execute:: + .. code-block:: python import ee import geetools diff --git a/geetools/Filter/__init__.py b/geetools/Filter/__init__.py index 218779e6..251a73df 100644 --- a/geetools/Filter/__init__.py +++ b/geetools/Filter/__init__.py @@ -27,7 +27,7 @@ def dateRange(self, range: ee.DateRange) -> Any: The filter to apply to a collection. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/Geometry/__init__.py b/geetools/Geometry/__init__.py index 4b8c3967..92d66b18 100644 --- a/geetools/Geometry/__init__.py +++ b/geetools/Geometry/__init__.py @@ -21,7 +21,7 @@ def keepType(self, type: str) -> ee.Geometry: type: The type of geometries to keep. Can be one of: Point, LineString, LineRing Polygon. Returns: - .. jupyter-execute:: + .. code-block:: python import ee import geetools diff --git a/geetools/Image/__init__.py b/geetools/Image/__init__.py index 67a1c12f..128dee2f 100644 --- a/geetools/Image/__init__.py +++ b/geetools/Image/__init__.py @@ -37,7 +37,7 @@ def addDate(self) -> ee.Image: The image with the date band added. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -66,7 +66,7 @@ def addSuffix(self, suffix: ee_str, bands: ee_list = []) -> ee.Image: The image with the suffix added to the selected bands. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -97,7 +97,7 @@ def addPrefix(self, prefix: ee_str, bands: ee_list = []): The image with the prefix added to the selected bands. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -128,7 +128,7 @@ def rename(self, names: ee_dict) -> ee.Image: The image with the new band names. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -155,7 +155,7 @@ def remove(self, bands: ee_list) -> ee.Image: The image without the specified bands. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -188,7 +188,7 @@ def doyToDate( The original image with the DOY band converted to a date band. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -226,7 +226,7 @@ def getValues(self, point: ee.Geometry.Point, scale: ee_int = 0) -> ee.Dictionar A dictionary with the band names and the value at the given point. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -253,7 +253,7 @@ def minScale(self) -> ee.Number: The minimum scale of the image. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -278,7 +278,7 @@ def merge(self, images: ee_list) -> ee.Image: The merged image. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -316,7 +316,7 @@ def toGrid( The method has a known bug when the projection of the image is different than 3857. As we use a buffer, the grid cells can slightly overlap. Feel free to open a Issue and contribute if you feel it needs improvements. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -369,7 +369,7 @@ def clipOnCollection( The clipped imageCollection. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -409,7 +409,7 @@ def bufferMask( The image with the buffer mask applied. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -442,7 +442,7 @@ def full( An image with the given values and names. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -483,7 +483,7 @@ def fullLike( An image with the same band names, projection and scale as the original image. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -524,7 +524,7 @@ def reduceBands( The image with the new reduced band added Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -556,7 +556,7 @@ def negativeClip(self, geometry: ee_geomlike) -> ee.Image: The image with the geometry masked. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -588,7 +588,7 @@ def format( The string corresponding to the image Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -627,7 +627,7 @@ def gauss(self, band: ee_str = "") -> ee.Image: The image with the gaussian filter applied.An single band image with the gaussian filter applied. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -664,7 +664,7 @@ def repeat(self, band, repeats: ee_int) -> ee.image: The image with the band repeated Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -696,7 +696,7 @@ def removeZeros(self) -> ee.Image: The image with the zero values removed from each band. Example: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -732,7 +732,7 @@ def interpolateBands(self, src: ee_list, to: ee_list) -> ee.Image: The image with the interpolated bands Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -766,7 +766,7 @@ def isletMask(self, offset: ee_number) -> ee.Image: The island mask Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -798,7 +798,7 @@ def index_list(cls) -> dict: List of indices implemented in this module Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -880,7 +880,7 @@ def spectralIndices( Image with the computed spectral index, or indices, as new bands. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -904,7 +904,7 @@ def getScaleParams(self) -> dict: Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -922,7 +922,7 @@ def getOffsetParams(self) -> dict: Dictionary with the offset parameters for each band. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -960,7 +960,7 @@ def preprocess(self, **kwargs) -> ee.Image: Pre-processed image. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -977,7 +977,7 @@ def getSTAC(self) -> dict: STAC of the image. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -995,7 +995,7 @@ def getDOI(self) -> str: DOI of the ee.Image dataset. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -1013,7 +1013,7 @@ def getCitation(self) -> str: Citation of the ee.Image dataset. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -1039,7 +1039,7 @@ def panSharpen(self, method: str = "SFIM", qa: str = "", **kwargs) -> ee.Image: The Image with all sharpenable bands sharpened to the panchromatic resolution and quality assessments run and set as properties. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -1077,7 +1077,7 @@ def tasseledCap(self) -> ee.Image: Image with the tasseled cap components as new bands. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -1107,7 +1107,7 @@ def matchHistogram( The adjusted image containing the matched source bands. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -1167,7 +1167,7 @@ def maskClouds( This method may mask water as well as clouds for the Sentinel-3 Radiance product. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/ImageCollection/__init__.py b/geetools/ImageCollection/__init__.py index 8b7867e9..81c4697a 100644 --- a/geetools/ImageCollection/__init__.py +++ b/geetools/ImageCollection/__init__.py @@ -55,7 +55,7 @@ def maskClouds( This method may mask water as well as clouds for the Sentinel-3 Radiance product. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -94,7 +94,7 @@ def closest( Closest images to the specified date. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -175,7 +175,7 @@ def spectralIndices( Image with the computed spectral index, or indices, as new bands. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -199,7 +199,7 @@ def getScaleParams(self) -> dict: Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -217,7 +217,7 @@ def getOffsetParams(self) -> dict: Dictionary with the offset parameters for each band. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -255,7 +255,7 @@ def preprocess(self, **kwargs) -> ee.ImageCollection: Pre-processed image. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -272,7 +272,7 @@ def getSTAC(self) -> dict: STAC of the image. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -290,7 +290,7 @@ def getDOI(self) -> str: DOI of the ee.Image dataset. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -308,7 +308,7 @@ def getCitation(self) -> str: Citation of the ee.Image dataset. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -336,7 +336,7 @@ def panSharpen( The ImageCollections with all sharpenable bands sharpened to the panchromatic resolution and quality assessments run and set as properties. Examples: - .. jupyter-execute:: + .. code-block:: python import ee import geetools @@ -374,7 +374,7 @@ def tasseledCap(self) -> ee.ImageCollection: ImageCollections with the tasseled cap components as new bands. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/Join/__init__.py b/geetools/Join/__init__.py index 8dd69433..a0bfc9fc 100644 --- a/geetools/Join/__init__.py +++ b/geetools/Join/__init__.py @@ -37,7 +37,7 @@ def byProperty( Example: - .. jupyter-execute:: + .. code-block:: python import ee import geetools diff --git a/geetools/List/__init__.py b/geetools/List/__init__.py index 964b9153..dfed656e 100644 --- a/geetools/List/__init__.py +++ b/geetools/List/__init__.py @@ -27,7 +27,7 @@ def product(self, other: ee_list) -> ee.List: A list of strings corresponding to the cartesian product. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -59,7 +59,7 @@ def complement(self, other: ee_list) -> ee.List: A list of strings corresponding to the complement of the current list and the ``other`` list. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -85,7 +85,7 @@ def intersection(self, other: ee_list) -> ee.List: A list of strings corresponding to the intersection of the current list and the ``other`` list. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -111,7 +111,7 @@ def union(self, other: ee_list) -> ee.List: A list of strings corresponding to the union of the current list and the ``other`` list. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -136,7 +136,7 @@ def delete(self, index: ee_int) -> ee.List: The list without the element at the given index. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -168,7 +168,7 @@ def sequence( A list of numbers corresponding to the sequence. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -191,7 +191,7 @@ def replaceMany(self, replace: ee_dict) -> ee.List: A list with the values replaced Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -221,7 +221,7 @@ def join(self, separator: ee_str = ", ") -> ee.string: A string with the list elements separated by commas. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -241,7 +241,7 @@ def toStrings(self) -> ee.List: A list of strings corresponding to the elements of the list. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -268,7 +268,7 @@ def zip(self) -> ee.List: A list of lists with the zipped elements Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/Number/__init__.py b/geetools/Number/__init__.py index f89e7146..20a7b879 100644 --- a/geetools/Number/__init__.py +++ b/geetools/Number/__init__.py @@ -25,7 +25,7 @@ def truncate(self, nbDecimals: ee_int = 2) -> ee.Number: The truncated number. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/String/__init__.py b/geetools/String/__init__.py index 046c1dec..22aa5485 100644 --- a/geetools/String/__init__.py +++ b/geetools/String/__init__.py @@ -25,7 +25,7 @@ def eq(self, other: ee_str) -> ee.Number: ``1`` if the strings are equal, ``0`` otherwise. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools @@ -48,7 +48,7 @@ def format(self, template: ee_dict) -> ee.String: The formatted string. Examples: - .. jupyter-execute:: + .. code-block:: python import ee, geetools diff --git a/geetools/User/__init__.py b/geetools/User/__init__.py index fcb17f90..422ae73b 100644 --- a/geetools/User/__init__.py +++ b/geetools/User/__init__.py @@ -161,7 +161,7 @@ def rename(new: str, old: str = "", credential_pathname: str = "") -> None: credential_pathname: The path to the folder where the credentials are stored. If not set, it uses the default path Example: - .. jupyter-execute:: + .. code-block:: python import ee import geetools diff --git a/warnings.txt b/warnings.txt index ced4a614..5e0d1827 100644 --- a/warnings.txt +++ b/warnings.txt @@ -1,87 +1,185 @@ +WARNING: Cannot resolve import of geetools.tools.array in geetools +WARNING: Cannot resolve import of geetools.tools.collection in geetools +WARNING: Cannot resolve import of geetools.tools.date in geetools +WARNING: Cannot resolve import of geetools.tools.dictionary in geetools +WARNING: Cannot resolve import of geetools.tools.element in geetools +WARNING: Cannot resolve import of geetools.tools.feature in geetools +WARNING: Cannot resolve import of geetools.tools.featurecollection in geetools +WARNING: Cannot resolve import of geetools.tools.geometry in geetools +WARNING: Cannot resolve import of geetools.tools.number in geetools +WARNING: Cannot resolve import of geetools.tools.string in geetools +WARNING: Cannot resolve import of unknown module geetools.utils in geetools.tools.imagecollection +WARNING: Cannot resolve import of geetools.tools.collection in geetools.tools.imagecollection +WARNING: Cannot resolve import of geetools.tools.date in geetools.tools.imagecollection +WARNING: Cannot resolve import of geetools.tools.ee_list in geetools.tools.imagecollection +WARNING: Cannot resolve import of geetools.tools.image in geetools.tools.imagecollection +WARNING: Cannot resolve import of unknown module geetools.utils in geetools.batch.image +WARNING: Cannot resolve import of unknown module geetools.utils in geetools.batch.imagecollection +/workspaces/gee_tools/docs/autoapi/geetools/Image/index.rst:478: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/Image/index.rst:615: WARNING: Inline strong start-string without end-string. +/workspaces/gee_tools/docs/autoapi/geetools/Image/index.rst:779: ERROR: Unknown directive type "jupyter_execute". -Traceback (most recent call last): - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/sphinx/config.py", line 358, in eval_config_file - exec(code, namespace) # NoQA: S102 - ^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/docs/conf.py", line 118, in - gee_configure() - File "/workspaces/gee_tools/docs/conf.py", line 115, in gee_configure - ee.Initialize(http_transport=httplib2.Http()) - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/ee/_utils.py", line 38, in wrapper - return func(*args, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/ee/__init__.py", line 140, in Initialize - credentials = data.get_persistent_credentials() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/ee/data.py", line 268, in get_persistent_credentials - raise ee_exception.EEException( # pylint: disable=raise-missing-from -ee.ee_exception.EEException: Please authorize access to your Earth Engine account by running - -earthengine authenticate - -in your command line, or ee.Authenticate() in Python, and then retry. - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/sphinx/cmd/build.py", line 293, in build_main - app = Sphinx(args.sourcedir, args.confdir, args.outputdir, - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/sphinx/application.py", line 211, in __init__ - self.config = Config.read(self.confdir, confoverrides or {}, self.tags) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/sphinx/config.py", line 181, in read - namespace = eval_config_file(filename, tags) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/sphinx/config.py", line 371, in eval_config_file - raise ConfigError(msg % traceback.format_exc()) from exc -sphinx.errors.ConfigError: There is a programmable error in your configuration file: - -Traceback (most recent call last): - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/sphinx/config.py", line 358, in eval_config_file - exec(code, namespace) # NoQA: S102 - ^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/docs/conf.py", line 118, in - gee_configure() - File "/workspaces/gee_tools/docs/conf.py", line 115, in gee_configure - ee.Initialize(http_transport=httplib2.Http()) - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/ee/_utils.py", line 38, in wrapper - return func(*args, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/ee/__init__.py", line 140, in Initialize - credentials = data.get_persistent_credentials() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/ee/data.py", line 268, in get_persistent_credentials - raise ee_exception.EEException( # pylint: disable=raise-missing-from -ee.ee_exception.EEException: Please authorize access to your Earth Engine account by running - -earthengine authenticate - -in your command line, or ee.Authenticate() in Python, and then retry. - - -Configuration error: -There is a programmable error in your configuration file: - -Traceback (most recent call last): - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/sphinx/config.py", line 358, in eval_config_file - exec(code, namespace) # NoQA: S102 - ^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/docs/conf.py", line 118, in - gee_configure() - File "/workspaces/gee_tools/docs/conf.py", line 115, in gee_configure - ee.Initialize(http_transport=httplib2.Http()) - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/ee/_utils.py", line 38, in wrapper - return func(*args, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/ee/__init__.py", line 140, in Initialize - credentials = data.get_persistent_credentials() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/workspaces/gee_tools/.nox/docs/lib/python3.11/site-packages/ee/data.py", line 268, in get_persistent_credentials - raise ee_exception.EEException( # pylint: disable=raise-missing-from -ee.ee_exception.EEException: Please authorize access to your Earth Engine account by running - -earthengine authenticate - -in your command line, or ee.Authenticate() in Python, and then retry. +.. jupyter_execute:: + import ee, geetools + + ee.Initialize() + + S2 = ee.ImageCollection('COPERNICUS/S2_SR').first().scaleAndOffset() +/workspaces/gee_tools/docs/autoapi/geetools/Image/index.rst:795: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/Image/index.rst:819: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/ImageCollection/index.rst:158: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/ImageCollection/index.rst:242: ERROR: Unknown directive type "jupyter_execute". + +.. jupyter_execute:: + + import ee, geetools + + ee.Initialize() + + S2 = ee.ImageCollection('COPERNICUS/S2_SR').scaleAndOffset() +/workspaces/gee_tools/docs/autoapi/geetools/ImageCollection/index.rst:258: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/ImageCollection/index.rst:282: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/User/index.rst:50: ERROR: Unknown directive type "jupyter-execture". + +.. jupyter-execture:: + + import ee + import geetools + + # cannot be displayed in the documentation as the creation + # of a new user requires user interaction + + # geetools.User.create("secondary") + # geetools.User.set("secondary") + # ee.Number(1).getInfo() +/workspaces/gee_tools/docs/autoapi/geetools/User/index.rst:73: ERROR: Unknown directive type "jupyter-execture". + +.. jupyter-execture:: + + import ee + import geetools + + # cannot be displayed in the documentation as the creation + # of a new user requires user interaction + + # geetools.User.create("secondary") + # geetools.User.delete("secondary") + # geetools.User.set("secondary") + # will raise an error as the user does not exist anymore +/workspaces/gee_tools/docs/autoapi/geetools/User/index.rst:100: ERROR: Unknown directive type "jupyter-exectute". + +.. jupyter-exectute:: + + import ee + import geetools + + geetools.User.list( +/workspaces/gee_tools/docs/autoapi/geetools/User/index.rst:141: ERROR: Unknown directive type "jupyter-execture". + +.. jupyter-execture:: + + import ee + import geetools + + geetools.User.set() + + # check that GEE is connected + ee.Number(1).getInfo() +/workspaces/gee_tools/docs/autoapi/geetools/algorithms/index.rst:215: WARNING: Field list ends without a blank line; unexpected unindent. +/workspaces/gee_tools/docs/autoapi/geetools/batch/image/index.rst:88: WARNING: Field list ends without a blank line; unexpected unindent. +/workspaces/gee_tools/docs/autoapi/geetools/batch/image/index.rst:92: WARNING: Definition list ends without a blank line; unexpected unindent. +/workspaces/gee_tools/docs/autoapi/geetools/batch/image/index.rst:114: WARNING: Field list ends without a blank line; unexpected unindent. +/workspaces/gee_tools/docs/autoapi/geetools/bitreader/index.rst:51: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/bitreader/index.rst:49: WARNING: Inline literal start-string without end-string. +/workspaces/gee_tools/docs/autoapi/geetools/bitreader/index.rst:58: WARNING: Inline literal start-string without end-string. +/workspaces/gee_tools/docs/autoapi/geetools/classification/index.rst:42: WARNING: Field list ends without a blank line; unexpected unindent. +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:97: WARNING: duplicate object description of geetools.Array, other instance in autoapi/geetools/Array/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:149: WARNING: duplicate object description of geetools.Date, other instance in autoapi/geetools/Date/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:263: WARNING: duplicate object description of geetools.DateRange, other instance in autoapi/geetools/DateRange/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:307: WARNING: duplicate object description of geetools.Dictionary, other instance in autoapi/geetools/Dictionary/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:373: WARNING: duplicate object description of geetools.Feature, other instance in autoapi/geetools/Feature/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:402: WARNING: duplicate object description of geetools.FeatureCollection, other instance in autoapi/geetools/FeatureCollection/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:491: WARNING: duplicate object description of geetools.Filter, other instance in autoapi/geetools/Filter/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:522: WARNING: duplicate object description of geetools.Float, other instance in autoapi/geetools/Float/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:535: WARNING: duplicate object description of geetools.Geometry, other instance in autoapi/geetools/Geometry/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:569: WARNING: duplicate object description of geetools.Image, other instance in autoapi/geetools/Image/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1014: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1151: WARNING: Inline strong start-string without end-string. +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1315: ERROR: Unknown directive type "jupyter_execute". + +.. jupyter_execute:: + + import ee, geetools + + ee.Initialize() + + S2 = ee.ImageCollection('COPERNICUS/S2_SR').first().scaleAndOffset() +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1331: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1355: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1443: WARNING: duplicate object description of geetools.ImageCollection, other instance in autoapi/geetools/ImageCollection/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1568: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1652: ERROR: Unknown directive type "jupyter_execute". + +.. jupyter_execute:: + + import ee, geetools + + ee.Initialize() + + S2 = ee.ImageCollection('COPERNICUS/S2_SR').scaleAndOffset() +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1668: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1692: ERROR: Unexpected indentation. +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1751: WARNING: duplicate object description of geetools.Integer, other instance in autoapi/geetools/Integer/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1764: WARNING: duplicate object description of geetools.Join, other instance in autoapi/geetools/Join/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:1804: WARNING: duplicate object description of geetools.List, other instance in autoapi/geetools/List/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:2037: WARNING: duplicate object description of geetools.Number, other instance in autoapi/geetools/Number/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:2065: WARNING: duplicate object description of geetools.String, other instance in autoapi/geetools/String/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:2115: WARNING: duplicate object description of geetools.User, other instance in autoapi/geetools/User/index, use :no-index: for one of them +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:2132: ERROR: Unknown directive type "jupyter-execture". + +.. jupyter-execture:: + + import ee + import geetools + + # cannot be displayed in the documentation as the creation + # of a new user requires user interaction + + # geetools.User.create("secondary") + # geetools.User.set("secondary") + # ee.Number(1).getInfo() +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:2155: ERROR: Unknown directive type "jupyter-execture". + +.. jupyter-execture:: + + import ee + import geetools + + # cannot be displayed in the documentation as the creation + # of a new user requires user interaction + + # geetools.User.create("secondary") + # geetools.User.delete("secondary") + # geetools.User.set("secondary") + # will raise an error as the user does not exist anymore +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:2182: ERROR: Unknown directive type "jupyter-exectute". + +.. jupyter-exectute:: + + import ee + import geetools + + geetools.User.list( +/workspaces/gee_tools/docs/autoapi/geetools/index.rst:2223: ERROR: Unknown directive type "jupyter-execture". + +.. jupyter-execture:: + + import ee + import geetools + + geetools.User.set() + + # check that GEE is connected + ee.Number(1).getInfo() +/workspaces/gee_tools/CONTRIBUTING.rst:82: WARNING: duplicate label contributing-docs, other instance in /workspaces/gee_tools/docs/contribute/contribute.rst