NTv2 — NTv2 Datum Shift Grid
Binary grid shift file format (.gsb) storing latitude and longitude offsets for transformations between geodetic datums.
- Type
- Raster · Scientific & multidimensional
- Extension
- .gsb
- Converter
- Read only
- Coordinate system
- Always Geographic (grid in the source datum) (EPSG:4326)
- Bands
- 4 (lat/lon shift + accuracies).
What is a NTv2 file?
NTv2 (National Transformation version 2) is a binary format for grid-based datum transformations. It was developed by the Geodetic Survey Division of Natural Resources Canada. Many national mapping agencies have since adopted it to publish the official transformations between legacy and modern geodetic datums, and coordinate transformation libraries and GIS software use it to apply those shifts.
An NTv2 file normally has the .gsb extension. It begins with an overview header, followed by one or more subgrids, each with its own header records. Subgrids can be nested, so that a denser grid covers areas that need higher accuracy within a coarser parent grid. Every grid node stores four 32-bit floating-point values: the latitude shift, the longitude shift and the accuracy estimate of each, expressed in arc-seconds. The grid is defined in geographic coordinates of the source datum. When read as a raster, each subgrid appears as a four-band dataset. The format applies only to horizontal shifts.
NTv2 grids are usually supplied by national mapping or geodetic agencies and received by surveyors, GIS analysts and software developers who must move data between legacy and modern datums. The file is not a map but a table of shifts, so it only makes sense together with the correct source and target datum. Check the agency's documentation for the coverage area and the stated accuracy before applying it.
Typical uses
- Transforming coordinates from a legacy national datum to a modern datum.
- Supplying official datum shift grids to PROJ-based software and GIS projects.
- Inspecting shift values and accuracy estimates of a grid as a four-band raster.
- Checking the coverage and nested subgrids of an agency-published transformation.
Sample NTv2 files — free download
Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.
A sample file for this format is not available yet. (NTv2 files are datum-shift grids, not geodata; no official NTv2 grid exists for Saint Helena, so a sample would be fictitious.)
Frequently asked questions
The point probably lies outside the area covered by the grid's subgrids. NTv2 only defines shifts within its own extent, so coordinates beyond it cannot be transformed with that file. Use another grid or a different transformation method for those locations.
Related formats
- GRIBWMO GRIdded Binary (GRIB/GRIB2)WMO-standard binary format for gridded meteorological and oceanographic data such as weather forecasts and analyses
- netCDF rasterNetwork Common Data FormSelf-describing binary format for multidimensional scientific arrays such as climate, ocean and atmospheric grids
- ZarrZarr Array Store (v2/v3)Open specification for chunked, compressed N-dimensional arrays stored as JSON metadata plus binary chunk objects
- FITSFlexible Image Transport System (FITS)Standard astronomy format for images and tables, also used for planetary rasters georeferenced with WCS keywords
- HDF5Hierarchical Data Format 5 (HDF5)Hierarchical scientific data container of groups and n-dimensional datasets, widely used for satellite products
- ISCEISCE Raster (InSAR Scientific Computing Environment)Headerless binary SAR raster with an XML metadata sidecar, used by the InSAR Scientific Computing Environment
- ISIS2USGS ISIS Cube (version 2)Planetary image cube format of USGS ISIS version 2, with a PDS3-style ODL label followed by binary pixel data
- ISIS3USGS ISIS Cube (version 3)Planetary image cube format of USGS ISIS 3 and later, with a PVL text label and band-sequential or tiled binary data
Ready to convert your data?
Drop the files and the Converter does the rest — no install, no account needed for your first conversions.