<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FSamuel-rosa</id>
	<title>GRASS-Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://grasswiki.osgeo.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=%E2%9A%A0%EF%B8%8FSamuel-rosa"/>
	<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/wiki/Special:Contributions/%E2%9A%A0%EF%B8%8FSamuel-rosa"/>
	<updated>2026-04-19T09:58:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=19973</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=19973"/>
		<updated>2013-11-28T18:34:48Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: /* Introdução */ Pequena correção ortográfica&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformar os valores de nível de cinza (DN) de um imagem Landsat ETM+ para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar}}). {{cmd|i.landsat.toar}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Executar a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize {{cmd|i.landsat.toar}}).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Onde:&lt;br /&gt;
&lt;br /&gt;
* Lλ - radiância espectral na abertura do sensor em watts/(metro quadrado * ster * μm), a radiação aparente tal como é vista pelo sensor do satélite;&lt;br /&gt;
* QCAL - o valor quantizado calibrado de um pixel em nível de cinza;&lt;br /&gt;
* LMINλ - a radiância espectral que é dimensionada para QCALMIN em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* LMAXλ - a radiância espectral que é dimensionada para QCALMAX em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* QCALMIN - o valor mínimo quantizado calibrado de um pixel (correspondente à LMINλ) em nível de cinza;&lt;br /&gt;
* QCALMAX - o valor máximo quantizado calibrado de um pixel (correspondente à LMAXλ) em nível de cinza igual a 255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX e LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Também é possível usar o comando abaixo (''Power users'') para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimativa do horário de passagem a partir da posição do solo ==&lt;br /&gt;
&lt;br /&gt;
O horário de passagem do satélite pode ser estimado com bastante precisão a partir da posição do sol apresentada nos metadados utilizando {{cmd|r.sunmask}}. Os [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadados] desse exemplo são: SUN_AZIMUTH = 120,8810347; SUN_ELEVATION = 64,7730999.&lt;br /&gt;
&lt;br /&gt;
Mude as horas (''hour'') e minutos (''min'') iterativamente para obter bons resultados; obviamente, o fuso horário (''timezone'') precisa estar correto:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Relatório: azimute solar = 121,342461; ângulo solar acima do horizonte (corrigido para a refração) = 65,396652.&lt;br /&gt;
&lt;br /&gt;
A hora de passagem local resultante 10:42:07 corresponde a 15:42 em GMT, que corresponde a 15,67 em horas GMT decimais (minuto decimal: 42 * 100 / 60). Esse valor é necessário para o arquivo de controle.&lt;br /&gt;
&lt;br /&gt;
== Correção atmosférica ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== Referências ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
Como adicionar novos sensores ao i.atcorr:&lt;br /&gt;
* veja http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentação]]&lt;br /&gt;
[[Category: Tutoriais]]&lt;br /&gt;
[[Category: Processamento de imagens]]&lt;br /&gt;
[[Category: Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=19972</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=19972"/>
		<updated>2013-11-28T18:33:05Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: Pequena correção ortográfica.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformar os valores de nível de cinza (DN) de um imagem Landsat ETM+ para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar}}). {{cmd|i.landsat.toar}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize {{cmd|i.landsat.toar}}).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Onde:&lt;br /&gt;
&lt;br /&gt;
* Lλ - radiância espectral na abertura do sensor em watts/(metro quadrado * ster * μm), a radiação aparente tal como é vista pelo sensor do satélite;&lt;br /&gt;
* QCAL - o valor quantizado calibrado de um pixel em nível de cinza;&lt;br /&gt;
* LMINλ - a radiância espectral que é dimensionada para QCALMIN em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* LMAXλ - a radiância espectral que é dimensionada para QCALMAX em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* QCALMIN - o valor mínimo quantizado calibrado de um pixel (correspondente à LMINλ) em nível de cinza;&lt;br /&gt;
* QCALMAX - o valor máximo quantizado calibrado de um pixel (correspondente à LMAXλ) em nível de cinza igual a 255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX e LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Também é possível usar o comando abaixo (''Power users'') para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimativa do horário de passagem a partir da posição do solo ==&lt;br /&gt;
&lt;br /&gt;
O horário de passagem do satélite pode ser estimado com bastante precisão a partir da posição do sol apresentada nos metadados utilizando {{cmd|r.sunmask}}. Os [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadados] desse exemplo são: SUN_AZIMUTH = 120,8810347; SUN_ELEVATION = 64,7730999.&lt;br /&gt;
&lt;br /&gt;
Mude as horas (''hour'') e minutos (''min'') iterativamente para obter bons resultados; obviamente, o fuso horário (''timezone'') precisa estar correto:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Relatório: azimute solar = 121,342461; ângulo solar acima do horizonte (corrigido para a refração) = 65,396652.&lt;br /&gt;
&lt;br /&gt;
A hora de passagem local resultante 10:42:07 corresponde a 15:42 em GMT, que corresponde a 15,67 em horas GMT decimais (minuto decimal: 42 * 100 / 60). Esse valor é necessário para o arquivo de controle.&lt;br /&gt;
&lt;br /&gt;
== Correção atmosférica ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== Referências ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
Como adicionar novos sensores ao i.atcorr:&lt;br /&gt;
* veja http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentação]]&lt;br /&gt;
[[Category: Tutoriais]]&lt;br /&gt;
[[Category: Processamento de imagens]]&lt;br /&gt;
[[Category: Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16743</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16743"/>
		<updated>2012-10-21T02:56:40Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: /* Atmospheric correction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Onde:&lt;br /&gt;
&lt;br /&gt;
* Lλ - radiância espectral na abertura do sensor em watts/(metro quadrado * ster * μm), a radiação aparente tal como é vista pelo sensor do satélite;&lt;br /&gt;
* QCAL - o valor quantizado calibrado de um pixel em nível de cinza;&lt;br /&gt;
* LMINλ - a radiância espectral que é dimensionada para QCALMIN em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* LMAXλ - a radiância espectral que é dimensionada para QCALMAX em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* QCALMIN - o valor mínimo quantizado calibrado de um pixel (correspondente à LMINλ) em nível de cinza;&lt;br /&gt;
* QCALMAX - o valor máximo quantizado calibrado de um pixel (correspondente à LMAXλ) em nível de cinza igual a 255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX e LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Também é possível usar o comando abaixo (''Power users'') para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimativa do horário de passagem a partir da posição do solo ==&lt;br /&gt;
&lt;br /&gt;
O horário de passagem do satélite pode ser estimado com bastante precisão a partir da posição do sol apresentada nos metadados utilizando {{cmd|r.sunmask}}. Os [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadados] desse exemplo são: SUN_AZIMUTH = 120,8810347; SUN_ELEVATION = 64,7730999.&lt;br /&gt;
&lt;br /&gt;
Mude as horas (''hour'') e minutos (''min'') iterativamente para obter bons resultados; obviamente, o fuso horário (''timezone'') precisa estar correto:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Relatório: azimute solar = 121,342461; ângulo solar acima do horizonte (corrigido para a refração) = 65,396652.&lt;br /&gt;
&lt;br /&gt;
A hora de passagem local resultante 10:42:07 corresponde a 15:42 em GMT, que corresponde a 15,67 em horas GMT decimais (minuto decimal: 42 * 100 / 60). Esse valor é necessário para o arquivo de controle.&lt;br /&gt;
&lt;br /&gt;
== Correção atmosférica ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== Referências ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
Como adicionar novos sensores ao i.atcorr:&lt;br /&gt;
* veja http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentação]]&lt;br /&gt;
[[Category: Tutoriais]]&lt;br /&gt;
[[Category: Processamento de imagens]]&lt;br /&gt;
[[Category: Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Category:Tutoriais&amp;diff=16742</id>
		<title>Category:Tutoriais</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Category:Tutoriais&amp;diff=16742"/>
		<updated>2012-10-21T02:56:03Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: Created page with &amp;quot;Lista de tutoriais em língua portuguesa no GRASS-Wiki.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lista de tutoriais em língua portuguesa no GRASS-Wiki.&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16741</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16741"/>
		<updated>2012-10-21T02:55:23Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Onde:&lt;br /&gt;
&lt;br /&gt;
* Lλ - radiância espectral na abertura do sensor em watts/(metro quadrado * ster * μm), a radiação aparente tal como é vista pelo sensor do satélite;&lt;br /&gt;
* QCAL - o valor quantizado calibrado de um pixel em nível de cinza;&lt;br /&gt;
* LMINλ - a radiância espectral que é dimensionada para QCALMIN em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* LMAXλ - a radiância espectral que é dimensionada para QCALMAX em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* QCALMIN - o valor mínimo quantizado calibrado de um pixel (correspondente à LMINλ) em nível de cinza;&lt;br /&gt;
* QCALMAX - o valor máximo quantizado calibrado de um pixel (correspondente à LMAXλ) em nível de cinza igual a 255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX e LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Também é possível usar o comando abaixo (''Power users'') para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimativa do horário de passagem a partir da posição do solo ==&lt;br /&gt;
&lt;br /&gt;
O horário de passagem do satélite pode ser estimado com bastante precisão a partir da posição do sol apresentada nos metadados utilizando {{cmd|r.sunmask}}. Os [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadados] desse exemplo são: SUN_AZIMUTH = 120,8810347; SUN_ELEVATION = 64,7730999.&lt;br /&gt;
&lt;br /&gt;
Mude as horas (''hour'') e minutos (''min'') iterativamente para obter bons resultados; obviamente, o fuso horário (''timezone'') precisa estar correto:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Relatório: azimute solar = 121,342461; ângulo solar acima do horizonte (corrigido para a refração) = 65,396652.&lt;br /&gt;
&lt;br /&gt;
A hora de passagem local resultante 10:42:07 corresponde a 15:42 em GMT, que corresponde a 15,67 em horas GMT decimais (minuto decimal: 42 * 100 / 60). Esse valor é necessário para o arquivo de controle.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== Referências ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
Como adicionar novos sensores ao i.atcorr:&lt;br /&gt;
* veja http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentação]]&lt;br /&gt;
[[Category: Tutoriais]]&lt;br /&gt;
[[Category: Processamento de imagens]]&lt;br /&gt;
[[Category: Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Category:Documenta%C3%A7%C3%A3o&amp;diff=16740</id>
		<title>Category:Documentação</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Category:Documenta%C3%A7%C3%A3o&amp;diff=16740"/>
		<updated>2012-10-21T02:54:55Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lista de documentos em língua portuguesa no GRASS-Wiki.&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Category:Documenta%C3%A7%C3%A3o&amp;diff=16739</id>
		<title>Category:Documentação</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Category:Documenta%C3%A7%C3%A3o&amp;diff=16739"/>
		<updated>2012-10-21T02:54:13Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: Created page with &amp;quot;Documentos.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Documentos.&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Category:Processamento_de_imagens&amp;diff=16738</id>
		<title>Category:Processamento de imagens</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Category:Processamento_de_imagens&amp;diff=16738"/>
		<updated>2012-10-21T02:53:20Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: Created page with &amp;quot;Lista de documentos relacionados ao processamento de imagem no GRASS.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Lista de documentos relacionados ao processamento de imagem no GRASS.&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16737</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16737"/>
		<updated>2012-10-21T02:50:56Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Onde:&lt;br /&gt;
&lt;br /&gt;
* Lλ - radiância espectral na abertura do sensor em watts/(metro quadrado * ster * μm), a radiação aparente tal como é vista pelo sensor do satélite;&lt;br /&gt;
* QCAL - o valor quantizado calibrado de um pixel em nível de cinza;&lt;br /&gt;
* LMINλ - a radiância espectral que é dimensionada para QCALMIN em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* LMAXλ - a radiância espectral que é dimensionada para QCALMAX em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* QCALMIN - o valor mínimo quantizado calibrado de um pixel (correspondente à LMINλ) em nível de cinza;&lt;br /&gt;
* QCALMAX - o valor máximo quantizado calibrado de um pixel (correspondente à LMAXλ) em nível de cinza igual a 255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX e LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Também é possível usar o comando abaixo (''Power users'') para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimativa do horário de passagem a partir da posição do solo ==&lt;br /&gt;
&lt;br /&gt;
O horário de passagem do satélite pode ser estimado com bastante precisão a partir da posição do sol apresentada nos metadados utilizando {{cmd|r.sunmask}}. Os [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadados] desse exemplo são: SUN_AZIMUTH = 120,8810347; SUN_ELEVATION = 64,7730999.&lt;br /&gt;
&lt;br /&gt;
Mude as horas (''hour'') e minutos (''min'') iterativamente para obter bons resultados; obviamente, o fuso horário (''timezone'') precisa estar correto:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Relatório: azimute solar = 121,342461; ângulo solar acima do horizonte (corrigido para a refração) = 65,396652.&lt;br /&gt;
&lt;br /&gt;
A hora de passagem local resultante 10:42:07 corresponde a 15:42 em GMT, que corresponde a 15,67 em horas GMT decimais (minuto decimal: 42 * 100 / 60). Esse valor é necessário para o arquivo de controle.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== Referências ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
Como adicionar novos sensores ao i.atcorr:&lt;br /&gt;
* veja http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentação]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Processamento de imagens]]&lt;br /&gt;
[[Category: Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16736</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16736"/>
		<updated>2012-10-21T02:49:01Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: /* Cálculo dos valores de radiância */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Onde:&lt;br /&gt;
&lt;br /&gt;
* Lλ - radiância espectral na abertura do sensor em watts/(metro quadrado * ster * μm), a radiação aparente tal como é vista pelo sensor do satélite;&lt;br /&gt;
* QCAL - o valor quantizado calibrado de um pixel em nível de cinza;&lt;br /&gt;
* LMINλ - a radiância espectral que é dimensionada para QCALMIN em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* LMAXλ - a radiância espectral que é dimensionada para QCALMAX em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* QCALMIN - o valor mínimo quantizado calibrado de um pixel (correspondente à LMINλ) em nível de cinza;&lt;br /&gt;
* QCALMAX - o valor máximo quantizado calibrado de um pixel (correspondente à LMAXλ) em nível de cinza igual a 255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX e LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Também é possível usar o comando abaixo (''Power users'') para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimativa do horário de passagem a partir da posição do solo ==&lt;br /&gt;
&lt;br /&gt;
O horário de passagem do satélite pode ser estimado com bastante precisão a partir da posição do sol apresentada nos metadados utilizando {{cmd|r.sunmask}}. Os [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadados] desse exemplo são: SUN_AZIMUTH = 120,8810347; SUN_ELEVATION = 64,7730999.&lt;br /&gt;
&lt;br /&gt;
Mude as horas (''hour'') e minutos (''min'') iterativamente para obter bons resultados; obviamente, o fuso horário (''timezone'') precisa estar correto:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Relatório: azimute solar = 121,342461; ângulo solar acima do horizonte (corrigido para a refração) = 65,396652.&lt;br /&gt;
&lt;br /&gt;
A hora de passagem local resultante 10:42:07 corresponde a 15:42 em GMT, que corresponde a 15,67 em horas GMT decimais (minuto decimal: 42 * 100 / 60). Esse valor é necessário para o arquivo de controle.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== Referências ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
Como adicionar novos sensores ao i.atcorr:&lt;br /&gt;
* veja http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentation]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Image processing]]&lt;br /&gt;
[[Category:Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16735</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16735"/>
		<updated>2012-10-21T02:48:30Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: /* Estimating the overpass time from the sun position */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Onde:&lt;br /&gt;
&lt;br /&gt;
* Lλ - radiância espectral na abertura do sensor em watts/(metro quadrado * ster * μm), a radiação aparente tal como é vista pelo sensor do satélite;&lt;br /&gt;
* QCAL - o valor quantizado calibrado de um pixel em nível de cinza;&lt;br /&gt;
* LMINλ - a radiância espectral que é dimensionada para QCALMIN em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* LMAXλ - a radiância espectral que é dimensionada para QCALMAX em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* QCALMIN - o valor mínimo quantizado calibrado de um pixel (correspondente à LMINλ) em nível de cinza;&lt;br /&gt;
* QCALMAX - o valor máximo quantizado calibrado de um pixel (correspondente à LMAXλ) em nível de cinza igual a 255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX e LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Também é possível usar o comando abaixo (''Power users'') para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
  {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimativa do horário de passagem a partir da posição do solo ==&lt;br /&gt;
&lt;br /&gt;
O horário de passagem do satélite pode ser estimado com bastante precisão a partir da posição do sol apresentada nos metadados utilizando {{cmd|r.sunmask}}. Os [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadados] desse exemplo são: SUN_AZIMUTH = 120,8810347; SUN_ELEVATION = 64,7730999.&lt;br /&gt;
&lt;br /&gt;
Mude as horas (''hour'') e minutos (''min'') iterativamente para obter bons resultados; obviamente, o fuso horário (''timezone'') precisa estar correto:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Relatório: azimute solar = 121,342461; ângulo solar acima do horizonte (corrigido para a refração) = 65,396652.&lt;br /&gt;
&lt;br /&gt;
A hora de passagem local resultante 10:42:07 corresponde a 15:42 em GMT, que corresponde a 15,67 em horas GMT decimais (minuto decimal: 42 * 100 / 60). Esse valor é necessário para o arquivo de controle.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== Referências ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
Como adicionar novos sensores ao i.atcorr:&lt;br /&gt;
* veja http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentation]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Image processing]]&lt;br /&gt;
[[Category:Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16734</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16734"/>
		<updated>2012-10-21T02:26:05Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Onde:&lt;br /&gt;
&lt;br /&gt;
* Lλ - radiância espectral na abertura do sensor em watts/(metro quadrado * ster * μm), a radiação aparente tal como é vista pelo sensor do satélite;&lt;br /&gt;
* QCAL - o valor quantizado calibrado de um pixel em nível de cinza;&lt;br /&gt;
* LMINλ - a radiância espectral que é dimensionada para QCALMIN em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* LMAXλ - a radiância espectral que é dimensionada para QCALMAX em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* QCALMIN - o valor mínimo quantizado calibrado de um pixel (correspondente à LMINλ) em nível de cinza;&lt;br /&gt;
* QCALMAX - o valor máximo quantizado calibrado de um pixel (correspondente à LMAXλ) em nível de cinza igual a 255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX e LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Também é possível usar o comando abaixo (''Power users'') para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
  {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimating the overpass time from the sun position ==&lt;br /&gt;
&lt;br /&gt;
The satellite overpass time can be estimated rather precisely from the sun position reported in metadata using {{cmd|r.sunmask}}:&lt;br /&gt;
The [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadata] of this example report: SUN_AZIMUTH = 120.8810347, SUN_ELEVATION = 64.7730999&lt;br /&gt;
&lt;br /&gt;
 # iteratively change hour and minutes to obtain a good result, timezone needs to be correct of course:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Reports: sun azimuth: 121.342461, sun angle above horz.(refraction corrected): 65.396652&lt;br /&gt;
&lt;br /&gt;
The resulting overpass local time 10:42:07 corresponds to 15:42 in GMT which corresponds to 15.67 in decimal GMT hours (decimal minutes: 42 * 100 / 60). This value is needed for the control file.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== Referências ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
Como adicionar novos sensores ao i.atcorr:&lt;br /&gt;
* veja http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentation]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Image processing]]&lt;br /&gt;
[[Category:Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16733</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16733"/>
		<updated>2012-10-21T02:24:20Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: /* Cálculo dos valores de radiância */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Onde:&lt;br /&gt;
&lt;br /&gt;
* Lλ - radiância espectral na abertura do sensor em watts/(metro quadrado * ster * μm), a radiação aparente tal como é vista pelo sensor do satélite;&lt;br /&gt;
* QCAL - o valor quantizado calibrado de um pixel em nível de cinza;&lt;br /&gt;
* LMINλ - a radiância espectral que é dimensionada para QCALMIN em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* LMAXλ - a radiância espectral que é dimensionada para QCALMAX em watts/(metro quadrado * ster * μm);&lt;br /&gt;
* QCALMIN - o valor mínimo quantizado calibrado de um pixel (correspondente à LMINλ) em nível de cinza;&lt;br /&gt;
* QCALMAX - o valor máximo quantizado calibrado de um pixel (correspondente à LMAXλ) em nível de cinza igual a 255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX e LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Também é possível usar o comando abaixo (''Power users'') para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
  {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimating the overpass time from the sun position ==&lt;br /&gt;
&lt;br /&gt;
The satellite overpass time can be estimated rather precisely from the sun position reported in metadata using {{cmd|r.sunmask}}:&lt;br /&gt;
The [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadata] of this example report: SUN_AZIMUTH = 120.8810347, SUN_ELEVATION = 64.7730999&lt;br /&gt;
&lt;br /&gt;
 # iteratively change hour and minutes to obtain a good result, timezone needs to be correct of course:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Reports: sun azimuth: 121.342461, sun angle above horz.(refraction corrected): 65.396652&lt;br /&gt;
&lt;br /&gt;
The resulting overpass local time 10:42:07 corresponds to 15:42 in GMT which corresponds to 15.67 in decimal GMT hours (decimal minutes: 42 * 100 / 60). This value is needed for the control file.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
How to add new sensors to i.atcorr:&lt;br /&gt;
* see http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentation]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Image processing]]&lt;br /&gt;
[[Category:Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16732</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16732"/>
		<updated>2012-10-21T02:13:49Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: /* Cálculo dos valores de radiância */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
* Lλ - spectral Radiance at the sensor's aperture in watts/(meter squared * ster * μm), the apparent radiance as seen by the satellite sensor;&lt;br /&gt;
* QCAL - the quantized calibrated pixel value in DN;&lt;br /&gt;
* LMINλ - the spectral radiance that is scaled to QCALMIN in watts/(meter squared * ster * μm);&lt;br /&gt;
* LMAXλ - the spectral radiance that is scaled to QCALMAX in watts/(meter squared * ster * μm);&lt;br /&gt;
* QCALMIN - the minimum quantized calibrated pixel value (corresponding to LMINλ) in DN;&lt;br /&gt;
* QCALMAX - the maximum quantized calibrated pixel value (corresponding to LMAXλ) in DN=255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Na opção ‘comments’, os valores máximo e mínimo de radiância (LMAX and LMIN) para cada banda são fornecidos. &lt;br /&gt;
&lt;br /&gt;
Power users podem usar este comando para uma saída mais legível (exemplo para o canal 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversão para radiância (o procedimento descrito abaixo é para a banda 1; para as demanis bandas, os números em itálico precisam ser substituídos pelos valores corretos):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Para processamento mais rápido, utilize um modelo digital de elevação com o valores inteiros:&lt;br /&gt;
&lt;br /&gt;
  {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Encontre o valor médio de elevação para iniciar o processamento (necessário no arquivo 'icnd' abaixo)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimating the overpass time from the sun position ==&lt;br /&gt;
&lt;br /&gt;
The satellite overpass time can be estimated rather precisely from the sun position reported in metadata using {{cmd|r.sunmask}}:&lt;br /&gt;
The [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadata] of this example report: SUN_AZIMUTH = 120.8810347, SUN_ELEVATION = 64.7730999&lt;br /&gt;
&lt;br /&gt;
 # iteratively change hour and minutes to obtain a good result, timezone needs to be correct of course:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Reports: sun azimuth: 121.342461, sun angle above horz.(refraction corrected): 65.396652&lt;br /&gt;
&lt;br /&gt;
The resulting overpass local time 10:42:07 corresponds to 15:42 in GMT which corresponds to 15.67 in decimal GMT hours (decimal minutes: 42 * 100 / 60). This value is needed for the control file.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
How to add new sensors to i.atcorr:&lt;br /&gt;
* see http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentation]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Image processing]]&lt;br /&gt;
[[Category:Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Atmospheric_correction/pt-br&amp;diff=16731</id>
		<title>Atmospheric correction/pt-br</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Atmospheric_correction/pt-br&amp;diff=16731"/>
		<updated>2012-10-21T02:01:11Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: moved Atmospheric correction/pt-br to Correção atmosférica: Title in Portuguese.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Correção atmosférica]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16730</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16730"/>
		<updated>2012-10-21T02:01:11Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: moved Atmospheric correction/pt-br to Correção atmosférica: Title in Portuguese.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
* Lλ - spectral Radiance at the sensor's aperture in watts/(meter squared * ster * μm), the apparent radiance as seen by the satellite sensor;&lt;br /&gt;
* QCAL - the quantized calibrated pixel value in DN;&lt;br /&gt;
* LMINλ - the spectral radiance that is scaled to QCALMIN in watts/(meter squared * ster * μm);&lt;br /&gt;
* LMAXλ - the spectral radiance that is scaled to QCALMAX in watts/(meter squared * ster * μm);&lt;br /&gt;
* QCALMIN - the minimum quantized calibrated pixel value (corresponding to LMINλ) in DN;&lt;br /&gt;
* QCALMAX - the maximum quantized calibrated pixel value (corresponding to LMAXλ) in DN=255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Under ‘comments’, the maximal and minimal radiance (LMAX and LMIN) for each band are given. &lt;br /&gt;
&lt;br /&gt;
Power users may use this for nicely readable output (example for channel 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversion to radiance (this calculation is done for band 1, for the other bands, the numbers in italics need to be replaced with their correct values):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For faster computations, use an integer DEM:&lt;br /&gt;
&lt;br /&gt;
  {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Find mean elevation to initialize computations (needed in 'icnd' file below)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimating the overpass time from the sun position ==&lt;br /&gt;
&lt;br /&gt;
The satellite overpass time can be estimated rather precisely from the sun position reported in metadata using {{cmd|r.sunmask}}:&lt;br /&gt;
The [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadata] of this example report: SUN_AZIMUTH = 120.8810347, SUN_ELEVATION = 64.7730999&lt;br /&gt;
&lt;br /&gt;
 # iteratively change hour and minutes to obtain a good result, timezone needs to be correct of course:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Reports: sun azimuth: 121.342461, sun angle above horz.(refraction corrected): 65.396652&lt;br /&gt;
&lt;br /&gt;
The resulting overpass local time 10:42:07 corresponds to 15:42 in GMT which corresponds to 15.67 in decimal GMT hours (decimal minutes: 42 * 100 / 60). This value is needed for the control file.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
How to add new sensors to i.atcorr:&lt;br /&gt;
* see http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentation]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Image processing]]&lt;br /&gt;
[[Category:Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Category:Languages/pt-br&amp;diff=16729</id>
		<title>Category:Languages/pt-br</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Category:Languages/pt-br&amp;diff=16729"/>
		<updated>2012-10-21T02:00:24Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Essa categoria contém as páginas wiki do GRASS-Wiki em português do Brasil. Para saber como ajudar a traduzir as páginas wiki do GRASS-Wiki consulte http://grass.osgeo.org/wiki/GRASS-Wiki:Language_policy.&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Category:Languages/pt-br&amp;diff=16728</id>
		<title>Category:Languages/pt-br</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Category:Languages/pt-br&amp;diff=16728"/>
		<updated>2012-10-21T01:59:29Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: Created page with &amp;quot;Essa categoria contém as páginas wiki do GRASS-Wiki em português do Brasil. Para saber como ajudar a traduzir as páginas wiki do GRASS-Wiki consulte [http://grass.osgeo.or...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Essa categoria contém as páginas wiki do GRASS-Wiki em português do Brasil. Para saber como ajudar a traduzir as páginas wiki do GRASS-Wiki consulte [http://grass.osgeo.org/wiki/GRASS-Wiki:Language_policy].&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16727</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16727"/>
		<updated>2012-10-20T22:51:09Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para valor de radiância no topo da atmosfera (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte o valor da radiância no topo da atmosfera para o valor de radiância na superfície): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Nota:'' Lembre de verificar se as áreas cobertas com água possuem valor de nível de reflectância &amp;gt; 0, uma vez que a reflectância é sempre positiva. Se negativa, você tem um pepino a resolver! Valores negativos de reflectância indicam que as entradas da equação de transformação não pertencem à imagem processada.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 ou superior&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados (''GIS database''). Quando abrir o GRASS GIS, selecione o banco de dados, abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza (''DN - digital number''). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
* Lλ - spectral Radiance at the sensor's aperture in watts/(meter squared * ster * μm), the apparent radiance as seen by the satellite sensor;&lt;br /&gt;
* QCAL - the quantized calibrated pixel value in DN;&lt;br /&gt;
* LMINλ - the spectral radiance that is scaled to QCALMIN in watts/(meter squared * ster * μm);&lt;br /&gt;
* LMAXλ - the spectral radiance that is scaled to QCALMAX in watts/(meter squared * ster * μm);&lt;br /&gt;
* QCALMIN - the minimum quantized calibrated pixel value (corresponding to LMINλ) in DN;&lt;br /&gt;
* QCALMAX - the maximum quantized calibrated pixel value (corresponding to LMAXλ) in DN=255.&lt;br /&gt;
&lt;br /&gt;
LMINλ e LMAXλ são os valores de radiância correspondentes aos valores mínimo e máximo de nível de cinza, e são apresentados no arquivo de metadados para cada imagem, ou na tabela 1. As informações sobre elevado ganho (''high gain'') ou baixo ganho (''low gain'') também são apresentadas no arquivo de metadados para cada imagem Landsat. O menor valor de nível de cinza (QCALMIN) é igual a 1 para imagens Landsat ETM+ (1), e o valor máximo de nível de cinza (QCALMAX) é igual a 255. QCAL é o valor de nível de cinza para cada pixel individual na imagem Landsat.&lt;br /&gt;
&lt;br /&gt;
Acesso aos metadados:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Under ‘comments’, the maximal and minimal radiance (LMAX and LMIN) for each band are given. &lt;br /&gt;
&lt;br /&gt;
Power users may use this for nicely readable output (example for channel 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversion to radiance (this calculation is done for band 1, for the other bands, the numbers in italics need to be replaced with their correct values):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For faster computations, use an integer DEM:&lt;br /&gt;
&lt;br /&gt;
  {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Find mean elevation to initialize computations (needed in 'icnd' file below)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimating the overpass time from the sun position ==&lt;br /&gt;
&lt;br /&gt;
The satellite overpass time can be estimated rather precisely from the sun position reported in metadata using {{cmd|r.sunmask}}:&lt;br /&gt;
The [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadata] of this example report: SUN_AZIMUTH = 120.8810347, SUN_ELEVATION = 64.7730999&lt;br /&gt;
&lt;br /&gt;
 # iteratively change hour and minutes to obtain a good result, timezone needs to be correct of course:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Reports: sun azimuth: 121.342461, sun angle above horz.(refraction corrected): 65.396652&lt;br /&gt;
&lt;br /&gt;
The resulting overpass local time 10:42:07 corresponds to 15:42 in GMT which corresponds to 15.67 in decimal GMT hours (decimal minutes: 42 * 100 / 60). This value is needed for the control file.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
How to add new sensors to i.atcorr:&lt;br /&gt;
* see http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentation]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Image processing]]&lt;br /&gt;
[[Category:Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16726</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16726"/>
		<updated>2012-10-20T22:09:57Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
Veja também a página wiki do [[LANDSAT]].&lt;br /&gt;
&lt;br /&gt;
'''Objetivo desse tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transformção de um imagem Landsat ETM+ dos valores de nível de cinza (DN) para valores de radiância&lt;br /&gt;
* Realizar a correção atmosférica de uma imagem Landsat utilizando o módulo {{cmd|i.atcorr}} no GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introdução ==&lt;br /&gt;
&lt;br /&gt;
Os principais passos para o processamento de imagens de satélite são:&lt;br /&gt;
&lt;br /&gt;
# Converter o valor de nível de cinza (DN - digital number = valor do pixel) para ''Radiância no topo da atmosfera (TOA)'' (veja a fórmula abaixo ou use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} suporta todas as versões do Landsat, desde MSS, até TM e ETM+.&lt;br /&gt;
# Execute a correção atmosférica (a qual converte a Radiância no TOA -&amp;gt; ''Reflectância na superfície''): realizado através de {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Note:'' Remember, to check if water areas are &amp;gt; 0, since reflectance is always positive. If negative, you have a &amp;quot;cornichon&amp;quot; (pickle in English ;-0). Means the transform equation inputs are not belong to image processed.&lt;br /&gt;
&lt;br /&gt;
== Requerimentos ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 or higher&lt;br /&gt;
* Amostra de dados da Carolina do Norte - EUA (localização): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
Depois de baixar a amostra de dados da Carolina do Norte, descompacte a mesma e leve-a para dentro do seu banco de dados ('GIS database'). Quando abrir o GRASS GIS, selecione o banco de dados ('GIS database'), abra o conjunto de dados ‘nc_spm_08’ como LOCATION, e ‘PERMANENT’ como MAPSET.&lt;br /&gt;
&lt;br /&gt;
== Cálculo dos valores de radiância ==&lt;br /&gt;
&lt;br /&gt;
A amostra de dados da Carolina do Norte - EUA possui, entre outras coisas, uma imagem Landsat ETM+ do dia 24 de maio de 2002. Cada pixel dessa imagem contém um valor de nível de cinza ('DN - digital number'). Para que seja possível utilizar a imagem de satélite para a realização de cálculos, ou comparar valores entre diferentes sensores, esses valores de nível de cinza precisam ser convertidos para valores de radiância ou reflectância. As fórmulas usadas para fazer essa conversão estão descritas aqui para imagens Landsat (ou utilize [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
A conversão de valor de nível de cinza para radiância no topo da atmosfera é realizada da seguinte maneira:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
* Lλ - spectral Radiance at the sensor's aperture in watts/(meter squared * ster * μm), the apparent radiance as seen by the satellite sensor;&lt;br /&gt;
* QCAL - the quantized calibrated pixel value in DN;&lt;br /&gt;
* LMINλ - the spectral radiance that is scaled to QCALMIN in watts/(meter squared * ster * μm);&lt;br /&gt;
* LMAXλ - the spectral radiance that is scaled to QCALMAX in watts/(meter squared * ster * μm);&lt;br /&gt;
* QCALMIN - the minimum quantized calibrated pixel value (corresponding to LMINλ) in DN;&lt;br /&gt;
* QCALMAX - the maximum quantized calibrated pixel value (corresponding to LMAXλ) in DN=255.&lt;br /&gt;
&lt;br /&gt;
LMINλ and LMAXλ are the radiances related to the minimal and maximal DN value, and are reported in the metadata file for each image, or in the table 1. High gain or low gain is also reported in the metadata file of each Landsat image. The minimal DN value (QCALMIN) is 1 for Landsat ETM+ images (1), and the maximal DN value (QCALMAX) is 255. QCAL is the DN value for every separate pixel in the Landsat image. &lt;br /&gt;
&lt;br /&gt;
Accessing the metadata:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Under ‘comments’, the maximal and minimal radiance (LMAX and LMIN) for each band are given. &lt;br /&gt;
&lt;br /&gt;
Power users may use this for nicely readable output (example for channel 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversion to radiance (this calculation is done for band 1, for the other bands, the numbers in italics need to be replaced with their correct values):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For faster computations, use an integer DEM:&lt;br /&gt;
&lt;br /&gt;
  {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Find mean elevation to initialize computations (needed in 'icnd' file below)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimating the overpass time from the sun position ==&lt;br /&gt;
&lt;br /&gt;
The satellite overpass time can be estimated rather precisely from the sun position reported in metadata using {{cmd|r.sunmask}}:&lt;br /&gt;
The [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadata] of this example report: SUN_AZIMUTH = 120.8810347, SUN_ELEVATION = 64.7730999&lt;br /&gt;
&lt;br /&gt;
 # iteratively change hour and minutes to obtain a good result, timezone needs to be correct of course:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Reports: sun azimuth: 121.342461, sun angle above horz.(refraction corrected): 65.396652&lt;br /&gt;
&lt;br /&gt;
The resulting overpass local time 10:42:07 corresponds to 15:42 in GMT which corresponds to 15.67 in decimal GMT hours (decimal minutes: 42 * 100 / 60). This value is needed for the control file.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
How to add new sensors to i.atcorr:&lt;br /&gt;
* see http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentation]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Image processing]]&lt;br /&gt;
[[Category:Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
	<entry>
		<id>https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16725</id>
		<title>Correção atmosférica</title>
		<link rel="alternate" type="text/html" href="https://grasswiki.osgeo.org/w/index.php?title=Corre%C3%A7%C3%A3o_atmosf%C3%A9rica&amp;diff=16725"/>
		<updated>2012-10-20T21:43:15Z</updated>

		<summary type="html">&lt;p&gt;⚠️Samuel-rosa: Created page with &amp;quot;{{Trans|Português do Brasil|English}}  See also the LANDSAT wiki page.  '''Aim of this tutorial:'''  * Transforming a Landsat ETM+ image from DN values to radiance values...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Trans|Português do Brasil|English}}&lt;br /&gt;
&lt;br /&gt;
See also the [[LANDSAT]] wiki page.&lt;br /&gt;
&lt;br /&gt;
'''Aim of this tutorial:'''&lt;br /&gt;
&lt;br /&gt;
* Transforming a Landsat ETM+ image from DN values to radiance values&lt;br /&gt;
* Conducting an atmospheric correction of a Landsat image using the {{cmd|i.atcorr}} module in GRASS GIS&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
The standard steps for processing satellite images are:&lt;br /&gt;
&lt;br /&gt;
# Convert DN (digital number = pixel values) to ''Radiance at TOA'' (see formula below or use {{cmd|i.landsat.toar|version=65}}). {{cmd|i.landsat.toar|version=65}} supports all Landsat versions from MSS to TM to ETM+.&lt;br /&gt;
# Perform atmospheric correction (which converts Radiance at TOA -&amp;gt; ''Reflectance at surface''): done by {{cmd|i.atcorr}}.&lt;br /&gt;
&lt;br /&gt;
''Note:'' Remember, to check if water areas are &amp;gt; 0, since reflectance is always positive. If negative, you have a &amp;quot;cornichon&amp;quot; (pickle in English ;-0). Means the transform equation inputs are not belong to image processed.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
&lt;br /&gt;
* GRASS 6.4.0 or higher&lt;br /&gt;
* North Carolina sample dataset (location): http://grass.osgeo.org/download/data.php&lt;br /&gt;
&lt;br /&gt;
After downloading of the North Carolina dataset, it must be unzipped into your GIS database. When starting GRASS GIS, select this GIS database, open the ‘nc_spm_08’ dataset as LOCATION, and ‘PERMANENT’ as MAPSET. &lt;br /&gt;
&lt;br /&gt;
== Calculating radiance values ==&lt;br /&gt;
&lt;br /&gt;
The NC data set mapset contains, amongst others, a Landsat ETM+ image of 24th of May 2002. Every pixel of this image contains a DN or grey value. In order to be able to make calculations with satellite imagery, or compare values amongst different sensors, these values have to be converted to radiances or reflectances. The formulas to do this conversion are described here for Landsat images (or use [[GRASS_AddOns#i.landsat.toar|i.landsat.toar]]).&lt;br /&gt;
The conversion from DN values to top-of-atmosphere radiances is done as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- why doesn't TeX markup work??&lt;br /&gt;
&amp;lt;math&amp;gt;L\lambda = \frac{L_{MAX}λ - L_{MIN}λ}{QCAL_{MAX}-QCAL_{MIN}} * (QCAL-QCAL_{MIN}) + L_{MIN}\lambda&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\sqrt{2}&amp;lt;/math&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
 Lλ = ((LMAXλ - LMINλ)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINλ&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
* Lλ - spectral Radiance at the sensor's aperture in watts/(meter squared * ster * μm), the apparent radiance as seen by the satellite sensor;&lt;br /&gt;
* QCAL - the quantized calibrated pixel value in DN;&lt;br /&gt;
* LMINλ - the spectral radiance that is scaled to QCALMIN in watts/(meter squared * ster * μm);&lt;br /&gt;
* LMAXλ - the spectral radiance that is scaled to QCALMAX in watts/(meter squared * ster * μm);&lt;br /&gt;
* QCALMIN - the minimum quantized calibrated pixel value (corresponding to LMINλ) in DN;&lt;br /&gt;
* QCALMAX - the maximum quantized calibrated pixel value (corresponding to LMAXλ) in DN=255.&lt;br /&gt;
&lt;br /&gt;
LMINλ and LMAXλ are the radiances related to the minimal and maximal DN value, and are reported in the metadata file for each image, or in the table 1. High gain or low gain is also reported in the metadata file of each Landsat image. The minimal DN value (QCALMIN) is 1 for Landsat ETM+ images (1), and the maximal DN value (QCALMAX) is 255. QCAL is the DN value for every separate pixel in the Landsat image. &lt;br /&gt;
&lt;br /&gt;
Accessing the metadata:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_xx&lt;br /&gt;
&lt;br /&gt;
Under ‘comments’, the maximal and minimal radiance (LMAX and LMIN) for each band are given. &lt;br /&gt;
&lt;br /&gt;
Power users may use this for nicely readable output (example for channel 1):&lt;br /&gt;
&lt;br /&gt;
 CHAN=1&lt;br /&gt;
 {{cmd|r.info}} lsat7_2002_${CHAN}0 -h | tr '\n' ' '  | sed 's+ ++g' | tr ':' '\n' | grep &amp;quot;LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Conversion to radiance (this calculation is done for band 1, for the other bands, the numbers in italics need to be replaced with their correct values):&lt;br /&gt;
&lt;br /&gt;
 {{cmd|g.region}} rast=lsat7_2002_10 -p&lt;br /&gt;
 {{cmd|r.mapcalc}} &amp;quot;lsat7_2002_10_rad=((''191.6'' - (''-6.2'')) / (255.0 - 1.0)) * (lsat7_2002_10 - 1.0) + (''-6.2'')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For faster computations, use an integer DEM:&lt;br /&gt;
&lt;br /&gt;
  {{cmd|r.mapcalc}} &amp;quot;elev_int = round(elevation)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Find mean elevation to initialize computations (needed in 'icnd' file below)&lt;br /&gt;
&lt;br /&gt;
 {{cmd|r.univar}} elev_int&lt;br /&gt;
&lt;br /&gt;
== Estimating the overpass time from the sun position ==&lt;br /&gt;
&lt;br /&gt;
The satellite overpass time can be estimated rather precisely from the sun position reported in metadata using {{cmd|r.sunmask}}:&lt;br /&gt;
The [ftp://ftp.glcf.umiacs.umd.edu/glcf/Landsat/WRS2/p016/r035/p016r035_7x20020524.ETM-EarthSat-Orthorectified/p016r035_7x20020524.met metadata] of this example report: SUN_AZIMUTH = 120.8810347, SUN_ELEVATION = 64.7730999&lt;br /&gt;
&lt;br /&gt;
 # iteratively change hour and minutes to obtain a good result, timezone needs to be correct of course:&lt;br /&gt;
 {{cmd|r.sunmask}} -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5&lt;br /&gt;
&lt;br /&gt;
Reports: sun azimuth: 121.342461, sun angle above horz.(refraction corrected): 65.396652&lt;br /&gt;
&lt;br /&gt;
The resulting overpass local time 10:42:07 corresponds to 15:42 in GMT which corresponds to 15.67 in decimal GMT hours (decimal minutes: 42 * 100 / 60). This value is needed for the control file.&lt;br /&gt;
&lt;br /&gt;
== Atmospheric correction ==&lt;br /&gt;
&lt;br /&gt;
This radiance image can be used for the atmospheric correction with the '''6S algorithm'''. The algorithm will transform the top-of-the-atmosphere radiance values to top-of-canopy reflectance values using predefined information on the aerosol content and atmospheric composition of the time the image was taken. What follows describes the method to use this algorithm in GRASS GIS. Again, only the calculations for band 1 are shown, and the numbers to be changed for the other bands are indicated in red. The 'icnd_lsat1.txt' control file consists of the following parameters, and is written with a text editor:&lt;br /&gt;
&lt;br /&gt;
 8                          # indicates that it is an ETM+ image&lt;br /&gt;
 05 24 15.67 -78.691 35.749 # image taken on the 24th of May, at 15:42 GMT in decimals; the center of the image lies at 78.691°W and 35.749°N &lt;br /&gt;
 2                          # the midlatitude summer atmospheric model&lt;br /&gt;
 1                          # the continental aerosol model&lt;br /&gt;
 50                         # the visibility for the aerosol model [km]&lt;br /&gt;
 -0.110                     # the terrain lies 110 meters above sea level [km] * -1&lt;br /&gt;
 -1000                      # image taken of a satellite sensor (1000)&lt;br /&gt;
 61                         # spectral band, here 1: blue&lt;br /&gt;
&lt;br /&gt;
''TODO: understand if the [http://modis.gsfc.nasa.gov/data/dataprod/dataproducts.php?MOD_NUMBER=04 MODIS Aerosol Product (MOD04)] could be useful to estimate the visibility for the aerosol model.''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This file is then used in the {{cmd|i.atcorr}} module:&lt;br /&gt;
&lt;br /&gt;
 {{cmd|i.atcorr}} -a -o iimg=lsat7_2002_10_rad ialt=elev_int icnd=icdn_lsat1.txt oimg=lsat7_2002_10_atcorr&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
* &amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt; refers to a Landsat image taken after July 2000&lt;br /&gt;
* &amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt; activates the cache acceleration&lt;br /&gt;
* &amp;lt;tt&amp;gt;iimg&amp;lt;/tt&amp;gt; is the image to be corrected&lt;br /&gt;
* &amp;lt;tt&amp;gt;ialt&amp;lt;/tt&amp;gt; is the altitude map which overrides the initialization value of 110 meters&lt;br /&gt;
* &amp;lt;tt&amp;gt;icnd&amp;lt;/tt&amp;gt; is the path to the icnd.txt file&lt;br /&gt;
* &amp;lt;tt&amp;gt;oimg&amp;lt;/tt&amp;gt; is the name of the output image&lt;br /&gt;
&lt;br /&gt;
More information on the use of {{cmd|i.atcorr}} for other images can be found in the {{cmd|i.atcorr}} manual.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
* [http://6s.ltdri.org 6S Web site]&lt;br /&gt;
* [http://modis-sr.ltdri.org/ Land Surface Reflectance Science Computing Facility website - 6S]&lt;br /&gt;
* (1)  http://landsathandbook.gsfc.nasa.gov/handbook/handbook_htmls/chapter11/chapter11.html&lt;br /&gt;
* (2)  http://landsat.usgs.gov/documents/L5TM_postcal_v11.pdf&lt;br /&gt;
* [http://www-air.larc.nasa.gov/tools/predict.htm NASA LaRC Satellite Overpass Predictor]&lt;br /&gt;
*  Song, C., Woodcock, C.E., Seto, K.C., Lenney, M.P., Macomber, S.A., 2001. Classification and Change Detection Using Landsat TM Data: When and How to Correct Atmospheric Effects? Remote Sensing of Environment 75, 230-244. [http://www.unc.edu/courses/2008spring/geog/577/001/www/Song01_RSE.pdf PDF]&lt;br /&gt;
&lt;br /&gt;
How to add new sensors to i.atcorr:&lt;br /&gt;
* see http://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.atcorr/README&lt;br /&gt;
&lt;br /&gt;
[[Category: Documentation]]&lt;br /&gt;
[[Category: Tutorial]]&lt;br /&gt;
[[Category: Image processing]]&lt;br /&gt;
[[Category:Languages/pt-br]]&lt;/div&gt;</summary>
		<author><name>⚠️Samuel-rosa</name></author>
	</entry>
</feed>