Inverted Joins

Suppose that the purpose of the join is to retain all images in the primary collection that are not in the secondary collection. You can perform this type of inverted join using ee.Join.inverted(). Using the filter, primary and secondary collections as defined in the simple join example, specify the inverted join as:

Code Editor (JavaScript)

// Define the join.
var invertedJoin = ee.Join.inverted();

// Apply the join.
var invertedJoined = invertedJoin.apply(primary, secondary, filter);

The output should look something like:

Image LANDSAT/LC8_L1T_TOA/LC80440342014093LGN00 (12 bands)
Image LANDSAT/LC8_L1T_TOA/LC80440342014109LGN00 (12 bands)

The inverted join contains the images from April 3 and April 19, indicating the images that are present in the primary collection but not in the secondary collection.