Skip to content

Commit

Permalink
DOCS: First code-tabs (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
davemlz committed Mar 2, 2022
1 parent 20ec79e commit b61a96f
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions eemont/imagecollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ def closest(self, date, tolerance=1, unit="month"):
Examples
--------
>>> import ee, eemont
>>> ee.Initialize()
>>> S2 = ee.ImageCollection('COPERNICUS/S2_SR').closest('2020-10-15')
.. tabs::
Expand All @@ -125,36 +122,7 @@ def closest(self, date, tolerance=1, unit="month"):
using EarthEngine, PyCall
Initialize()
eemont = pyimport("eemont");
S2 = EE.ImageCollection('COPERNICUS/S2_SR') |> x -> closest(x,'2020-10-15');
.. tabs::
.. tab:: Python
.. code-block:: python
import ee, eemont
ee.Initialize()
S2 = ee.ImageCollection('COPERNICUS/S2_SR').closest('2020-10-15')
.. tab:: R
.. code-block:: r
library(rgee)
library(reticulate)
ee_Initialize()
eemont <- import("eemont")
S2 <- ee$ImageCollection('COPERNICUS/S2_SR')$closest('2020-10-15')
.. tab:: Julia
.. code-block:: julia
using EarthEngine, PyCall
Initialize()
eemont = pyimport("eemont");
S2 = EE.ImageCollection('COPERNICUS/S2_SR') |> x -> closest(x,'2020-10-15');
S2 = EE.ImageCollection("COPERNICUS/S2_SR") |> x -> closest(x,"2020-10-15");
"""
return ee_extra.ImageCollection.core.closest(self, date, tolerance, unit)

Expand Down

0 comments on commit b61a96f

Please sign in to comment.