Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jkariscodes/966e7ca5f0d7ff93b5342a9f74e43ec9 to your computer and use it in GitHub Desktop.
Save jkariscodes/966e7ca5f0d7ff93b5342a9f74e43ec9 to your computer and use it in GitHub Desktop.
/usr/bin/python2.7 /home/hempire/PycharmProjects/GRASSproject/landsatProcessing.py
L7_Kenya
Ungzip Landsat files in /home/hempire/grassdata/L7Dir/landsat
Import in GRASS GIS
> LE07_L1TP_166060_20030303_20170126_01_T1_B2
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B2>...
> LE07_L1TP_166060_20161016_20161111_01_T1_B2
Region for the current mapset updated
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B2>...
Region for the current mapset updated
> LE07_L1TP_166060_20030303_20170126_01_T1_B62
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B62>...
> LE07_L1TP_166060_20030303_20170126_01_T1_B8
Region for the current mapset updated
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B8>...
Region for the current mapset updated
> LE07_L1TP_166060_20161016_20161111_01_T1_B1
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B1>...
Region for the current mapset updated
> LE07_L1TP_166060_20030303_20170126_01_T1_B4
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B4>...
Region for the current mapset updated
> LE07_L1TP_166060_20161016_20161111_01_T1_B8
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B8>...
Region for the current mapset updated
> LE07_L1TP_166060_20161016_20161111_01_T1_B7
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B7>...
Region for the current mapset updated
> LE07_L1TP_166060_20161016_20161111_01_T1_BQA
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_BQA>...
> LE07_L1TP_166060_20161016_20161111_01_T1_B4
Region for the current mapset updated
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B4>...
Region for the current mapset updated
> LE07_L1TP_166060_20030303_20170126_01_T1_B3
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B3>...
Region for the current mapset updated
> LE07_L1TP_166060_20161016_20161111_01_T1_B62
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B62>...
Region for the current mapset updated
> LE07_L1TP_166060_20030303_20170126_01_T1_B7
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B7>...
Region for the current mapset updated
> LE07_L1TP_166060_20030303_20170126_01_T1_B61
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B61>...
Region for the current mapset updated
> LE07_L1TP_166060_20161016_20161111_01_T1_B5
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B5>...
Region for the current mapset updated
> LE07_L1TP_166060_20030303_20170126_01_T1_BQA
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_BQA>...
Region for the current mapset updated
> LE07_L1TP_166060_20030303_20170126_01_T1_B5
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B5>...
Region for the current mapset updated
> LE07_L1TP_166060_20161016_20161111_01_T1_B61
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B61>...
Region for the current mapset updated
> LE07_L1TP_166060_20161016_20161111_01_T1_B3
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B3>...
Region for the current mapset updated
> LE07_L1TP_166060_20030303_20170126_01_T1_B1
Proceeding with import of 1 raster bands...
Importing raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B1>...
Region for the current mapset updated
Creating color table for output raster map...
Writing raster map <LE07_L1TP_166060_2003_composite>...
r.composite complete. Raster map <LE07_L1TP_166060_2003_composite> created.
Creating color table for output raster map...
Writing raster map <LE07_L1TP_166060_2016_composite>...
r.composite complete. Raster map <LE07_L1TP_166060_2016_composite> created.
Adding raster map <LE07_L1TP_166060_2003_composite@hempire> to group
Adding raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B2@hempire> to
group
Adding raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B4@hempire> to
group
Adding raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B3@hempire> to
group
Adding raster map <LE07_L1TP_166060_2003_composite@hempire> to subgroup
Adding raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B2@hempire> to
subgroup
Adding raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B4@hempire> to
subgroup
Adding raster map <LE07_L1TP_166060_20030303_20170126_01_T1_B3@hempire> to
subgroup
Adding raster map <LE07_L1TP_166060_2016_composite@hempire> to group
Adding raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B2@hempire> to
group
Adding raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B4@hempire> to
group
Adding raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B3@hempire> to
group
Adding raster map <LE07_L1TP_166060_2016_composite@hempire> to subgroup
Adding raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B2@hempire> to
subgroup
Adding raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B4@hempire> to
subgroup
Adding raster map <LE07_L1TP_166060_20161016_20161111_01_T1_B3@hempire> to
subgroup
Reading raster maps...
i.cluster complete. File <LE07_L1TP_166060_2003_signature> created.
Reading raster maps...
i.cluster complete. File <LE07_L1TP_166060_2016_signature> created.
WARNING: Signature 1 is not valid (ill-conditioned) - ignored
----------------------------------------------
raster files available in mapset <hempire>:
LE07_L1TP_166060_20030303_20170126_01_T1_B1
LE07_L1TP_166060_20030303_20170126_01_T1_B2
LE07_L1TP_166060_20030303_20170126_01_T1_B3
LE07_L1TP_166060_20030303_20170126_01_T1_B4
LE07_L1TP_166060_20030303_20170126_01_T1_B5
LE07_L1TP_166060_20030303_20170126_01_T1_B61
LE07_L1TP_166060_20030303_20170126_01_T1_B62
LE07_L1TP_166060_20030303_20170126_01_T1_B7
LE07_L1TP_166060_20030303_20170126_01_T1_B8
LE07_L1TP_166060_20030303_20170126_01_T1_BQA
LE07_L1TP_166060_2003_cluster_classes Maximum Likelihood Classification
LE07_L1TP_166060_2003_cluster_reject Rejection Probability for LE07_L1TP_166060_2003_cluster_clas
LE07_L1TP_166060_2003_composite
LE07_L1TP_166060_20161016_20161111_01_T1_B1
LE07_L1TP_166060_20161016_20161111_01_T1_B2
LE07_L1TP_166060_20161016_20161111_01_T1_B3
LE07_L1TP_166060_20161016_20161111_01_T1_B4
LE07_L1TP_166060_20161016_20161111_01_T1_B5
LE07_L1TP_166060_20161016_20161111_01_T1_B61
LE07_L1TP_166060_20161016_20161111_01_T1_B62
LE07_L1TP_166060_20161016_20161111_01_T1_B7
LE07_L1TP_166060_20161016_20161111_01_T1_B8
LE07_L1TP_166060_20161016_20161111_01_T1_BQA
LE07_L1TP_166060_2016_cluster_classes Maximum Likelihood Classification
LE07_L1TP_166060_2016_cluster_reject Rejection Probability for LE07_L1TP_166060_2016_cluster_clas
LE07_L1TP_166060_2016_composite
----------------------------------------------
no raster files available in mapset <PERMANENT>
----------------------------------------------
----------------------------------------------
no vector files available in mapset <hempire>
----------------------------------------------
----------------------------------------------
no vector files available in mapset <PERMANENT>
----------------------------------------------
----------------------------------------------
no 3D raster files available in current mapset
----------------------------------------------
----------------------------------------------
no label files available in current mapset
----------------------------------------------
----------------------------------------------
no region definition files available in current mapset
----------------------------------------------
----------------------------------------------
imagery group files available in mapset <hempire>:
LE07_L1TP_166060_2003_grp LE07_L1TP_166060_2016_grp
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment