This page has moved
This page has been moved to https://nasa-gibs.github.io/gibs-api-docs/. Please update your bookmarks. This page will redirect in about 5 seconds.
The Global Imagery Browse Services (GIBS) are designed to deliver global, full-resolution satellite imagery to users in a highly responsive manner, enabling interactive exploration of the Earth. To achieve that interactivity, GIBS first ingests imagery from a given NASA data provider on a continuous basis, creates a global mosaic of that imagery, then chops the mosaic into an image tile pyramid (see figure below). By pre-generating these tiles, it relieves the servers of image rescaling and cropping duties, greatly reducing computational overhead and enabling a highly responsive system. This also means that the primary method of imagery retrieval for clients is tile-based. For more background on how tiled web maps work, see the MapBox Developers Guide.
An image tile pyramid (from OGC WMTS 1.0.0 specification)
While the requests made to GIBS are for individual tiles, users generally work at a higher level and configure a map library, GIS client, or script to determine which tiles to retrieve. These clients and scripts need to know which products are available, which map projections are available, and how many zoom levels they support. GIBS provides this access through five mechanisms:
The implementation of these services is built from the long-running "OnEarth" server system at NASA/JPL.
Access to GIBS via OGC WMTS, OGC WMS, Tiled WMS, and GDAL is described below.
In addition, source code for the GIBS tiled imagery server and tiled imagery storage format is available. See this blog post for more info along with the code on GitHub.
GIBS imagery layers are named and made available through a set of defined endpoints based on the following characteristics:
You will note in the list of available GIBS products, that there are columns for "Projection(s)" and "Resolution", which correspond to the information provided below. GIBS services additionally provide machine-readable documents (e.g. WMTS "Get Capabilities") that provide specific information regarding all available imagery layers.
For GIBS service endpoints, additional DNS entries are available as a way to circumvent simultaneous connection limits of the web browser (as described here ). The additional DNS entries are https://gibs-a.earthdata.nasa.gov, https://gibs-b.earthdata.nasa.gov, and https://gibs-c.earthdata.nasa.gov. Please note that these are not additional servers, simply aliases for the https://gibs.earthdata.nasa.gov domain.
The remainder of this section provides additional details regarding how GIBS imagery layers are named and made available through service endpoints. These details provide a thorough description of the available configurations of the GIBS imagery layers. Outside of this section, this page will reference only the "Best Available" imagery layers and endpoints, described below, for simplicity.
GIBS imagery layer identifiers follow a human-readable convention (e.g. MODIS_Terra_Aerosol_Optical_Depth_v6_STD) to simplify situations where manual parsing of service documentation (e.g. WMTS GetCapabilities) is performed. Identifiers include uniquely identifying information like the following items:
The following are examples of imagery layer identifiers for the "Aerosol Optical Depth" science parameter collected by the MODIS instrument on the Terra platform. In this example, imagery layers exist for a combination of data versions and latencies. The first item is considered the "Best Available" layer, which is described further in the following section.
Example layer names are listed below:
As has been discussed, imagery layers visualizing the same science parameter from a specific instrument and platform may be available for multiple versions and/or data latencies. Direct access to those various flavors of the same visualization are directly available. However, many users are simply interested in seeing a consistent "best available" imagery layer. The details of what is "best" being determined by the GIBS team. Therefore, GIBS provides a unique set of "Best Available" imagery layers for all of its imagery layers, abstracting away the individual versions and latencies. A similar naming convention is used, as described in the previous section, but identifiers do not specify the version or latency (e.g. MODIS_Terra_Aerosol_Optical_Depth).
For each "best available" layer, the "best" image will be determined based on the evaluation of availability for following imagery products:
See the image to the right for a visual example. The top four bars show the temporal coverage of related imagery products. The bottom bar shows the imagery products that will be returned based on the "best available" determination. | Time → |
GIBS supports imagery products in the following projections. In order to facilitate the pre-generation of tiled imagery, GIBS has selected a set of resolutions within each projection.
When developing new imagery layers, GIBS works with the imagery providers to determine the "appropriate" projections and resolution. The following guidelines will help you access these layers:
For each projection and resolution, a certain number of zoom levels are available for tiled access services (i.e. WMTS and TWMS). Each zoom level corresponds to a "power of 2" zoom in/out from the previous/next level. This information can be used to configure your map client to work with GIBS. Note that the GIBS spatial coverage of the Geographic and Web Mercator projections match the full extent of the projections, as defined by the EPSG. The GIBS spatial coverages of the north and south polar projections are a subset of the full projection extent, as defined by the EPSG. The GIBS' extents were selected to a) cover the main land/ice masses at each pole and b), to ensure that the full resolution image has a resolution and pixel height/width that are a power of two as required for tiled access and zooming.
The following subsections provide additional information regarding the GIBS projections and their available resolutions:
GIBS imagery layers are made available through standard access methods, described in a following section of this page. Where applicable, those services have multiple "endpoints" that contain a specific set of GIBS imagery layers. The endpoints are scoped using the following items:
The pattern for a GIBS service endpoint is shown below. Parameterized elements of the pattern are provided in \{paramter:value1[|value2]*\} notation.
https://gibs.earthdata.nasa.gov/{service:wmts|wms|twms}/epsg{code:4326|3857|3413|3031}/{type:all|best|nrt|std}
The following table provides some sample endpoints for various unique combinations:
Service | EPSG | Type | Sample Endpoint |
---|---|---|---|
WMTS | 4326 | all | https://gibs.earthdata.nasa.gov/wmts/epsg4326/all/ |
WMS | 3857 | best | https://gibs.earthdata.nasa.gov/wms/epsg3857/best/ |
TWMS | 3413 | nrt | https://gibs.earthdata.nasa.gov/twms/epsg3413/nrt/ |
The Open Geospatial Consortium (OGC) Web Map Tile Service (WMTS) provides a way for clients to retrieve tiled mapping data in a standardized manner, handling product-specific details such as available number of zoom levels, map projections, image formats, tile sizes, etc. The WMTS specification provides guidance for three methods of tile retrieval: Key-Value Pair (KVP), REpresentational State Transfer (REST), and Simple Object Access Protocol (SOAP). GIBS supports KVP and REST, but not SOAP.
The WMTS specification requires that a WMTS server provide information regarding the available imagery via a GetCapabilities request. Here is a list of available service endpoints, projections, and their GetCapabilities request:
The core concept within the GetCapabilities response is a map layer. GIBS map layers represent data that changes over time, most commonly providing a different map each day. Therefore, the layer definition within the GIBS GetCapabilities response must present a time dimension. The GIBS team has chosen to address this in the following manner, within each layer:
<Dimension> <ows:Identifier>time</ows:Identifier> <UOM>ISO8601</UOM> <Default>2013-05-29</Default> <Current>false</Current> <Value>2012-05-08/2013-05-29/P1D</Value> </Dimension>
The parts of the Dimension data structure are taken from the WMTS 1.0.0 spec (Table 9, p. 22). However, since the WMTS spec doesn't address the time dimension, we are adapting some aspects of the WMS spec regarding the time dimension, specifically:
If the time dimension is omitted in the WMTS request, GIBS will return tiles for the default date, as specified in the <Default> tag. Note that GIBS' imagery layers all have a value of false in the <Current> tag which means that the special current keyword cannot be provided as the time value. However, GIBS does support use of the special default keyword, which results in the same response as though the date were omitted.
GIBS has chosen to implement the Key-Value Pair and RESTful service interfaces. Equivalent sample requests are included below:
More generically, the RESTful request follows the form of:
The WMTS RESTful interface above can be easily adapted for use as a "generic" XYZ tile server if the developer pre-populates all of the required fields except the tile row, column, and zoom level. For example, by starting with the most generalized GIBS API request:
Populating the fields with the desired projection, product, time, etc (Terra/MODIS Aerosol Optical depth from 2014/04/09, in this case), GIBS products can be used by clients such as ESRI's ArcGIS Online to add a "Tile Layer" by leaving the row, column, and zoom level as parameters:
The Open Geospatial Consortium (OGC) Web Map Service (WMS) provides a way for clients to receive a customized WMS response based on request parameters such as a custom bounding box, dimensions, layer(s) and format. Unlike the rigidity enforced through tiled interfaces (e.g. WMTS and TWMS), WMS responses are more flexible and may contain multiple composited layers in a single output. Two WMS specifications are currently available and supported by GIBS: 1.1.1 and 1.3.0. Both WMS specifications support a single method of image retrieval, which is supported by GIBS: Key-Value Pair (KVP).
The WMS specification requires that a WMS server provide information regarding the available imagery via a GetCapabilities request. Here is a list of available service endpoints, projections, and their GetCapabilities request:
EPSG:3857 GetMap requests for vector-based visualizations may fail when using the Web Mercator WMS endpoint listed above. However, you may instead provide the "CRS=EPSG:3857" query parameter to the Geographic WMS endpoint. This affects the following GIBS visualization layers:
The core concept within the GetCapabilities response is a map layer. GIBS map layers represent data that changes over time, most commonly providing a different map each day. Therefore, the layer definition within the GIBS GetCapabilities response must present a time dimension. The GIBS team has chosen to address this in the following manner, as outlined in the respective OGC WMS specification:
WMS v1.1.1
<Dimension name="time" units="ISO8601"/>
<Extent name="time" default="2018-11-14" nearestValue="1">2013-07-16/2018-11-14/P1D</Extent>
WMS v1.3.0
<Dimension name="time" units="ISO8601" default="2018-10-01" nearestValue="1">2002-09-01/2018-10-01/P1M</Dimension>
If the time dimension is omitted in the WMS request, GIBS will return tiles for the default date, as specified in the default attribute. Note that GIBS' imagery layers all have a value of 1 in the nearestValue tag indicating that GIBS will snap to the nearest time value within the specified dimension extents. Additionally, GIBS supports use of the special default keyword, which results in the same response as though the date were omitted.
GIBS has chosen to implement the Key-Value Pair and RESTful service interfaces. Equivalent sample requests are included below:
Tiled WMS offers fast response to a limited number of WMS access patterns - specifically those access patterns which provide geographic bounds which fall along the edges of pregenerated tiles.
Those patterns are described in the TWMS GetTileService request. The response is an XML encoded list of available WMS access patterns. A TiledPattern access pattern is a set gridded WMS requests, where parameter order, case and content are constant, with the exception of the bbox values. Using this pattern allows fast access to tiles for a given combination of layers and associated styles at a given resolution over a defined area. All the information about a pattern can be extracted form the provided WMS call, using these rules:
Server prefix is defined in the OnlineResource tag Area covered is defined in the LatLonBoundingBox Tile size is provided by the width and height parameters values Tile format is provided by the format parameter value Tile coverage can be computed as (Lon1-Lon0)and (Lat1-Lat0), where Lon1,Lon0,Lat1 and Lat0 are the arguments of the bbox parameter. The Grid alignment results from the bbox argument and the tile coverage. The bbox argument values provided in the pattern are for the top-left tile, the other tile locations can be computed based on the tile coverage. Other metadata that might be of interest to a user is contained in the Name, Title andAbstract tags.
Multiple WMS patterns in a single TilePattern are equivalent. TilePattern tags that have something in common are grouped in a hierarchical structure build using TiledGroup tags. The innermost level refers to the same exact data, possible differences being the image size, image format, resolution, and alignment. Higher level TiledGroup are used to group together related datasets.
A client application is expected to request this information only if it is defined as a request in the WMS server Capabilities. Once obtained, the application needs to analyze the patterns, decide which ones can be used and then issue only WMS requests that match the pattern to the normal WMS server, requests that can be built by modifying the bbox argument in a TiledPattern and prefixing the resulting string with the content of the OnlineResource tag.
The 'time' parameter follows the form YYYY-MM-DD which should be included in the request for a time-varying layer; if the time dimension is omitted in the TWMS request, tiles for the current UTC date will be returned. Be aware that many of the current date’s tiles will be empty because the imagery is generated as the satellites orbit from east to west.
Service endpoint: https://gibs.earthdata.nasa.gov/twms/epsg4326/best/twms.cgi
GetTileService request: https://gibs.earthdata.nasa.gov/twms/epsg4326/best/twms.cgi?request=GetTileService
Vector products are accessible through the GIBS WMTS and WMS services. WMTS responses are formatted as gzip-compressed Mapbox vector tiles (specification), or "MVTs", while WMS responses are available as raster images. See the Access section below for more information.
The data behind each visualization service is the same, however the mechanism for styling differs. A client application is responsible for applying styling to MVTs when using the WMTS API. Conversely, GIBS applies a default style when rendering vector data as a raster when using the WMS API. See the Vector Layer Styles section below for more information.
An MVT returned via the WMTS service contains information for a client to draw the features within the user interface, but also a set of properties that contain data associated with the feature. The Mapbox vector tile specification provides structure for representing these data, but no mechanism for interpreting the meaning or intended use. As such, additional metadata is required. GIBS has developed a specification for defining each property contained within MVTs in its vector products. See the Vector Layer Metadata section below for more information.
The following sections provide examples for how to detect and interact with vector products within the GIBS WMTS and WMS services
Vector products are not natively provided in the EPSG:3857 projection through either the WMTS or WMS services. A workaround for WMS requests is to utilize the EPSG:4326 endpoint with EPSG:3857-based SRS
and BBOX
query parameters (example).
As mentioned previously, the Mapbox vector tile specification provides structure for representing these data, but no mechanism for interpreting the meaning or intended use. As such, GIBS has developed a Vector Metadata Specification for defining each property contained within MVTs in its vector products. Each vector product has an associated JSON vector metadata file which provides the following information:
As mentioned previously, a client is responsible for applying style to MVT tiles received from the GIBS WMTS service in order to represent the feature defined within the MVT. This is most simply done by utilizing the vector style file provided by GIBS for each vector product. These vector style files following the Mapbox style specification. Here is a live example of how to use these styles with OpenLayers.
The Geospatial Data Abstraction Library (GDAL) WMS driver supports several internal 'minidrivers' that allow access to different web mapping services. Each of these services may support a different set of options in the Service block. Documentation for these minidrivers can be found here on the GDAL website. Two of these minidrivers in particular can be used by users to download GIBS imagery programmatically. They are the Tile Map Specification (TMS) and the OnEarth Tiled WMS (TiledWMS) minidrivers. For more information and examples regarding interacting with the GIBS API through these GDAL minidrivers, refer to our Map Library Usage wiki page.
A "Bulk Download" is defined as the planned retrieval of more than 1,000,000 imagery tiles within a 24 hour period. These activities are typically orchestrated through script-based access to the GIBS API, not user-based access through a client application. In order to ensure quality of service for all GIBS users, the GIBS team requests that bulk downloading activities be coordinated at least 48 hours in advance of the planned download. Prior to beginning your bulk downloading activities, please contact the GIBS support team at support@earthdata.nasa.gov with the subject "GIBS Bulk Download Request" and the following information:
The GIBS utilization profile indicates that there is not a period of time within which "regular" usage drops. Therefore, bulk downloading activities are allowed to occur as is convenient for the downloading group or individual. The following guidelines should be taken into consider when designing a bulk download plan:
Subscribe to our mailing list and follow our blog to stay up-to-date with new features and changes to existing services. Or contact us at support@earthdata.nasa.gov with feedback and questions.