Syntax highlighting of CRISM

The Compact Reconnaissance Imaging Spectrometer for Mars (CRISM) is a Visible and Near-Infrared (VNIR) imaging spectrometer onboard Mars Reconnaissance Orbiter (MRO), in orbit since 2006. It was built and tested by the Johns Hopkins University Applied Physics  Laboratory  under  the  supervision  of  principal  investigator  Scott  Murchie. The observations enable to have mineralogy information of the martian surface at a spatial resolution of ~20 to ~200 m/px.

<<TableOfContents()>>

== Data description ==
The CRISM instrument has two acquisition modes:

==== The targeted mode (multiangular pointing) ====
The  instrument  tracks the targets and takes 11 hyperspectral images (544 bands from 362 to 3920 nm)  at  different  emission  angles  due  to  the  rotation  of  the  detector  at ± 70°:  10  hyperspectral  images  taken  at  different  emission  angles  before  and  after  the  central  image  corresponding  to  the  close  nadir  image  (image  #07).  The  10  hyperspectral multi-angular  observations are reduced to a factor 10 compared to  the  spatial  resolution of  the  central  image. According  to  the  spatial  resolution  of  the central image, four  product types are associated to this acquisition mode. If  the  central  image  is  sampled  at  20  m/px,  the  associated  product  is  a  ''Full  Resolution Targeted'' observation (FRT). By reducing the spatial resolution of the  central  image  by  a  factor  2,  the  spatial  resolution  is  set  at  40  m/px  and  the  associated  products  are ''Half  Resolution  Short''  (HRS)  and ''Half  Resolution  Long'' (HRL) observations. An HRL sampled surface is twice as long as an HRS  observation.  Only  the  central  image  #07  is  processed  by  MarsSI  for  the  mineralogy identification. ATO observations are ''Along-Track Oversampled'' products resulting in incresing of the resolution up to 3 m/px.
||||||||<tablewidth="&quot" tablestyle="&quot; &amp; quot;  &amp; amp;  quot;   &amp; amp;  amp;   quot;    &amp; amp;  amp;   amp;    quot;     &amp; amp;  amp;   amp;    amp;     quot;      &amp; amp;  amp;   amp;    amp;     amp;      quot;       &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;             &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            amp;             quot;text-align:&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            amp;             amp;              quot;              center&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            amp;             amp;              quot;              ;              200px&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            amp;             amp;              quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            amp;             quot;              ;             &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            amp;             amp;             quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            amp;             quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;             ;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            amp;            quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;            ;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;           quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;           ;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;          quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;          ;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;         quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;         ;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;        quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;        ;       &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;       quot&amp; amp;  amp;   amp;    amp;     amp;      amp;       quot&amp; amp;  amp;   amp;    amp;     amp;      quot;       ;      &amp; amp;  amp;   amp;    amp;     amp;      amp;      quot&amp; amp;  amp;   amp;    amp;     amp;      quot&amp; amp;  amp;   amp;    amp;     quot;      ;     &amp; amp;  amp;   amp;    amp;     amp;     quot&amp; amp;  amp;   amp;    amp;     quot&amp; amp;  amp;   amp;    quot;     ;    &amp; amp;  amp;   amp;    amp;    quot&amp; amp;  amp;   amp;    quot&amp; amp;  amp;   quot;    ;   &amp; amp;  amp;   amp;   quot&amp; amp;  amp;   quot&amp; amp;  quot;   ;  &amp; amp;  amp;  quot&amp; amp;  quot&amp; quot;  ; &amp; amp; quot&amp; quot&quot; ;&amp;quot&quot"style="&quot; &amp; quot;  &amp; amp;  quot;   &amp; amp;  amp;   quot;    &amp; amp;  amp;   amp;    quot;     &amp; amp;  amp;   amp;    amp;     quot;      &amp; amp;  amp;   amp;    amp;     amp;      quot;       &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;text-align:center&amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;       &amp; amp;  amp;   amp;    amp;     amp;      quot;      &amp; amp;  amp;   amp;    amp;     quot;     &amp; amp;  amp;   amp;    quot;    &amp; amp;  amp;   quot;   &amp; amp;  quot;  &amp; quot; &quot;">'''Types of targeted observations''' ||
||<style="&quot; &amp; quot;  &amp; amp;  quot;   &amp; amp;  amp;   quot;    &amp; amp;  amp;   amp;    quot;     &amp; amp;  amp;   amp;    amp;     quot;      &amp; amp;  amp;   amp;    amp;     amp;      quot;       &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;text-align:center&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;       &amp; amp;  amp;   amp;    amp;     amp;      quot;      &amp; amp;  amp;   amp;    amp;     quot;     &amp; amp;  amp;   amp;    quot;    &amp; amp;  amp;   quot;   &amp; amp;  quot;  &amp; quot; &quot;">'''FRT''': 18 m/px ||<style="&quot; &amp; quot;  &amp; amp;  quot;   &amp; amp;  amp;   quot;    &amp; amp;  amp;   amp;    quot;     &amp; amp;  amp;   amp;    amp;     quot;      &amp; amp;  amp;   amp;    amp;     amp;      quot;       &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;text-align:center&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;       &amp; amp;  amp;   amp;    amp;     amp;      quot;      &amp; amp;  amp;   amp;    amp;     quot;     &amp; amp;  amp;   amp;    quot;    &amp; amp;  amp;   quot;   &amp; amp;  quot;  &amp; quot; &quot;">'''HRS''': 36 m/px ||<style="&quot; &amp; quot;  &amp; amp;  quot;   &amp; amp;  amp;   quot;    &amp; amp;  amp;   amp;    quot;     &amp; amp;  amp;   amp;    amp;     quot;      &amp; amp;  amp;   amp;    amp;     amp;      quot;       &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;text-align:center&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;       &amp; amp;  amp;   amp;    amp;     amp;      quot;      &amp; amp;  amp;   amp;    amp;     quot;     &amp; amp;  amp;   amp;    quot;    &amp; amp;  amp;   quot;   &amp; amp;  quot;  &amp; quot; &quot;">'''HRL''': 36 m/px ||<style="&quot; &amp; quot;  &amp; amp;  quot;   &amp; amp;  amp;   quot;    &amp; amp;  amp;   amp;    quot;     &amp; amp;  amp;   amp;    amp;     quot;      &amp; amp;  amp;   amp;    amp;     amp;      quot;       &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;text-align:center&amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           amp;            quot;            &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          amp;           quot;           &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         amp;          quot;          &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        amp;         quot;         &amp; amp;  amp;   amp;    amp;     amp;      amp;       amp;        quot;        &amp; amp;  amp;   amp;    amp;     amp;      amp;       quot;       &amp; amp;  amp;   amp;    amp;     amp;      quot;      &amp; amp;  amp;   amp;    amp;     quot;     &amp; amp;  amp;   amp;    quot;    &amp; amp;  amp;   quot;   &amp; amp;  quot;  &amp; quot; &quot;">'''ATO''': 3-12 m/px ||
|| {{attachment:FRT.png||width="200"}} || {{attachment:HRS.png||width="200"}} || {{attachment:HRL.png||width="200"}} || {{attachment:ATO.png||width="200"}} ||




==== The survey mode (nadir pointing) ====
This mode was designed to estimate key locations for further analysis with the targeted mode as it covers wider areas and produces lower spatial resolution data than the ''targeted ''mode. The  instrument acquires multispectral  images  using  fixed  pointing  where  the  emission  angle  is  set  at  0°  (with specific bands chosen over the 544 spectral bands, in order to identify principal  minerals).  There  are different  types  of  observations  using  this  acquisition  mode:

 * ''Multispectral Survey''  (MSP): 200 m/px and 55 channels
 * Hyperspectral Survey (HSP): 200 m/px and 154 channels
 * ''Multispectral Window'' (MSW): 100 m/px

== Data names ==
The CRISM naming convention is the following:

{{{
(ClassType)(ObsID)_(Counter)_(Activity)(SensorID)_(Filetype).(EXT)
}}}
 * `ClassType`: FRT, HRS, HRL, ATO, MSP, HSP, MSW, ...
 * `ObsID`: observation ID
 * `Counter`: image number of the ''targeted ''sequence (only the n°7 is used in MarsSI). In the ''survey ''mode, this corresponds to 1
 * `Activity`: subtype of product: IF stands for reflectance data (I/F unit), DE for ancillary  data (''e.g.'' latitude, longitude, incidence, emission, phase angle
 * `SensorID`: S detector (Short wavelenghts) or L (Long wavelenghts)
 * `Filetype`: type of dataset: TRR3 are calibrated data cubes, DDR1