i.atcorr(1)

πŸ’– i.atcorr πŸ’–

okay bestie, gather round, because this is the manual page for i.atcorr(1) from the GRASS GIS User's Manual and it's giving main character energy fr fr ✨


🌸 NAME 🌸

i.atcorr β€” does atmospheric correction using the 6S algorithm. And what's 6S, you ask? It's the Second Simulation of Satellite Signal in the Solar Spectrum, no cap πŸ›°οΈπŸ’…


πŸŽ€ KEYWORDS πŸŽ€

imagery, atmospheric correction, radiometric conversion, radiance, reflectance, satellite


✨ SYNOPSIS ✨

i.atcorr
i.atcorr --help
i.atcorr [-irab] input=name  [range=min,max]   [elevation=name]
[visibility=name]  parameters=name output=name  [rescale=min,max]
[--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]

πŸ¦‹ Flags

  • -i β€” output the raster map as an integer, periodt
  • -r β€” treat the input raster map as reflectance (the default vibe is radiance, jsyk)
  • -a β€” the input is from an ETM+ image taken after July 1, 2000
  • -b β€” the input is from an ETM+ image taken before July 1, 2000
  • --overwrite β€” let output files overwrite existing files (yes, really, it means it)
  • --help β€” prints the usage summary, iconic
  • --verbose β€” verbose module output, she's chatty
  • --quiet β€” quiet module output, she's mysterious
  • --ui β€” force-launch the GUI dialog πŸ’…

🌈 Parameters

  • input=name [required] β€” name of the input raster map
  • range=min,max β€” input range. Default: 0,255
  • elevation=name β€” name of input elevation raster map (in m)
  • visibility=name β€” name of input visibility raster map (in km)
  • parameters=name [required] β€” name of input text file with the 6S parameters
  • output=name [required] β€” name for the output raster map
  • rescale=min,max β€” rescale the output raster map. Default: 0,255

πŸ’œ DESCRIPTION πŸ’œ

So i.atcorr performs atmospheric correction on the input raster map using the 6S algorithm (Second Simulation of Satellite Signal in the Solar Spectrum). If you want the full algorithm lore, a detailed description lives at the Land Surface Reflectance Science Computing Facility website πŸ‘‘

⚠️ Important, bestie: current region settings are ignored! The region gets adjusted to cover the input raster map before the atmospheric correction runs, and then the previous settings are restored afterwards. She does her own thing and puts it all back, we love a considerate queen 🫢

If the -r flag is used, the input raster map is treated as reflectance. Otherwise, the input raster map is treated as radiance values, and it gets converted to reflectance at i.atcorr runtime. Either way, the output data are always reflectance. Always. Periodt. πŸ’…

The satellite overpass time has to be specified in Greenwich Mean Time (GMT) ⏰

An example of the 6S parameters could be:

8                            - geometrical conditions=Landsat ETM+
2 19 13.00 -47.410 -20.234   - month day hh.ddd longitude latitude ("hh.ddd" is in decimal hours GMT)
1                            - atmospheric model=tropical
1                            - aerosols model=continental
15                           - visibility [km] (aerosol model concentration)
-0.600                       - mean target elevation above sea level [km] (here 600 m asl)
-1000                        - sensor height (here, sensor on board a satellite)
64                           - 4th band of ETM+ Landsat 7

If the position is not available in longitude-latitude (WGS84), the m.proj conversion module can be used to reproject from a different reference system. Slay 🧚


πŸ”₯ 6S CODE PARAMETER CHOICES πŸ”₯

⭐ A. Geometrical conditions ⭐

okay so here's the big one, the whole menu of geometric condition codes. each one comes with a description AND what you gotta enter, so pay attention bestie:

  • 1 β€” meteosat observation β€” enter month,day,decimal hour (universal time-hh.ddd) n. of column,n. of line. (full scale 5000*2500)
  • 2 β€” goes east observation β€” enter month,day,decimal hour (universal time-hh.ddd) n. of column,n. of line. (full scale 17000*12000)c
  • 3 β€” goes west observation β€” enter month,day,decimal hour (universal time-hh.ddd) n. of column,n. of line. (full scale 17000*12000)
  • 4 β€” avhrr (PM noaa) β€” enter month,day,decimal hour (universal time-hh.ddd) n. of column(1-2048),xlonan,hna give long.(xlonan) and overpass hour (hna) at the ascendant node at equator
  • 5 β€” avhrr (AM noaa) β€” enter month,day,decimal hour (universal time-hh.ddd) n. of column(1-2048),xlonan,hna give long.(xlonan) and overpass hour (hna) at the ascendant node at equator
  • 6 β€” hrv (spot) β€” enter month,day,hh.ddd,long.,lat. *
  • 7 β€” tm (landsat) β€” enter month,day,hh.ddd,long.,lat. *
  • 8 β€” etm+ (landsat7) β€” enter month,day,hh.ddd,long.,lat. *
  • 9 β€” liss (IRS 1C) β€” enter month,day,hh.ddd,long.,lat. *
  • 10 β€” aster β€” enter month,day,hh.ddd,long.,lat. *
  • 11 β€” avnir β€” enter month,day,hh.ddd,long.,lat. *
  • 12 β€” ikonos β€” enter month,day,hh.ddd,long.,lat. *
  • 13 β€” RapidEye β€” enter month,day,hh.ddd,long.,lat. *
  • 14 β€” VGT1 (SPOT4) β€” enter month,day,hh.ddd,long.,lat. *
  • 15 β€” VGT2 (SPOT5) β€” enter month,day,hh.ddd,long.,lat. *
  • 16 β€” WorldView 2 β€” enter month,day,hh.ddd,long.,lat. *
  • 17 β€” QuickBird β€” enter month,day,hh.ddd,long.,lat. *
  • 18 β€” LandSat 8 β€” enter month,day,hh.ddd,long.,lat. *
  • 19 β€” Geoeye 1 β€” enter month,day,hh.ddd,long.,lat. *
  • 20 β€” Spot6 β€” enter month,day,hh.ddd,long.,lat. *
  • 21 β€” Spot7 β€” enter month,day,hh.ddd,long.,lat. *
  • 22 β€” Pleiades1A β€” enter month,day,hh.ddd,long.,lat. *
  • 23 β€” Pleiades1B β€” enter month,day,hh.ddd,long.,lat. *
  • 24 β€” Worldview3 β€” enter month,day,hh.ddd,long.,lat. *
  • 25 β€” Sentinel-2A β€” enter month,day,hh.ddd,long.,lat. *
  • 26 β€” Sentinel-2B β€” enter month,day,hh.ddd,long.,lat. *
  • 27 β€” PlanetScope 0c 0d β€” enter month,day,hh.ddd,long.,lat. *
  • 28 β€” PlanetScope 0e β€” enter month,day,hh.ddd,long.,lat. *
  • 29 β€” PlanetScope 0f 10 β€” enter month,day,hh.ddd,long.,lat. *
  • 30 β€” Worldview4 β€” enter month,day,hh.ddd,long.,lat. *
  • 31 β€” AVIRIS β€” enter month,day,hh.ddd,long.,lat. *
  • 32 β€” Hyperion VNIR β€” enter month,day,hh.ddd,long.,lat. *
  • 33 β€” Hyperion SWIR β€” enter month,day,hh.ddd,long.,lat. *
πŸ“ NOTE: for HRV, TM, ETM+, LISS and ASTER experiments, longitude and latitude are the coordinates of the scene center. Latitude must be > 0 for northern hemisphere and < 0 for southern. Longitude must be > 0 for eastern hemisphere and < 0 for western. Don't mix it up bestie, she WILL notice 😭

πŸ’« B. Atmospheric model πŸ’«

and here's the atmospheric model menu, pick your vibe:

  • 0 β€” no gaseous absorption
  • 1 β€” tropical
  • 2 β€” midlatitude summer
  • 3 β€” midlatitude winter
  • 4 β€” subarctic summer
  • 5 β€” subarctic winter
  • 6 β€” us standard 62
  • 7 β€” define your own atmospheric model as a set of the following 5 parameters per each measurement: altitude [km], pressure [mb], temperature [k], h2o density [g/m3], o3 density [g/m3]. For example: there is one radiosonde measurement for each altitude of 0-25km at a step of 1km, one measurement for each altitude of 25-50km at a step of 5km, and two single measurements for altitudes 70km and 100km. This makes 34 measurements. In that case, there are 34*5 values to input. πŸ’…
  • 8 β€” define your own atmospheric model providing values of the water vapor and ozone content: uw [g/cm2], uo3 [cm-atm]. The profile is taken from us62. 🫢

πŸŽ€ C. Aerosols model πŸŽ€

okay bestie, here's the menu of aerosol vibes. pick your fighter:

  • 0 β€” no aerosols 🚫
  • 1 β€” continental model 🌍
  • 2 β€” maritime model 🌊
  • 3 β€” urban model πŸ™οΈ
  • 4 β€” shettle model for background desert aerosol 🏜️
  • 5 β€” biomass burning πŸ”₯
  • 6 β€” stratospheric model ☁️
  • 7 β€” define your own model β€” enter the volumic percentage of each component: c(1) = volumic % of dust-like, c(2) = volumic % of water-soluble, c(3) = volumic % of oceanic, c(4) = volumic % of soot. All values should be between 0 and 1. ✨
  • 8 β€” define your own model β€” size distribution function: Multimodal Log Normal (up to 4 modes). πŸ¦‹
  • 9 β€” define your own model β€” size distribution function: Modified gamma. 🧚
  • 10 β€” define your own model β€” size distribution function: Junge Power-Law. πŸ‘‘
  • 11 β€” define your own model β€” Sun-photometer measurements, 50 values max, entered as: r and d V / d (logr) where r is the radius [micron], V is the volume, d V / d (logr) [cm3/cm2/micron]. Followed by: nr and ni for each wavelength where nr and ni are respectively the real and imaginary part of the refractive index. πŸ’œ

🌈 D. Aerosol concentration model (visibility) 🌈

If you have an estimate of the meteorological parameter visibility v, enter directly the value of v [km] (the aerosol optical depth (AOD) will be computed from a standard aerosol profile). ✨

If you have an estimate of aerosol optical depth, enter 0 for the visibility and in a following line enter the aerosol optical depth at 550nm (iaer means 'i' for input and 'aer' for aerosol), for example:

0                            - visibility
0.112                        - aerosol optical depth at 550 nm
NOTE: if iaer is 0, enter -1 for visibility. 😭
NOTE: if a visibility map is provided, these parameters are ignored. πŸ™ˆ

πŸ’– E. Target altitude (xps), sensor platform (xpp) πŸ’–

Target altitude (xps, in negative [km]): xps >= 0 means the target is at the sea level.

otherwise xps expresses the altitude of the target (e.g., mean elevation) in [km], given as negative value.

Sensor platform (xpp, in negative [km] or -1000):

  • xpp = -1000 means that the sensor is on board a satellite. πŸ›°οΈ
  • xpp = 0 means that the sensor is at the ground level.
  • -100 < xpp < 0 defines the altitude of the sensor expressed in [km]; this altitude is given relative to the target altitude as negative value.

For aircraft simulations only (xpp is neither equal to 0 nor equal to -1000):

  • puw (water vapor content between the aircraft and the surface)
  • po3 (ozone content between the aircraft and the surface)
  • taerp (the aerosol optical thickness at 550nm between the aircraft and the surface)

If these data are not available, enter negative values for all of them. puw, po3 will then be interpolated from the us62 standard profile according to the values at the ground level; taerp will be computed according to a 2 km exponential profile for aerosol. ✈️


🌸 F. Sensor band 🌸

There are two possibilities: either define your own spectral conditions (codes -2, -1, 0, or 1) or choose a code indicating the band of one of the pre-defined satellites. πŸ‘‘

Define your own spectral conditions: Note that "wlinf" and "wlsup" refer to the limits of the wavelength range defined by the user for a given simulation. Specifically:

  • wlinf: This represents the lower wavelength limit (or minimum wavelength) of the spectral band for which the simulation is being performed.
  • wlsup: This represents the upper wavelength limit (or maximum wavelength) of the spectral band for the simulation.
  • -2 β€” Enter wlinf, wlsup. The filter function will be equal to 1 over the whole band (as iwave=0) but step by step output will be printed. ✨
  • -1 β€” Enter wl (monochr. cond, gaseous absorption is included). πŸ”
  • 0 β€” Enter wlinf, wlsup. The filter function will be equal to 1 over the whole band. πŸ’…
  • 1 β€” Enter wlinf, wlsup and user's filter function s (lambda) by step of 0.0025 micrometer. πŸŽ€

Pre-defined satellite bands:

  • 2 β€” meteosat vis band (0.350-1.110)
  • 3 β€” goes east band vis (0.490-0.900)
  • 4 β€” goes west band vis (0.490-0.900)
  • 5 β€” avhrr (noaa6) band 1 (0.550-0.750)
  • 6 β€” avhrr (noaa6) band 2 (0.690-1.120)
  • 7 β€” avhrr (noaa7) band 1 (0.500-0.800)
  • 8 β€” avhrr (noaa7) band 2 (0.640-1.170)
  • 9 β€” avhrr (noaa8) band 1 (0.540-1.010)
  • 10 β€” avhrr (noaa8) band 2 (0.680-1.120)
  • 11 β€” avhrr (noaa9) band 1 (0.530-0.810)
  • 12 β€” avhrr (noaa9) band 1 (0.680-1.170)
  • 13 β€” avhrr (noaa10) band 1 (0.530-0.780)
  • 14 β€” avhrr (noaa10) band 2 (0.600-1.190)
  • 15 β€” avhrr (noaa11) band 1 (0.540-0.820)
  • 16 β€” avhrr (noaa11) band 2 (0.600-1.120)
  • 17 β€” hrv1 (spot1) band 1 (0.470-0.650)
  • 18 β€” hrv1 (spot1) band 2 (0.600-0.720)
  • 19 β€” hrv1 (spot1) band 3 (0.730-0.930)
  • 20 β€” hrv1 (spot1) band pan (0.470-0.790)
  • 21 β€” hrv2 (spot1) band 1 (0.470-0.650)
  • 22 β€” hrv2 (spot1) band 2 (0.590-0.730)
  • 23 β€” hrv2 (spot1) band 3 (0.740-0.940)
  • 24 β€” hrv2 (spot1) band pan (0.470-0.790)
  • 25 β€” tm (landsat5) band 1 (0.430-0.560)
  • 26 β€” tm (landsat5) band 2 (0.500-0.650)
  • 27 β€” tm (landsat5) band 3 (0.580-0.740)
  • 28 β€” tm (landsat5) band 4 (0.730-0.950)
  • 29 β€” tm (landsat5) band 5 (1.5025-1.890)
  • 30 β€” tm (landsat5) band 7 (1.950-2.410)
  • 31 β€” mss (landsat5) band 1 (0.475-0.640)
  • 32 β€” mss (landsat5) band 2 (0.580-0.750)
  • 33 β€” mss (landsat5) band 3 (0.655-0.855)
  • 34 β€” mss (landsat5) band 4 (0.785-1.100)
  • 35 β€” MAS (ER2) band 1 (0.5025-0.5875)
  • 36 β€” MAS (ER2) band 2 (0.6075-0.7000)

okay bestie we're back and we're deep in the band list now β€” number 37 and it's not stopping until 150. the way this list is long? iconic. no cap, every single band is here. let's go πŸ’…βœ¨

  1. MAS (ER2) band 3 (0.8300-0.9125) β€” vibe check passed, periodt πŸ’…
  2. MAS (ER2) band 4 (0.9000-0.9975) β€” another MAS banger, we love to see it ✨
  3. MAS (ER2) band 5 (1.8200-1.9575) β€” okay this one's giving 1.82 to 1.9575, no cap 🌸
  4. MAS (ER2) band 6 (2.0950-2.1925) β€” MAS band 6, lowkey iconic πŸ’œ
  5. MAS (ER2) band 7 (3.5800-3.8700) β€” last MAS one, and it's 3.58 to 3.87, slay πŸ¦‹
  6. MODIS band 1 (0.6100-0.6850) β€” MODIS has entered the chat, band 1 periodt 🌈
  7. MODIS band 2 (0.8200-0.9025) β€” band 2, we're obsessed ✨
  8. MODIS band 3 (0.4500-0.4825) β€” MODIS band 3, main character energy πŸ’…
  9. MODIS band 4 (0.5400-0.5700) β€” band 4, no cap πŸ”₯
  10. MODIS band 5 (1.2150-1.2700) β€” MODIS band 5, fr fr πŸ’™
  11. MODIS band 6 (1.6000-1.6650) β€” band 6, iykyk 🌿
  12. MODIS band 7 (2.0575-2.1825) β€” last MODIS, and it's rainbow-worthy 🌈
  13. avhrr (noaa12) band 1 (0.500-1.000) β€” avhrr noaa12 band 1, okay bestie πŸ’–
  14. avhrr (noaa12) band 2 (0.650-1.120) β€” noaa12 band 2, slay ✨
  15. avhrr (noaa14) band 1 (0.500-1.110) β€” noaa14 band 1, we love a sequel πŸ’œ
  16. avhrr (noaa14) band 2 (0.680-1.100) β€” noaa14 band 2, periodt 🌸
  17. POLDER band 1 (0.4125-0.4775) β€” POLDER band 1, iconic πŸ¦‹
  18. POLDER band 2 (non polar) (0.4100-0.5225) β€” POLDER band 2 non polar, no cap 🌈
  19. POLDER band 3 (non polar) (0.5325-0.5950) β€” band 3 non polar, ate πŸ’…
  20. POLDER band 4 P1 (0.6300-0.7025) β€” POLDER band 4 P1, obsessed πŸ‘
  21. POLDER band 5 (non polar) (0.7450-0.7800) β€” band 5 non polar, fire πŸ”₯
  22. POLDER band 6 (non polar) (0.7000-0.8300) β€” band 6 non polar, blue vibes πŸ’™
  23. POLDER band 7 P1 (0.8100-0.9200) β€” POLDER band 7 P1, green flag 🌿
  24. POLDER band 8 (non polar) (0.8650-0.9400) β€” last POLDER, rainbow moment 🌈
  25. etm+ (landsat7) band 1 blue (435nm - 517nm) β€” etm+ landsat7 band 1 blue, bestie πŸ’–
  26. etm+ (landsat7) band 2 green (508nm - 617nm) β€” band 2 green, slay ✨
  27. etm+ (landsat7) band 3 red (625nm - 702nm) β€” band 3 red, iconic πŸ’œ
  28. etm+ (landsat7) band 4 NIR (753nm - 910nm) β€” band 4 NIR, lowkey obsessed 🌸
  29. etm+ (landsat7) band 5 SWIR (1520nm - 1785nm) β€” band 5 SWIR, no cap πŸ¦‹
  30. etm+ (landsat7) band 7 SWIR (2028nm - 2375nm) β€” band 7 SWIR, periodt 🌈
  31. etm+ (landsat7) band 8 PAN (505nm - 917nm) β€” band 8 PAN, main character energy πŸ’…
  32. liss (IRC 1C) band 2 (0.502-0.620) β€” liss IRC 1C band 2, ate πŸ‘
  33. liss (IRC 1C) band 3 (0.612-0.700) β€” band 3, fire πŸ”₯
  34. liss (IRC 1C) band 4 (0.752-0.880) β€” band 4, blue vibes πŸ’™
  35. liss (IRC 1C) band 5 (1.452-1.760) β€” band 5, green flag 🌿
  36. aster band 1 (0.480-0.645) β€” aster band 1, rainbow 🌈
  37. aster band 2 (0.588-0.733) β€” aster band 2, slay πŸ’–
  38. aster band 3N (0.723-0.913) β€” band 3N, iconic ✨
  39. aster band 4 (1.530-1.750) β€” band 4, we love to see it πŸ’œ
  40. aster band 5 (2.103-2.285) β€” band 5, no cap 🌸
  41. aster band 6 (2.105-2.298) β€” band 6, periodt πŸ¦‹
  42. aster band 7 (2.200-2.393) β€” band 7, fr fr 🌈
  43. aster band 8 (2.248-2.475) β€” band 8, iykyk πŸ’…
  44. aster band 9 (2.295-2.538) β€” last aster, ate πŸ‘
  45. avnir band 1 (408nm - 517nm) β€” avnir band 1, fire πŸ”₯
  46. avnir band 2 (503nm - 612nm) β€” band 2, blue πŸ’™
  47. avnir band 3 (583nm - 717nm) β€” band 3, green flag 🌿
  48. avnir band 4 (735nm - 922nm) β€” band 4, rainbow 🌈
  49. Ikonos Green band (408nm - 642nm) β€” Ikonos Green, slay πŸ’–
  50. Ikonos Red band (448nm - 715nm) β€” Ikonos Red, iconic ✨
  51. Ikonos NIR band (575nm - 787nm) β€” Ikonos NIR, no cap πŸ’œ
  52. RapidEye Blue band (440nm - 512nm) β€” RapidEye Blue, obsessed 🌸
  53. RapidEye Green band (515nm - 592nm) β€” RapidEye Green, periodt πŸ¦‹
  54. RapidEye Red band (628nm - 687nm) β€” RapidEye Red, ate 🌈
  55. RapidEye Red edge band (685nm - 735nm) β€” Red edge, main character energy πŸ’…
  56. RapidEye NIR band (750nm - 860nm) β€” RapidEye NIR, fr fr πŸ‘
  57. VGT1 (SPOT4) band 0 (420nm - 497nm) β€” VGT1 SPOT4 band 0, fire πŸ”₯
  58. VGT1 (SPOT4) band 2 (603nm - 747nm) β€” band 2, blue vibes πŸ’™
  59. VGT1 (SPOT4) band 3 (740nm - 942nm) β€” band 3, green flag 🌿
  60. VGT1 (SPOT4) MIR band (1540nm - 1777nm) β€” MIR band, rainbow 🌈
  61. VGT2 (SPOT5) band 0 (423nm - 492nm) β€” VGT2 SPOT5 band 0, slay πŸ’–
  62. VGT2 (SPOT5) band 2 (600nm - 737nm) β€” band 2, iconic ✨
  63. VGT2 (SPOT5) band 3 (745nm - 945nm) β€” band 3, no cap πŸ’œ
  64. VGT2 (SPOT5) MIR band (1523nm - 1757nm) β€” MIR band, obsessed 🌸
  65. WorldView2 Panchromatic band (448nm - 812nm) β€” WorldView2 Pan, periodt πŸ¦‹
  66. WorldView2 Coastal Blue band (395nm - 457nm) β€” Coastal Blue, ate 🌈
  67. WorldView2 Blue band (440nm - 517nm) β€” Blue band, main character πŸ’…
  68. WorldView2 Green band (503nm - 587nm) β€” Green band, fr fr πŸ‘
  69. WorldView2 Yellow band (583nm - 632nm) β€” Yellow band, fire πŸ”₯
  70. WorldView2 Red band (623nm - 695nm) β€” Red band, blue? iconic πŸ’™
  71. WorldView2 Red edge band (698nm - 750nm) β€” Red edge, green flag 🌿
  72. WorldView2 NIR1 band (760nm - 905nm) β€” NIR1, rainbow 🌈
  73. WorldView2 NIR2 band (853nm - 1047nm) β€” NIR2, slay πŸ’–
  74. QuickBird Panchromatic band (385nm - 1060nm) β€” QuickBird Pan, iconic ✨
  75. QuickBird Blue band (420nm - 585nm) β€” QuickBird Blue, no cap πŸ’œ
  76. QuickBird Green band (448nm - 682nm) β€” Green, obsessed 🌸
  77. QuickBird Red band (560nm - 747nm) β€” Red, periodt πŸ¦‹
  78. QuickBird NIR1 band (650nm - 935nm) β€” NIR1, ate 🌈
  79. Landsat 8 Coastal aerosol band (433nm - 455nm) β€” Landsat 8 Coastal aerosol, main character πŸ’…
  80. Landsat 8 Blue band (448nm - 515nm) β€” Blue, fr fr πŸ‘
  81. Landsat 8 Green band (525nm - 595nm) β€” Green, fire πŸ”₯
  82. Landsat 8 Red band (633nm - 677nm) β€” Red, blue vibes πŸ’™
  83. Landsat 8 Panchromatic band (498nm - 682nm) β€” Panchromatic, green flag 🌿
  84. Landsat 8 NIR band (845nm - 885nm) β€” NIR, rainbow 🌈
  85. Landsat 8 Cirrus band (1355nm - 1390nm) β€” Cirrus, slay πŸ’–
  86. Landsat 8 SWIR1 band (1540nm - 1672nm) β€” SWIR1, iconic ✨
  87. Landsat 8 SWIR2 band (2073nm - 2322nm) β€” SWIR2, no cap πŸ’œ
  88. GeoEye 1 Panchromatic band (448nm - 812nm) β€” GeoEye 1 Pan, obsessed 🌸
  89. GeoEye 1 Blue band (443nm - 525nm) β€” Blue, periodt πŸ¦‹
  90. GeoEye 1 Green band (503nm - 587nm) β€” Green, ate 🌈
  91. GeoEye 1 Red band (653nm - 697nm) β€” Red, main character πŸ’…
  92. GeoEye 1 NIR band (770nm - 932nm) β€” NIR, fr fr πŸ‘
  93. Spot6 Blue band (440nm - 532nm) β€” Spot6 Blue, fire πŸ”₯
  94. Spot6 Green band (515nm - 600nm) β€” Green, blue vibes πŸ’™
  95. Spot6 Red band (610nm - 710nm) β€” Red, green flag 🌿
  96. Spot6 NIR band (738nm - 897nm) β€” NIR, rainbow 🌈
  97. Spot6 Pan band (438nm - 760nm) β€” Pan, slay πŸ’–
  98. Spot7 Blue band (445nm - 532nm) β€” Spot7 Blue, iconic ✨
  99. Spot7 Green band (525nm - 607nm) β€” Green, no cap πŸ’œ
  100. Spot7 Red band (610nm - 727nm) β€” Red, obsessed 🌸
  101. Spot7 NIR band (745nm - 902nm) β€” NIR, periodt πŸ¦‹
  102. Spot7 Pan band (443nm - 760nm) β€” Pan, ate 🌈
  103. Pleiades1A Blue band (433nm - 560nm) β€” Pleiades1A Blue, main character πŸ’…
  104. Pleiades1A Green band (500nm - 617nm) β€” Green, fr fr πŸ‘
  105. Pleiades1A Red band (590nm - 722nm) β€” Red, fire πŸ”₯
  106. Pleiades1A NIR band (740nm - 945nm) β€” NIR, blue vibes πŸ’™
  107. Pleiades1A Pan band (460nm - 845nm) β€” Pan, green flag 🌿
  108. Pleiades1B Blue band 438nm - 560nm) β€” Pleiades1B Blue, note the missing paren, still iconic 🌈
  109. Pleiades1B Green band (498nm - 615nm) β€” Green, slay πŸ’–
  110. Pleiades1B Red band (608nm - 727nm) β€” Red, iconic ✨
  111. Pleiades1B NIR band (750nm - 945nm) β€” NIR, no cap πŸ’œ
  112. Pleiades1B Pan band (460nm - 845nm) β€” Pan, obsessed 🌸
  113. Worldview3 Pan band (445nm - 812nm) β€” Worldview3 Pan, periodt πŸ¦‹
  114. Worldview3 Coastal blue band (395nm - 455nm) β€” last one bestie, Coastal blue, ate 🌈

...and the band-code list just keeps going, because of course it does πŸ’…. Codes 151 through 208 are the Worldview3 / Sentinel-2 / PlanetScope crew, then AVIRIS and Hyperion roll in with the big sprawling ranges. Wherever you see a lonely . sitting in the code column, that's the page being like "…and every step in between, bestie" β€” it's a range, not a typo πŸ¦‹

  • 151 β€” Worldview3 Blue band (443nm - 517nm)
  • 152 β€” Worldview3 Green band (508nm - 587nm)
  • 153 β€” Worldview3 Yellow band (580nm - 630nm)
  • 154 β€” Worldview3 Red band (625nm - 697nm)
  • 155 β€” Worldview3 Red edge band (698nm - 752nm)
  • 156 β€” Worldview3 NIR1 band (760nm - 902nm)
  • 157 β€” Worldview3 NIR2 band (855nm - 1042nm)
  • 158 β€” Worldview3 SWIR1 band (1178nm - 1242nm)
  • 159 β€” Worldview3 SWIR2 band (1545nm - 1600nm)
  • 160 β€” Worldview3 SWIR3 band (1633nm - 1687nm)
  • 161 β€” Worldview3 SWIR4 band (1698nm - 1762nm)
  • 162 β€” Worldview3 SWIR5 band (2133nm - 2195nm)
  • 163 β€” Worldview3 SWIR6 band (2170nm - 2235nm)
  • 164 β€” Worldview3 SWIR7 band (2225nm - 2295nm)
  • 165 β€” Worldview3 SWIR8 band (2283nm - 2377nm)
  • 166 β€” Sentinel2A Coastal blue band B1 (430nm - 455nm)
  • 167 β€” Sentinel2A Blue band B2 (440nm - 530nm)
  • 168 β€” Sentinel2A Green band B3 (540nm - 580nm)
  • 169 β€” Sentinel2A Red band B4 (648nm - 682nm)
  • 170 β€” Sentinel2A Red edge band B5 (695nm - 712nm)
  • 171 β€” Sentinel2A Red edge band B6 (733nm - 747nm)
  • 172 β€” Sentinel2A Red edge band B7 (770nm - 795nm)
  • 173 β€” Sentinel2A NIR band B8 (775nm - 905nm)
  • 174 β€” Sentinel2A Red edge band B8A (850nm - 880nm)
  • 175 β€” Sentinel2A Water vapour band B9 (933nm - 957nm)
  • 176 β€” Sentinel2A SWIR Cirrus band B10 (1355nm - 1392nm)
  • 177 β€” Sentinel2A SWIR band B11 (1558nm - 1667nm)
  • 178 β€” Sentinel2A SWIR band B12 (2088nm - 2315nm)
  • 179 β€” Sentinel2B Coastal blue band B1 (430nm - 455nm)
  • 180 β€” Sentinel2B Blue band B2 (440nm - 530nm)
  • 181 β€” Sentinel2B Green band B3 (538nm - 580nm)
  • 182 β€” Sentinel2B Red band B4 (648nm - 682nm)
  • 183 β€” Sentinel2B Red edge band B5 (695nm - 712nm)
  • 184 β€” Sentinel2B Red edge band B6 (730nm - 747nm)
  • 185 β€” Sentinel2B Red edge band B7 (768nm - 792nm)
  • 186 β€” Sentinel2B NIR band B8 (778nm - 905nm)
  • 187 β€” Sentinel2B Red edge band B8A (850nm - 877nm)
  • 188 β€” Sentinel2B Water vapour band B9 (930nm - 955nm)
  • 189 β€” Sentinel2B SWIR Cirrus band B10 (1358nm - 1397nm)
  • 190 β€” Sentinel2B SWIR band B11 (1555nm - 1667nm)
  • 191 β€” Sentinel2B SWIR band B12 (2075nm - 2300nm)
  • 192 β€” PlanetScope 0c 0d Blue band B1 (440nm - 570nm)
  • 193 β€” PlanetScope 0c 0d Green band B2 (450nm - 690nm)
  • 194 β€” PlanetScope 0c 0d Red band B3 (460nm - 700nm)
  • 195 β€” PlanetScope 0c 0d NIR band B4 (770nm - 880nm)
  • 196 β€” PlanetScope 0e Blue band B1 (430nm - 700nm)
  • 197 β€” PlanetScope 0e Green band B2 (450nm - 700nm)
  • 198 β€” PlanetScope 0e Red band B3 (460nm - 700nm)
  • 199 β€” PlanetScope 0e NIR band B4 (760nm - 880nm)
  • 200 β€” PlanetScope 0f 10 Blue band B1 (450nm - 680nm)
  • 201 β€” PlanetScope 0f 10 Green band B2 (450nm - 680nm)
  • 202 β€” PlanetScope 0f 10 Red band B3 (450nm - 680nm)
  • 203 β€” PlanetScope 0f 10 NIR band B4 (760nm - 870nm)
  • 204 β€” Worldview4 Pan band (424nm - 842nm)
  • 205 β€” Worldview4 Blue band (416nm - 567nm)
  • 206 β€” Worldview4 Green band (488nm - 626nm)
  • 207 β€” Worldview4 Red band (639nm - 711nm)
  • 208 β€” Worldview4 NIR1 band (732nm - 962nm)
  • 209 β€” AVIRIS b1 band (365nm)
  • 210 β€” AVIRIS b2 band (375nm)
  • . β€” AVIRIS b. band (+10nm)
  • 431 β€” AVIRIS b223 band (2486nm)
  • 432 β€” AVIRIS b224 band (2496nm)
  • 433 β€” Hyperion VNIR b8 band (427nm)
  • 434 β€” Hyperion VNIR b9 band (437.16326nm)
  • . β€” Hyperion VNIR b. band (+10.16326nm)
  • 480 β€” Hyperion VNIR b56 band (914.83648nm)
  • 481 β€” Hyperion VNIR b57 band (924.99974nm)
  • 482 β€” Hyperion SWIR b77 band (912nm)
  • 483 β€” Hyperion SWIR b78 band (922.0884nm)
  • . β€” Hyperion SWIR b. band (+10.0884nm)
  • 627 β€” Hyperion SWIR b223 band (2384.9064nm)
  • 628 β€” Hyperion SWIR b224 band (2394.9948nm)

✨ EXAMPLES ✨

πŸ›°οΈ Atmospheric correction of a Sentinel-2 band πŸ›°οΈ

Okay so this example is literally the whole vibe: doing atmospheric correction on a Sentinel-2 scene in the North Carolina project. Let's go 🫢

Let's assume the Sentinel-2 L1C scene S2A_OPER_PRD_MSIL1C_PDMC_20161029T092602_R054_V20161028T155402_20161028T155402 was downloaded and imported with region cropping (peep r.import for that) into the PERMANENT mapset of the North Carolina project. The computational region got set to the extent of the elevation map in the North Carolina dataset. And now? We've got 13 individual bands (B01-B12) and we want the atmospheric correction applied to all of them. The steps below get done to each band separately β€” one at a time, no shortcuts bestie.

πŸ“ Create the parameters file for i.atcorr

First thing first: we make a file holding the 6S parameters for one specific scene and band. To build that 6S file we need to gather up the following intel πŸ‘‘

  • geometrical conditions,
  • month, day, decimal hours in GMT, decimal longitude and latitude of measurement,
  • atmospheric model,
  • aerosol model,
  • visibility or aerosol optical depth,
  • mean target elevation above sea level,
  • sensor height and,
  • sensor band.
yes bestie, the original page says "moth" where it means "month" πŸ¦‹ we all know what they meant, moving on

1. Geometrical conditions

For Sentinel-2A the geometrical conditions take the value 25, and for Sentinel-2B the geometrical conditions value is 26 (See table A). Our scene comes from the Sentinel-2A mission β€” you can tell because the file name begins with S2A_....

2. Day, time, longitude and latitude of measurement

The day and time of the measurement are hiding in the filename (i.e., the second datum in the file name, format YYYYMMDDTHHMMSS), and they're also written down in the metadata file that ships inside the downloaded scene (the file with the .xml extension). Our sample scene was taken on October 28th (20161028) at 15:54:02 (155402). Heads up: the time has to be given as decimal hours in Greenwich Mean Time (GMT). Lucky for us the time in the scene name is in GMT, so we can convert it to decimal hours like this: 15 + 54/60 + 2/3600 = 15.901.

Longitude and latitude refer to the centre of the computational region (which can totally be smaller than the scene), and they have to be in WGS84 decimal coordinates. To grab the coordinates of the centre we can run:

g.region -bg

The longitude and latitude of the centre land in ll_clon and ll_clat. In our case, ll_clon=-78.691 and ll_clat=35.749.

3. Atmospheric model

We get to pick between all the atmospheric models listed at the beginning of this manual. For North Carolina we can choose 2 β€” midlatitude summer 🌞

4. Aerosol model

Same deal, we choose between all the aerosol models defined at the beginning of this manual. For North Carolina we can choose 1 β€” continental model ✨

5. Visibility or Aerosol Optical Depth

For Sentinel-2 scenes the visibility isn't measured, so instead we have to estimate the aerosol optical depth, e.g. from AERONET. With a bit of luck you'll find a station near your location that measured the Aerosol Optical Depth at 500 nm at the exact same time the scene was taken πŸ€ In our case, on 28th October 2016, the EPA-Res_Triangle_Pk station measured AOD = 0.07 (approximately).

6. Mean target elevation above sea level

Mean target elevation above sea level means the mean elevation of the computational region. You can estimate it from the digital elevation model, e.g. by running:

r.univar -g elevation

The mean elevation lands in mean. In our case, mean=110. In the 6S file it will be displayed in [-km], i.e., -0.110.

  1. Sensor height β€” bestie, the sensor is literally up on a satellite, so this value is just -1000. That's the whole vibe. πŸ›°οΈ
  2. Sensor band β€” the full lineup of satellite bands lives in table F (peep it up above ☝️). For Sentinel-2A the band numbers run 166 to 178, and for Sentinel-2B they run 179 to 191. Slay.

Okay so here's what the 6S file would actually look like for Band 02 of our scene πŸ’–. To use it in the i.atcorr module we can just save it as a text file, for example params_B02.txt.

25
10 28 15.901 -78.691 35.749
2
1
0
0.07
-0.110
-1000
167

Compute atmospheric correction ✨

Next step, we run i.atcorr for the selected band B02 of our Sentinel 2 scene. We gotta specify these parameters:

  • input = the raster band we're processing,
  • parameters = path to the 6S file we just made (we could also type the values in directly, no cap),
  • output = the name for the output corrected raster band,
  • range = from 1 to the QUANTIFICATION_VALUE stored in the metadata file. It's 10000 for both Sentinel-2A and Sentinel-2B πŸ’―
  • rescale = the output range of values for the corrected bands. This one's up to you, bestie β€” like 0-255, 0-1, 1-10000, whatever fits your vibe.

And if the data is available, you can also specify:

  • elevation = raster of digital elevation model,
  • visibility = raster of visibility model.

So finally, here's how the command looks to apply atmospheric correction to band B02 🌸:

i.atcorr input=B02 parameters=params_B02.txt output=B02.atcorr range=1,10000 rescale=0,255 elevation=elevation

To apply atmospheric correction to the rest of the bands, literally only the last line in the 6S parameters file (i.e., the sensor band) needs to change πŸŽ€. Every other parameter stays the same.

Figure: Sentinel-2A Band 02 with applied atmospheric correction (histogram equalization grayscale color scheme)

Atmospheric correction of a Landsat-7 band 🌈

This example is also based on the North Carolina sample dataset (GMT -5 hours). First we set the computational region to the satellite map, e.g. band 4:

g.region raster=lsat7_2002_40 -p

It's important to verify the available metadata for the sun position, because it has to be defined for the atmospheric correction β˜€οΈ. One option is to check the satellite overpass time with sun position as reported in the metadata file (file copy; North Carolina sample dataset). In the case of the North Carolina sample dataset, these values have been stored for each channel and can be retrieved with:

r.info lsat7_2002_40

In this case, we have: SUN_AZIMUTH = 120.8810347, SUN_ELEVATION = 64.7730999.

If the sun position metadata are unavailable, we can also calculate them from the overpass time as follows (r.sunmask uses SOLPOS):

r.sunmask -s elev=elevation out=dummy year=2002 month=5 day=24 hour=10 min=42 sec=7 timezone=-5
# .. reports: sun azimuth: 121.342461, sun angle above horz.(refraction corrected): 65.396652

If the overpass time is unknown, use the NASA LaRC Satellite Overpass Predictor.

Convert digital numbers (DN) to radiance at top-of-atmosphere (TOA) πŸ¦‹

For Landsat and ASTER, the conversion can be conveniently done with i.landsat.toar or i.aster.toar, respectively πŸ’….

In case of different satellites, the conversion of DN (digital number = pixel values) to radiance at top-of-atmosphere (TOA) can also be done manually, using e.g. the formula:

# formula depends on satellite sensor, see respective metadata
LΞ» = ((LMAXΞ» - LMINΞ»)/(QCALMAX-QCALMIN)) * (QCAL-QCALMIN) + LMINΞ»

where,

  • LΞ» = Spectral Radiance at the sensor's aperture in Watt/(meter squared * ster * Β΅m), the apparent radiance as seen by the satellite sensor;
  • QCAL = the quantized calibrated pixel value in DN;
  • LMINΞ» = the spectral radiance that is scaled to QCALMIN in watts/(meter squared * ster * Β΅m);
  • LMAXΞ» = the spectral radiance that is scaled to QCALMAX in watts/(meter squared * ster * Β΅m);
  • QCALMIN = the minimum quantized calibrated pixel value (corresponding to LMINΞ») in DN;
  • QCALMAX = the maximum quantized calibrated pixel value (corresponding to LMAXΞ») in DN=255.

LMINλ and LMAXλ are the radiances related to the minimal and maximal DN value, and they are reported in the metadata file of each image 🫢. High gain or low gain is also reported in the metadata file of each satellite image. For Landsat ETM+, the minimal DN value (QCALMIN) is 1 (see Landsat handbook, chapter 11), and the maximal DN value (QCALMAX) is 255. QCAL is the DN value for every separate pixel in the Landsat image.

We extract the coefficients and apply them in order to obtain the radiance map:

CHAN=4
r.info lsat7_2002_${CHAN}0 -h | tr ’\n’ ’ ’ | sed ’s+ ++g’ | tr ’:’ ’\n’ | grep "LMIN_BAND${CHAN}\|LMAX_BAND${CHAN}"
LMAX_BAND4=241.100,p016r035_7x20020524.met
LMIN_BAND4=-5.100,p016r035_7x20020524.met
QCALMAX_BAND4=255.0,p016r035_7x20020524.met
QCALMIN_BAND4=1.0,p016r035_7x20020524.met

Conversion to radiance (this calculation is done for band 4, for the other bands, the numbers will need to be replaced with their related values):

r.mapcalc "lsat7_2002_40_rad = ((241.1 - (-5.1)) / (255.0 - 1.0)) * (lsat7_2002_40 - 1.0) + (-5.1)"

Again, the r.mapcalc calculation is only needed when working with satellite data other than Landsat or ASTER.

Create the parameters file for i.atcorr πŸ’œ

The underlying 6S model is parametrized through a control file, indicated with the parameters option. This is a text file defining geometrical and atmospherical conditions of the satellite overpass ✨. Here we create a control file icnd_lsat4.txt for band 4 (NIR), based on metadata. For the overpass time, we need to define decimal hours:

10:42:07 NC local time = 10.70 decimal hours (decimal minutes: 42 * 100 / 60) which is 15.70 GMT.

8                            - geometrical conditions=Landsat ETM+
5 24 15.70 -78.691 35.749    - month day hh.ddd longitude latitude ("hh.ddd" is in GMT decimal hours)
2                            - atmospheric model=midlatitude summer
1                            - aerosols model=continental
50                           - visibility [km] (aerosol model concentration)
-0.110                       - mean target elevation above sea level [km]
-1000                        - sensor on board a satellite
64                           - 4th band of ETM+ Landsat 7

Finally, run the atmospheric correction (-r for reflectance input map; -a for date > July 2000):

i.atcorr -r -a lsat7_2002_40_rad elevation=elevation parameters=icnd_lsat4.txt output=lsat7_2002_40_atcorr

Note that the altitude value from 'icnd_lsat4.txt' file is read at the beginning to compute the initial transform. Therefore, it is necessary to provide a value that might be the mean value of the elevation model (r.univar elevation). For the atmospheric correction per se, the elevation values from the raster map are used πŸ‘‘

Note that the process is computationally intensive 😭. Note also, that i.atcorr reports solar elevation angle above horizon rather than solar zenith angle.

🌟 REMAINING DOCUMENTATION ISSUES 🌟

The influence and importance of the visibility value or map should be explained, also how to obtain an estimate for either visibility or aerosol optical depth at 550nm. (Yeah bestie, this part is still a TODO 🫠)


πŸ“š REFERENCES πŸ“š

  • Vermote, E.F., Tanre, D., Deuze, J.L., Herman, M., and Morcrette, J.J., 1997, Second simulation of the satellite signal in the solar spectrum, 6S: An overview., IEEE Trans. Geosc. and Remote Sens. 35(3):675-686.
  • 6S Manual: PDF1, PDF2, and PDF3
  • RapidEye sensors have been provided by RapidEye AG, Germany
  • Barsi, J.A., Markham, B.L. and Pedelty, J.A., 2011, The operational land imager: spectral response and spectral uniformity., Proc. SPIE 8153, 81530G; doi:10.1117/12.895438

πŸ‘€ SEE ALSO πŸ‘€

GRASS Wiki page about Atmospheric correction

i.aster.toar, i.colors.enhance, i.landsat.toar, r.info, r.mapcalc, r.univar


πŸ‘‘ AUTHORS πŸ‘‘

Original version of the program for GRASS 5: Christo Zietsman, 13422863(at)sun.ac.za

Code clean-up and port to GRASS 6.3, 15.12.2006: Yann Chemin, ychemin(at)gmail.com

Documentation clean-up + IRS LISS sensor addition 5/2009: Markus Neteler, FEM, Italy

ASTER sensor addition 7/2009: Michael Perdue, Canada

AVNIR, IKONOS sensors addition 7/2010: Daniel Victoria, Anne Ghisla

RapidEye sensors addition 11/2010: Peter LΓΆwe, Anne Ghisla

VGT1 and VGT2 sensors addition from 6SV-1.1 sources, addition 07/2011: Alfredo Alessandrini, Anne Ghisla

Added Landsat 8 from NASA sources, addition 05/2014: Nikolaos Ves

Geoeye1 addition 7/2015: Marco Vizzari

Worldview3 addition 8/2016: Markus Neteler, mundialis.de, Germany

Sentinel-2A addition 12/2016: Markus Neteler, mundialis.de, Germany

Sentinel-2B addition 1/2018: Stefan Blumentrath, Zofie Cimburova, Norwegian Institute for Nature Research, NINA, Oslo, Norway

Worldview4 addition 12/2018: Markus Neteler, mundialis.de, Germany

AVIRIS/Hyperion addition 11/2023: Yann Chemin, SOPHIA Engineering, FR


πŸ’» SOURCE CODE πŸ’»

Available at: i.atcorr source code (history)

Accessed: Saturday Jan 17 05:41:49 2026

Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index


And that's a wrap, bestie!! πŸŽ€ This whole thing came from the GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, and we snagged it on Saturday Jan 17 05:41:49 2026 β€” version GRASS 8.4.2, page i.atcorr(1). Obsessed. Periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from