def _get_zoom(zoom, input_raster, pyramid_type):
if not zoom:<EOL><INDENT>minzoom = <NUM_LIT:1><EOL>maxzoom = get_best_zoom_level(input_raster, pyramid_type)<EOL><DEDENT>elif len(zoom) == <NUM_LIT:1>:<EOL><INDENT>minzoom = zoom[<NUM_LIT:0>]<EOL>maxzoom = zoom[<NUM_LIT:0>]<EOL><DEDENT>elif len(zoom) == <NUM_LIT:2>:<EOL><INDENT>if zoom[<NUM_LIT:0>] < zoom[<NUM_LIT:1>]:<EOL><INDENT>minzoom = zoom[<NUM_LIT:0>]<EOL>maxzoom = zoom[<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>minzoom = zoom[<NUM_LIT:1>]<EOL>maxzoom = zoom[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>return minzoom, maxzoom<EOL>
Determine minimum and maximum zoomlevel.