The URL of the dataset's collection.json.
Loads the collection.json specified by collectionUrl and prepares this instance so that it can be used.
Returns the string representation of a date/time. It converts the date/time into a string representation that reflects the dataset's specific time interval, for example "YYYY/MM" for a monthly dataset, "YYYY/MM/DD" for a daily dataset, and "MM" for a climatology value (such as an average obtained from multiple years of data).
Returns the first available date/time.
Returns the last available date/time.
Returns the date/time for which data exists before the date/time specified in the argument. Since the search communicates through the catalog file, it returns a Promise.
Returns the date/time for which data exists after the date/time specified in the argument. Since the search communicates through the catalog file, it returns a Promise.
Returns all date/times of data contained within the specified date/time range (start <= Date < end).
The start date/time for searching date/times.
The end date/time for searching date/times. (This date/time is not included.)
Returns the string representations of all date/times of data contained within the specified date/time range (start <= Date < end).
The start date/time for searching date/times.
The end date/time for searching date/times. (This date/time is not included.)
Returns all band names available in this ImageCollection. They can be retrieved as a string array that preserves the order of the band names defined in collection.json.
An array of available band names
Retrieves the Image for the specified date/time and band name.
The date/time specification works as follows.
new Date() is used, so the most recent data can be retrieved.The band name specification works as follows.
Optionaldate?: DateSpecifies the date/time.
Optionalband?: stringSpecifies the band name.
The ImageCollection class that stores information about a dataset. It mainly handles date/time and band information.
You create an instance by specifying the URL of the dataset's collection.json, and complete the preparation by running init.
After that, you can search for the date/times available in this dataset using first, last, prev, next, and so on, and then retrieve an Image by running getImage with a specified date/time and band name.
Example