ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

How Sample works

Available with Spatial Analyst license.

  • Sample output for two-dimensional rasters
  • Sample output for multidimensional rasters

If the input locations for the Sample tool are specified as a point feature dataset, the point coordinates may not be the same as the cell centers of the cells specified in the input raster. To determine the values at the exact locations of the selected points, a resampling technique must be adopted. For discrete data types, the default NEAREST resampling algorithm will be satisfactory. However, for continuous data types, it is more appropriate to perform another resampling technique. For instance, for elevation data, applying bilinear interpolation or cubic convolution will provide more accurate results. The bilinear option will determine the cell values based on a weighted distance of the four nearest input cell centers. The cubic option will compute the cell value based on the weighted distance of the nearest 16 cells.

The Process as multidimensional parameter determines how the input rasters are sampled. If this parameter is checked, the input rasters will be sampled along all of their dimensions; otherwise, only the current slice of a multidimensional raster will be sampled. When the process as multidimensional parameter is checked, the sampled values appear in separate rows of the output table (row-wise output). When the parameter is unchecked, sampled values appear as separate columns in the output table (column-wise). Row-wise output can be helpful when using the output table to create charts or graphs.

Sample output for two-dimensional rasters

For each sample location, information on the location number (the raster value or point feature ID), location in map space (x,y coordinates), and cell values from each of the input rasters is written to the table. The table has the following general structure:

    locationID-1 x-coord1 y-coord1 cellvalue1 cellvalue2 cellvalue3 ....
    locationID-2 x-coord2 y-coord2 cellvalue1 cellvalue2 cellvalue3 ....

An example of an FGDB table output from the Sample tool follows:

Example output from Sample for two-dimensional input raster

Sample output for multidimensional rasters

For each sample location, information on the location number (the raster value, point feature ID, or value of the field specified in the Unique ID parameter) and cell values from each of the input rasters is written to the table. A new row is added to the table for each unique combination of dimension values. For example, if a dataset has 10 depths for four time periods and there are two sample locations, the resulting table will contain 80 rows. The table has the following general structure:

    locationID-1 cellvalue dimensionAvalue1 dimensionBvalue1 ....
    locationID-1 cellvalue dimensionAvalue1 dimensionBvalue2 ....
    locationID-1 cellvalue dimensionAvalue2 dimensionBvalue1 ....
    locationID-1 cellvalue dimensionAvalue2 dimensionBvalue2 ....
    locationID-2 cellvalue dimensionAvalue1 dimensionBvalue1 ....
    locationID-2 cellvalue dimensionAvalue1 dimensionBvalue2 ....
    locationID-2 cellvalue dimensionAvalue2 dimensionBvalue1 ....
    locationID-2 cellvalue dimensionAvalue2 dimensionBvalue2 ....

An example of an FGDB table output from the Sample tool follows:

Example output from Sample for multidimensional input raster

Related Topics

  • An overview of the Extraction tools
  • Sample
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal