Maggie Samson
Quiz by , created more than 1 year ago

Geography Quiz on GEOM 73 - Python Quiz 4, created by Maggie Samson on 14/04/2019.

53
2
0
Maggie Samson
Created by Maggie Samson about 5 years ago
Close

GEOM 73 - Python Quiz 4

Question 1 of 10

1

When working with raster data using the Describe function, which 3 different raster data elements could be returned?

Select one or more of the following:

  • raster band

  • raster file

  • raster image

  • raster dataset

  • raster catalog

  • raster collection

Explanation

Question 2 of 10

1

Which property(ies) of a raster object can you use to determine whether a raster has more than one band? (select all that apply)

Select one or more of the following:

  • format

  • bandCount

  • dataType

  • pixelType

  • isMultiband

Explanation

Question 3 of 10

1

Which of the following properties are associated with individual raster bands, but not with multiband raster datasets? (select all that apply)

Select one or more of the following:

  • noDataValue

  • format

  • compressionType

  • pixelType

  • bandCount

  • meanCellWidth

Explanation

Question 4 of 10

1

Consider the following code:

import arcpy
arcpy.env.workspace = "C:/Mydata"
rasterlist = arcpy.ListRasters()
for raster in rasterlist:
print raster

The result is as follows:
elevation

What file format is the file called elevation?

Select one of the following:

  • ERDAS IMAGINE

  • TIFF

  • raster

  • Esri GRID

  • feature class

  • DEM

Explanation

Question 5 of 10

1

Raster is a class of the arcpy.sa module.

Select one of the following:

  • True
  • False

Explanation

Question 6 of 10

1

When using arcpy.sa, what does a map algebra expression by default?

Select one of the following:

  • a raster file

  • a raster dataset

  • a describe object

  • a raster object

  • a geoprocessing object

Explanation

Question 7 of 10

1

Consider the following script:

import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "C:/raster"
mynbr = NbrRectangle(5, 5, "CELL")
outraster = FocalStatistics ("landuse", mynbr, "VARIETY")
outraster.save("C:/raster/lu_var")

Which of the following is (are) a class of the arcpy.sa module? (select all that apply)

Select one or more of the following:

  • NbrRectangle

  • env

  • save

  • FocalStatistics

Explanation

Question 8 of 10

1

Consider the following code:

import arcpy
from arcpy.sa import *

What does import * accomplish?

Select one of the following:

  • imports the arcpy.sa module so all the properties and method can be utilized

  • imports any of the submodules associated with the arcpy.sa module so they don't need to be called separately

  • imports all the functions and other elements from the arcpy.sa module so they can be called directly

  • imports all the raster objects

Explanation

Question 9 of 10

1

Which of the following are classes are part of the arcpy.sa module and are used to define parameters of raster tools?

Select one or more of the following:

  • ValueTable

  • SearchNeighborhoodStandard

  • NbrCircle

  • RadiusFixed

  • RemapValue

  • Raster

Explanation

Question 10 of 10

1

The arcpy.sa module only has one function. Which one is it?

Select one of the following:

  • RasterObject

  • SpatialReference

  • MapAlgebra

  • ApplyEnvironment

Explanation