rasterio/scripts/rasterio.insp
Sean Gillies fc563c8f22 Deprecate rasterio.insp.
Closes #50 and #52.
2014-03-15 09:15:46 -06:00

38 lines
945 B
Python

#!/usr/bin/env python
"""Rasterio interactive dataset inspector
This script is deprecated. Use rio_insp instead.
This script will be removed before 1.0.
"""
import argparse
import sys
import rasterio
from rasterio.tool import main
if __name__ == '__main__':
parser = argparse.ArgumentParser(
prog="rio_insp",
description="Open a dataset and drop into an interactive interpreter")
parser.add_argument(
'src',
metavar='FILE',
help="Input dataset file name")
args = parser.parse_args()
sys.exit(
main(
'Rasterio %s Interactive Inspector (Python %s)\n'
'** NB: this program is deprecated, please use rio_insp instead **\n'
'Type "src.meta", "src.read_band(1)", or "help(src)" '
'for more information.' % (
rasterio.__version__,
'.'.join(map(str, sys.version_info[:3]))),
args.src))