Maggie Samson
Quiz von , erstellt am more than 1 year ago

Geography Quiz am GEOM 73 - Python Quiz 4, erstellt von Maggie Samson am 14/04/2019.

53
2
0
Maggie Samson
Erstellt von Maggie Samson vor mehr als 5 Jahre
Schließen

GEOM 73 - Python Quiz 4

Frage 1 von 10

1

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

Wähle eine oder mehr der folgenden:

  • raster band

  • raster file

  • raster image

  • raster dataset

  • raster catalog

  • raster collection

Erklärung

Frage 2 von 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)

Wähle eine oder mehr der folgenden:

  • format

  • bandCount

  • dataType

  • pixelType

  • isMultiband

Erklärung

Frage 3 von 10

1

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

Wähle eine oder mehr der folgenden:

  • noDataValue

  • format

  • compressionType

  • pixelType

  • bandCount

  • meanCellWidth

Erklärung

Frage 4 von 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?

Wähle eine der folgenden:

  • ERDAS IMAGINE

  • TIFF

  • raster

  • Esri GRID

  • feature class

  • DEM

Erklärung

Frage 5 von 10

1

Raster is a class of the arcpy.sa module.

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 6 von 10

1

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

Wähle eine der folgenden:

  • a raster file

  • a raster dataset

  • a describe object

  • a raster object

  • a geoprocessing object

Erklärung

Frage 7 von 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)

Wähle eine oder mehr der folgenden:

  • NbrRectangle

  • env

  • save

  • FocalStatistics

Erklärung

Frage 8 von 10

1

Consider the following code:

import arcpy
from arcpy.sa import *

What does import * accomplish?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 9 von 10

1

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

Wähle eine oder mehr der folgenden:

  • ValueTable

  • SearchNeighborhoodStandard

  • NbrCircle

  • RadiusFixed

  • RemapValue

  • Raster

Erklärung

Frage 10 von 10

1

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

Wähle eine der folgenden:

  • RasterObject

  • SpatialReference

  • MapAlgebra

  • ApplyEnvironment

Erklärung