Albatross TutorialRead the IDL Documentation[ Introduction ] [ Albatross Display ] [ Using the Structure ] [ Using the Array ] [ Tips and Tricks ] |
IntroductionThis is a tutorial to explain how to use the Albatross software. The tutorial describes how to use the graphical software to browse the data, and also how to use the data returned by the software for additional analysis.NOTE: Each time an IDL command is shown in this tutorial, you can click on the IDL to get an image of what the command produces. |
Albatross DisplayAlbatross allows you to view parts of the Mariner Mars 1971 UVS footprint reflectance database in many different ways, using many different backrounds for the spectra.First, you must pick what you want to look at in the data set. This choice should either be a geographic region on the surface of Mars (picking an entire hemisphere is a valid choice), or a region of time from the dataset (you must know the DAS timestamps). To view a region (in this example: Lyot Crater at lat,lon = 51,330) IDL> albatross, location=[51,330], /no_motion, /mapping_only
After moving the mouse around you discover that orbit (REV) 182 is of interest... You want to re-display the image with only rev 182, and also zoom out to see if data farther south might be of interest. Generate your new map by typing: IDL> albatross, loc=[51,330], /no_mo, /map, rev=182, size=35
Finally, you decide to center the image on a specific footprint right next to Lyot Crater. Move the mouse next to the crater, and click. You now have 3 seconds to move the mouse back to your Terminal to type the command below. Read the DAS number off of the plot and/or Info Box. IDL> albatross, DAS=8119343, /no_mo, /map, rev=182, back='MDIM'
|
Albatross Data StructureThis section of the tutorial describes how to use the data structure returned by Albatross containing the footprints and ancillary information about each footprint. Run the following command:IDL> albatross, loc=[51,330], rev=182, wavelen=w, reflectance=r
If you type " IDL> help, r, /st" You will see that for
each of the footprints, you get a spectrum vector of length 317
(r.reflectance), the Earth time the footprint was taken
(r.sample_year, r.sample_doy, etc), the DAS (r.DAS), the
REV (r.REV), etc... There are a total of 51 elements to the structure
(51 pieces of information about each footprint).
Moving the mouse around the Albatross display, you see that footprint #86 is near Lyot Crater. To plot its spectra manually and display some information about it, type this: IDL> WINDOW, 0 IDL> plot, w, r[86].reflectance, psym=6, yr=[0.00,0.05] IDL> print, r[86].DAS, r[86].mu, r[86].mu0 8119348 0.957319 0.229030
IDL> good = where( r.motion_flag eq 0 ) IDL> r = r[ good ] If you are interested in the 3050 Angstrom (3.05 nm) wavelength: IDL> print, w[213]
3049.00 ; closest measurement was taken at 3049 Angstroms.
To plot the 3050 wavelength of every footprint:IDL> plot, r[*].reflectance[213]To plot the 3050 wavelenths of every footprint as a function of latitude: IDL> plot, r[*].latitude_F2, r[*].reflectance[213], psym=6 Finally, the following code snippet does this:
IDL> albatross, loc=[51,330], rev=182, wavelen=w, ref=r
IDL> window, 0
IDL> lats = r.latitude_f2
; translate from MM71 360W to IDL 180E
IDL> lons = lonxlate( r.longitude_f2, /from_360w, /to_180e )
IDL> map_set, mean(lats), mean(lons), /ortho, $
LIMIT=[ min(lats), min(lons), max(lats), max(lons) ]
IDL> loadct, 39
IDL> plots, lons, lats, $
color=BYTSCL( r.reflectance[213] ), $ ; scale to 255
/data, psym=4, thick=3
IDL> map_grid, glinestyle=0, /LABEL
|
Albatross Data ArrayThis section of the tutorial describes how to use the data array returned by Albatross containing the footprints and ancillary information about each footprint. Run the following command:IDL> albatross, loc=[51,330], rev=182, wavelen=w, array=a
Moving the mouse around the Albatross display, you see that footprint #86 is near Lyot Crater. To plot its spectra manually and display some information about it, type this: IDL> WINDOW, 0 IDL> plot, w, a[0:316,86], psym=6, yr=[0.00,0.05] IDL> DAS = LONG( a[ 317, 86 ] ) IDL> mu = a[ 319, 86 ] IDL> mu0 = a[ 320, 86 ] IDL> print, DAS, mu, mu0 8119348 0.957319 0.229030
IDL> good = where( a[ 333, * ] EQ 0 ) IDL> a = a[ *, good ] If you are interested in the 3050 Angstrom (3.05 nm) wavelength: IDL> print, w[213]
3049.00 ; closest measurement was taken at 3049 Angstroms.
To plot the 3050 wavelength of every footprint:IDL> data3050 = a[ 213, * ] IDL> plot, data3050To plot the 3050 wavelenths of every footprint as a function of latitude: IDL> lats = a[ 339, * ] IDL> data3050 = a[ 213, * ] IDL> plot, lats, data3050, psym=6 Finally, the following code snippet does this:
IDL> albatross, loc=[51,330], rev=182, wavelen=w, ref=r
IDL> window, 0
IDL> lats = a[ 339, * ]
; translate from MM71 360W to IDL 180E
IDL> lons = lonxlate( a[ 344, * ], /from_360w, /to_180e )
IDL> map_set, mean(lats), mean(lons), /ortho, $
LIMIT=[ min(lats), min(lons), max(lats), max(lons) ]
IDL> loadct, 39
IDL> plots, lons, lats, $
color=BYTSCL( a[ 213, * ] ), $ ; scale to 255
/data, psym=4, thick=3
IDL> map_grid, glinestyle=0, /LABEL
|
Albatross Tips and TricksIf you have color problems, type this as the first command after your start you IDL session:IDL> device, decomposed=0.
If you are going to issue IDL display commands (i.e. PLOT, TV) while Albatross is running, you should do the following:
You can control the plot parameters of Albatross via the IDL system variables (!x, !y). Each time you toggle from Ratio to Reflectance (via the r key), or make a new call to albatross
they are reset.
Type this at the command line after you have issued you Albatross command: IDL> !p.charsize=1.3 IDL> !p.charthick=2 IDL> !y.range = [ 0, 0.03 ] IDL> !y.ticks = 3Here is a before and after image. This tip is especially useful when plotting in Ratio mode, because the y-axis is not fixed unless you do so manually. Albatross loads its own colortables for the background image. This destroys the default colortable, so your external plotting commands will not work the way they normally do. |