geeViz.getImagesLib#
Get images and organize them so they are easier to work with
geeViz.getImagesLib is the core module for setting up various imageCollections from GEE. Notably, it facilitates Landsat, Sentinel-2, and MODIS data organization. This module helps avoid many common mistakes in GEE. Most functions ease matching band names, ensuring resampling methods are properly set, date wrapping, and helping with cloud and cloud shadow masking.
Functions
|
|
|
Applies an algal detection algorithm based on: Matthews, M. |
|
|
|
Applies the Refined Lee speckle filter to a Sentinel-1 image. |
|
|
|
Adds a date band to an image. |
Adds a full year Julian day band to an image. |
|
|
Adds various spectral indices to an image. |
|
Adds a Julian day band to an image. |
|
Adds SAVI and EVI indices to an image. |
|
Adds a sensor band to an image. |
|
Adds soil-related indices to an image. |
|
Adds Tasseled Cap angles and distances to an image. |
|
Adds a year band to an image. |
|
Adds a year fraction band to an image. |
|
Adds a year and Julian day band to an image. |
Adds a year and year fraction band to an image. |
|
|
Adds solar zenith and azimuth angles in radians to an image. |
|
Applies a bitmask to an image. |
|
Applies a cloud score algorithm to an image collection. |
|
|
|
Applies the CFMask algorithm to a Landsat image. |
|
Applies the CFMask cloud mask to a Landsat image. |
|
Applies the CFMask cloud shadow mask to a Landsat image. |
|
|
|
|
|
Deprecated - use .toBands(). |
|
Finds the dates corresponding to bands in a composite image. |
|
Creates composites for each year within a specified date range. |
|
|
|
Creates daily mosaics from an image collection. |
|
Defringes a Landsat 7 image. |
|
|
|
|
|
|
|
|
|
|
|
Exports an image to an Earth Engine asset. |
|
Exports an image to Google Cloud Storage. |
|
Exports an image to Google Drive. |
|
Fills empty image collections with a dummy image. |
|
Formats arguments as strings for setting as image properties. |
|
|
|
Wrapper function to retrieve and process climate data from various Earth Engine collections. |
|
|
|
|
|
|
|
|
|
Retrieves Landsat imagery for a specified study area and date range. |
|
Retrieves Landsat imagery for a specified study area and date range. |
|
|
|
|
|
Retrieves MODIS imagery from Earth Engine for a specified period. |
|
|
|
|
|
|
|
|
|
|
|
Retrieves, processes, and filters Landsat scenes for a specified area and time period. |
|
Retrieves, processes, and filters MODIS imagery for a specified period. |
|
|
|
Extracts specific bits from a QA band. |
|
Loads Sentinel-1 GRD data for a given area and time period. |
|
Loads Sentinel-2 data for a given area and time period and joins cloud score information. |
|
Loads Sentinel-2 data for a given area and time period and joins cloud score information. |
|
|
|
Computes the Tasseled Cap transformation for an image using the Crist 1985 coefficients. |
|
Harmonizes Landsat images using Chastain et al. (2018) coefficients. |
|
Harmonizes Landsat 8 OLI to Landsat 7 ETM+ using Roy et al. (2016) coefficients. |
|
|
|
|
|
|
|
Computes a cloud score for a Landsat image and adds a band that represents the cloud mask. |
|
|
|
Masks pixels without observations in an image. |
|
Masks clouds in a Sentinel-2 image using the QA60 band. |
|
Creates a medoid mosaic using the Mean Squared Difference (MSD) (euclidean distance) method. |
|
|
|
|
|
|
|
|
|
Offsets the date of an image. |
|
|
|
|
|
|
|
Rescales pixel values in an image using a min-max normalization. |
|
|
|
|
|
Sets null values for an image. |
|
Performs clumping and elimination on an image. |
|
Adds common spectral indices to an image. |
|
Adds the Tasseled Cap brightness-greenness angle to an image as in Powell et al 2009. |
|
Computes the Tasseled Cap transformation for an image, including only brightness, greenness, and wetness using the Crist 1985 coefficients. |
|
Applies a simple temporal dark object differencing (TDOM) algorithm to an image collection. |
|
Performs a basic on-the-fly water masking for TOA reflectance imagery. |
|
|
|
|
|
This function retrieves Sentinel-2 satellite imagery from Earth Engine for a specified study area and date range. |
|
|
|
Converts a Sentinel-1 image from natural units to dB. |
|
Converts a Sentinel-1 image from dB to natural units. |
|
Finds unique values of a field in an image collection. |
|
Wraps dates when the startJulian is greater than the endJulian. |