<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://davinci.mars.asu.edu/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://davinci.mars.asu.edu/index.php?feed=atom&amp;namespace=0&amp;title=Special%3ANewPages</id>
		<title>DavinciWiki - New pages [en]</title>
		<link rel="self" type="application/atom+xml" href="https://davinci.mars.asu.edu/index.php?feed=atom&amp;namespace=0&amp;title=Special%3ANewPages"/>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=Special:NewPages"/>
		<updated>2026-05-30T03:15:35Z</updated>
		<subtitle>From DavinciWiki</subtitle>
		<generator>MediaWiki 1.19.6</generator>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=themis_rematm</id>
		<title>themis rematm</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=themis_rematm"/>
				<updated>2022-06-20T22:42:28Z</updated>
		
		<summary type="html">&lt;p&gt;Cye: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
themis_rematm ()  - Perform atmospheric correction for THEMIS image using TES based training area. Requires THEMIS radcorred radiance image saved as “IXXXXXXXX.cub”.&lt;br /&gt;
|&lt;br /&gt;
Arguments: A THEMIS image ID, TES pixels selected as training data from refine_tes_fp() function, mineral and atmosphere library.&lt;br /&gt;
 &lt;br /&gt;
Return Value: A structure containing surface emissivity and the corresponding atmospheric opaicity spectrum&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: themis_rematm(id, training, [,minlib&amp;amp;#61;STRING] [,atmlib&amp;amp;#61;STRING] [,tes1&amp;amp;#61;VAL] [,tes2&amp;amp;#61;VAL])&lt;br /&gt;
&lt;br /&gt;
'id' - A string of THEMIS id in the form of IXXXXXXXX&lt;br /&gt;
&lt;br /&gt;
'training' – selected TES pixels used as training data&lt;br /&gt;
&lt;br /&gt;
'minlib' – surface mineral library. Default $DV_SCRIPTS_FILES/themis_atm_support/THEMIS_ATM_mineral_library.hdf&lt;br /&gt;
&lt;br /&gt;
'atmlib' – 73 channel atmosphere library. Default $DV_SCRIPTS_FILES/themis_atm_support/TES_atmlib_73channel.hdf&lt;br /&gt;
&lt;br /&gt;
‘tes1’ – start index for TES data selection&lt;br /&gt;
&lt;br /&gt;
‘tes2’ – end index for TES data selection&lt;br /&gt;
|&lt;br /&gt;
 dv &amp;gt; training&lt;br /&gt;
    wkt: Text Buffer with 4 lines of text&lt;br /&gt;
        1: POLYGON((77.2657 18.0216,77.2665 18.008,......,77.2795 18.0224,77.2657 18.0216))&lt;br /&gt;
        2: POLYGON((77.2004 18.0145,77.2011 18.0013,......,77.2139 18.0153,77.2004 18.0145))&lt;br /&gt;
        3: POLYGON((77.2524 18.0603,77.2532 18.0464,......,77.2669 18.061,77.2524 18.0603))&lt;br /&gt;
        4: POLYGON((77.1878 18.0558,77.1886 18.0422,......,77.2018 18.0566,77.1878 18.0558))&lt;br /&gt;
    center: 2x4x1 array of int, bsq format [32 bytes]&lt;br /&gt;
    ul: 2x4x1 array of int, bsq format [32 bytes]&lt;br /&gt;
    lr: 2x4x1 array of int, bsq format [32 bytes]&lt;br /&gt;
    emi: 4x1x143 array of float, bsq format [2,288 bytes]&lt;br /&gt;
    emi73: 4x1x73 array of float, bsq format [1,168 bytes]&lt;br /&gt;
    ock: 4x1x1 array of int, bsq format [16 bytes]&lt;br /&gt;
    ick: 4x1x1 array of int, bsq format [16 bytes]&lt;br /&gt;
    det: 4x1x1 array of int, bsq format [16 bytes]&lt;br /&gt;
    tesx: 1x1x143 array of float, bsq format [572 bytes]&lt;br /&gt;
    tesx73: 1x1x73 array of float, bsq format [292 bytes]&lt;br /&gt;
    topo: 614x1818x1 array of short, bsq format [2,232,504 bytes]&lt;br /&gt;
    tes_label: 3x4x1 array of int, bsq format [48 bytes]&lt;br /&gt;
    roi: struct, 4 elements&lt;br /&gt;
        ullatlon: 2x1x1 array of double, bsq format [16 bytes]&lt;br /&gt;
        lrlatlon: 2x1x1 array of double, bsq format [16 bytes]&lt;br /&gt;
        ulxy: 2x1x1 array of int, bsq format [8 bytes]&lt;br /&gt;
        lrxy: 2x1x1 array of int, bsq format [8 bytes]&lt;br /&gt;
 dv&amp;gt;surf &amp;amp;#61; themis_rematm(id, training)&lt;br /&gt;
 doing broadband&lt;br /&gt;
 ..........................................................................................................................&lt;br /&gt;
 &lt;br /&gt;
 struct, 3 elements&lt;br /&gt;
    surf: 614x1818x9 array of float, bsq format [40,185,072 bytes]&lt;br /&gt;
    atm: 1x1x9 array of float, bsq format [36 bytes]&lt;br /&gt;
    xaxis: 1x1x9 array of float, bsq format [36 bytes]&lt;br /&gt;
 dv&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
* [[sma]]&lt;br /&gt;
* [[shape2georaster]]&lt;br /&gt;
* [[thm.emissivity]]&lt;br /&gt;
|&lt;br /&gt;
* [[themis_tes_overlay]]&lt;br /&gt;
* [[themis_atm_corr]]&lt;br /&gt;
* [[tes_fp]]&lt;br /&gt;
* [[refine_tes_fp]]&lt;br /&gt;
|&lt;br /&gt;
themis_atm.dvrc&lt;br /&gt;
|&lt;br /&gt;
1.00&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:User Defined Functions]]&lt;br /&gt;
[[category:themis_atm]]&lt;/div&gt;</summary>
		<author><name>Cye</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=refine_tes_fp</id>
		<title>refine tes fp</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=refine_tes_fp"/>
				<updated>2022-06-20T22:39:55Z</updated>
		
		<summary type="html">&lt;p&gt;Cye: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
refine_tes_fp ()  - Select TES data meeting the geography an d elevation criteria used as training area for THEMIS atmospheric correction. Requires THEMIS radiance image saved as “IXXXXXXXX.cub”.&lt;br /&gt;
|&lt;br /&gt;
Arguments: A THEMIS image ID, overlying TES pixels with coordinates and topography information from tes_fp() function, upper left and lower right corner of THEMIS targeted study area and training area, lines difference and elevation difference between targeted area and training area.&lt;br /&gt;
 &lt;br /&gt;
Return Value: A structure containing all TES data meeting select criteria used as training data for atmospheric correction&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: refine_tes_fp(id, tes, target_x1//target_y1, target_x2//target_y2, training_x1//training_y1, training_x2//training_y2 [,dis&amp;amp;#61;VAL] [,elv&amp;amp;#61;VAL])&lt;br /&gt;
&lt;br /&gt;
'id' - A string of THEMIS id in the form of IXXXXXXXX&lt;br /&gt;
&lt;br /&gt;
'tes' – overlying TES data with necessary information&lt;br /&gt;
&lt;br /&gt;
‘target_xy’ – upper left and lower right corner x/y for targeted study area&lt;br /&gt;
&lt;br /&gt;
‘training_xy’ – upper left and lower right corner x/y for training area&lt;br /&gt;
&lt;br /&gt;
‘dis’ – distance difference between targeted and training area in line number. Default is 1000&lt;br /&gt;
&lt;br /&gt;
‘elv’ – elevation difference between targeted and training area in meter. Default is 1000&lt;br /&gt;
|&lt;br /&gt;
 dv &amp;gt; tesfp&lt;br /&gt;
 struct, 13 elements&lt;br /&gt;
    wkt: Text Buffer with 365 lines of text&lt;br /&gt;
    center: 2x365x1 array of int, bsq format [2,920 bytes]&lt;br /&gt;
    ul: 2x365x1 array of int, bsq format [2,920 bytes]&lt;br /&gt;
    lr: 2x365x1 array of int, bsq format [2,920 bytes]&lt;br /&gt;
    topo: 614x1818x1 array of short, bsq format [2,232,504 bytes]&lt;br /&gt;
    tesx: 1x1x143 array of float, bsq format [572 bytes]&lt;br /&gt;
    tesx73: 1x1x73 array of float, bsq format [292 bytes]&lt;br /&gt;
    emi: 365x1x143 array of float, bsq format [208,780 bytes]&lt;br /&gt;
    emi73: 365x1x73 array of float, bsq format [106,580 bytes]&lt;br /&gt;
    ock: 365x1x1 array of short, bsq format [730 bytes]&lt;br /&gt;
    ick: 365x1x1 array of short, bsq format [730 bytes]&lt;br /&gt;
    det: 365x1x1 array of byte, bsq format [365 bytes]&lt;br /&gt;
    ock_ick_det: 4x365x1 array of int, bsq format [5,840 bytes]&lt;br /&gt;
 dv&amp;gt; training &amp;amp;#61; refine_tes_fp(“I38360010”, tesfp,246//336,444//630,192//663,264//720)&lt;br /&gt;
 struct, 14 elements&lt;br /&gt;
    wkt: Text Buffer with 4 lines of text&lt;br /&gt;
        1: POLYGON((77.2657 18.0216,77.2665 18.008,......,77.2795 18.0224,77.2657 18.0216))&lt;br /&gt;
        2: POLYGON((77.2004 18.0145,77.2011 18.0013,......,77.2139 18.0153,77.2004 18.0145))&lt;br /&gt;
        3: POLYGON((77.2524 18.0603,77.2532 18.0464,......,77.2669 18.061,77.2524 18.0603))&lt;br /&gt;
        4: POLYGON((77.1878 18.0558,77.1886 18.0422,......,77.2018 18.0566,77.1878 18.0558))&lt;br /&gt;
    center: 2x4x1 array of int, bsq format [32 bytes]&lt;br /&gt;
    ul: 2x4x1 array of int, bsq format [32 bytes]&lt;br /&gt;
    lr: 2x4x1 array of int, bsq format [32 bytes]&lt;br /&gt;
    emi: 4x1x143 array of float, bsq format [2,288 bytes]&lt;br /&gt;
    emi73: 4x1x73 array of float, bsq format [1,168 bytes]&lt;br /&gt;
    ock: 4x1x1 array of int, bsq format [16 bytes]&lt;br /&gt;
    ick: 4x1x1 array of int, bsq format [16 bytes]&lt;br /&gt;
    det: 4x1x1 array of int, bsq format [16 bytes]&lt;br /&gt;
    tesx: 1x1x143 array of float, bsq format [572 bytes]&lt;br /&gt;
    tesx73: 1x1x73 array of float, bsq format [292 bytes]&lt;br /&gt;
    topo: 614x1818x1 array of short, bsq format [2,232,504 bytes]&lt;br /&gt;
    tes_label: 3x4x1 array of int, bsq format [48 bytes]&lt;br /&gt;
    roi: struct, 4 elements&lt;br /&gt;
        ullatlon: 2x1x1 array of double, bsq format [16 bytes]&lt;br /&gt;
        lrlatlon: 2x1x1 array of double, bsq format [16 bytes]&lt;br /&gt;
        ulxy: 2x1x1 array of int, bsq format [8 bytes]&lt;br /&gt;
        lrxy: 2x1x1 array of int, bsq format [8 bytes]&lt;br /&gt;
 dv&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
[[Image:refine_tes_fp.png|200px]]&lt;br /&gt;
|&lt;br /&gt;
* [[proj_geocoord]]&lt;br /&gt;
|&lt;br /&gt;
* [[themis_tes_overlay]]&lt;br /&gt;
* [[themis_atm_corr]]&lt;br /&gt;
* [[tes_fp]]&lt;br /&gt;
* [[themis_rematm]]&lt;br /&gt;
|&lt;br /&gt;
themis_atm.dvrc&lt;br /&gt;
|&lt;br /&gt;
1.00&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:User Defined Functions]]&lt;br /&gt;
[[category:themis_atm]]&lt;/div&gt;</summary>
		<author><name>Cye</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=tes_fp</id>
		<title>tes fp</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=tes_fp"/>
				<updated>2022-06-20T22:35:57Z</updated>
		
		<summary type="html">&lt;p&gt;Cye: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
tes_fp ()  - Get coordinates and topography information of TES data overlying a THEMIS image. Requires THEMIS radiance image saved as “IXXXXXXXX.cub”.&lt;br /&gt;
|&lt;br /&gt;
Arguments: A THEMIS image ID, overlying TES pixels from themis_tes_overlay() function&lt;br /&gt;
 &lt;br /&gt;
Return Value: A structure containing all TES data with additional coordinate and topography information for atmospheric correction&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: tes_fp(id, tes)&lt;br /&gt;
&lt;br /&gt;
'id' - A string of THEMIS id in the form of IXXXXXXXX&lt;br /&gt;
&lt;br /&gt;
'tes' – overlying TES data with necessary information&lt;br /&gt;
|&lt;br /&gt;
 dv &amp;gt; tes&lt;br /&gt;
 struct, 9 elements&lt;br /&gt;
    wkt: Text Buffer with 365 lines of text&lt;br /&gt;
    tesx: 1x1x143 array of float, bsq format [572 bytes]&lt;br /&gt;
    tesx73: 1x1x73 array of float, bsq format [292 bytes]&lt;br /&gt;
    emi: 365x1x143 array of float, bsq format [208,780 bytes]&lt;br /&gt;
    emi73: 365x1x73 array of float, bsq format [106,580 bytes]&lt;br /&gt;
    ock: 365x1x1 array of short, bsq format [730 bytes]&lt;br /&gt;
    ick: 365x1x1 array of short, bsq format [730 bytes]&lt;br /&gt;
    det: 365x1x1 array of byte, bsq format [365 bytes]&lt;br /&gt;
    ock_ick_det: 4x365x1 array of int, bsq format [5,840 bytes] &lt;br /&gt;
 dv&amp;gt; tesfp &amp;amp;#61; tes_fp(“I38360010”, tes)&lt;br /&gt;
 struct, 13 elements&lt;br /&gt;
    wkt: Text Buffer with 365 lines of text&lt;br /&gt;
    center: 2x365x1 array of int, bsq format [2,920 bytes]&lt;br /&gt;
    ul: 2x365x1 array of int, bsq format [2,920 bytes]&lt;br /&gt;
    lr: 2x365x1 array of int, bsq format [2,920 bytes]&lt;br /&gt;
    topo: 614x1818x1 array of short, bsq format [2,232,504 bytes]&lt;br /&gt;
    tesx: 1x1x143 array of float, bsq format [572 bytes]&lt;br /&gt;
    tesx73: 1x1x73 array of float, bsq format [292 bytes]&lt;br /&gt;
    emi: 365x1x143 array of float, bsq format [208,780 bytes]&lt;br /&gt;
    emi73: 365x1x73 array of float, bsq format [106,580 bytes]&lt;br /&gt;
    ock: 365x1x1 array of short, bsq format [730 bytes]&lt;br /&gt;
    ick: 365x1x1 array of short, bsq format [730 bytes]&lt;br /&gt;
    det: 365x1x1 array of byte, bsq format [365 bytes]&lt;br /&gt;
    ock_ick_det: 4x365x1 array of int, bsq format [5,840 bytes]&lt;br /&gt;
 dv&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
* [[proj_geocoord]]&lt;br /&gt;
* [[get_map]]&lt;br /&gt;
|&lt;br /&gt;
* [[themis_tes_overlay]]&lt;br /&gt;
* [[themis_atm_corr]]&lt;br /&gt;
* [[refine_tes_fp]]&lt;br /&gt;
* [[themis_rematm]]&lt;br /&gt;
|&lt;br /&gt;
themis_atm.dvrc&lt;br /&gt;
|&lt;br /&gt;
1.00&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:User Defined Functions]]&lt;br /&gt;
[[category:themis_atm]]&lt;/div&gt;</summary>
		<author><name>Cye</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=themis_atm_corr</id>
		<title>themis atm corr</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=themis_atm_corr"/>
				<updated>2022-06-20T22:33:39Z</updated>
		
		<summary type="html">&lt;p&gt;Cye: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
themis_atm_corr()  - Perform atmospheric correction for THEMIS radcorred radiance images on TES covered area automatically. Requires a THEMIS radiance image after standard processing steps saved as “IXXXXXXXX.cub”.&lt;br /&gt;
|&lt;br /&gt;
Arguments: A THEMIS image ID with radcorred radiance image, overlying TES pixels from themis_tes_overlay() function, atmosphere and mineral library&lt;br /&gt;
 &lt;br /&gt;
Return Value: A structure containing surface emissivity and the corresponding atmospheric opaicity spectrum for TES covered area&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: themis_atm_corr(id, tes [,minlib&amp;amp;#61;STRING] [,atmlib&amp;amp;#61;STRING])&lt;br /&gt;
&lt;br /&gt;
'id' - A string of THEMIS id in the form of IXXXXXXXX&lt;br /&gt;
&lt;br /&gt;
'tes' – overlying TES data with necessary information&lt;br /&gt;
&lt;br /&gt;
'minlib' – surface mineral library. Default $DV_SCRIPTS_FILES/themis_atm_support/THEMIS_ATM_mineral_library.hdf&lt;br /&gt;
&lt;br /&gt;
'atmlib' – 73 channel atmosphere library. Default $DV_SCRIPTS_FILES/themis_atm_support/TES_atmlib_73channel.hdf&lt;br /&gt;
|&lt;br /&gt;
 dv &amp;gt; tes&lt;br /&gt;
 struct, 9 elements&lt;br /&gt;
    wkt: Text Buffer with 1104 lines of text&lt;br /&gt;
    tesx: 1x1x143 array of float, bsq format [572 bytes]&lt;br /&gt;
    tesx73: 1x1x73 array of float, bsq format [292 bytes]&lt;br /&gt;
    emi: 1104x1x143 array of float, bsq format [631,488 bytes]&lt;br /&gt;
    emi73: 1104x1x73 array of float, bsq format [322,368 bytes]&lt;br /&gt;
    ock: 1104x1x1 array of short, bsq format [2,208 bytes]&lt;br /&gt;
    ick: 1104x1x1 array of short, bsq format [2,208 bytes]&lt;br /&gt;
    det: 1104x1x1 array of byte, bsq format [1,104 bytes]&lt;br /&gt;
    ock_ick_det: 4x1104x1 array of int, bsq format [17,664 bytes]&lt;br /&gt;
 dv&amp;gt; surf &amp;amp;#61; themis_atm_corr(“I38360010”, tes)&lt;br /&gt;
 struct, 4 elements&lt;br /&gt;
    atm: 1104x1x9 array of float, bsq format [13,140 bytes]&lt;br /&gt;
    surf: 614x1818x9 array of float, bsq format [40,185,072 bytes]&lt;br /&gt;
    tes_surf: 1104x1x73 array of double, bsq format [213,160 bytes]&lt;br /&gt;
    xaxis: 1x1x9 array of float, bsq format [36 bytes]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
* [[sma]]&lt;br /&gt;
* [[shape2georaster]]&lt;br /&gt;
* [[thm.themis_emissivity]]&lt;br /&gt;
|&lt;br /&gt;
* [[themis_tes_overlay]]&lt;br /&gt;
* [[tes_fp]]&lt;br /&gt;
* [[refine_tes_fp]]&lt;br /&gt;
* [[themis_rematm]]&lt;br /&gt;
|&lt;br /&gt;
themis_atm.dvrc&lt;br /&gt;
|&lt;br /&gt;
1.00&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:User Defined Functions]]&lt;br /&gt;
[[category:themis_atm]]&lt;/div&gt;</summary>
		<author><name>Cye</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=themis_tes_overlay</id>
		<title>themis tes overlay</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=themis_tes_overlay"/>
				<updated>2022-06-20T22:29:03Z</updated>
		
		<summary type="html">&lt;p&gt;Cye: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
themis_tes_overlay()  - Search TES pixels over a THEMIS image meeting specific select criteria through standard mysql queries on the TES database at the MSFF. Requires a THEMIS radiance image after standard processing steps saved as “IXXXXXXXX.cub” for the image display.&lt;br /&gt;
|&lt;br /&gt;
Arguments: A THEMIS image ID&lt;br /&gt;
 &lt;br /&gt;
Return Value: A structure containing all TES data with information including each TES polygon coordinates, emissivity, ock, ick, detector&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: themis_tes_overlay(id [,auto&amp;amp;#61;0/1] [,ock_start&amp;amp;#61;VAL] [,ock_end&amp;amp;#61;VAL] [,minlat&amp;amp;#61;VAL] [,maxlat&amp;amp;#61;VAL] [,em_angle&amp;amp;#61;VAL] [,in_angle&amp;amp;#61;VAL] [,temperature&amp;amp;#61;VAL] [,albedo&amp;amp;#61;VAL] [,albedo&amp;amp;#61;VAL] [,dust&amp;amp;#61;VAL] [,waterice&amp;amp;#61;VAL])&lt;br /&gt;
&lt;br /&gt;
'id' - A string of THEMIS id in the form of IXXXXXXXX&lt;br /&gt;
&lt;br /&gt;
'auto' – use pre-defined TES select criteria for semi-automatic (0) or fully automated (1) THEMIES atmospheric correction. Default is auto&amp;amp;#61;1&lt;br /&gt;
&lt;br /&gt;
'ock_start' – minimum orbit counter keeper number. Default is 1583&lt;br /&gt;
&lt;br /&gt;
'ock_end' – maximum orbit counter keeper number. Default is 7000 for auto&amp;amp;#61;0, or 10000 for auto&amp;amp;#61;1&lt;br /&gt;
&lt;br /&gt;
'minlat' – minimum latitude. Default is -60&lt;br /&gt;
&lt;br /&gt;
'maxlat' – maximum latitude. Default is 60&lt;br /&gt;
&lt;br /&gt;
'em_angle' – maximum emission angle. Default is 10&lt;br /&gt;
&lt;br /&gt;
'in_angle' – maximum incidence angle. Default is 80&lt;br /&gt;
&lt;br /&gt;
'temperatuer' – maximum target temperature. Default is 255 for auto&amp;amp;#61;0, or 250 for auto&amp;amp;#61;1&lt;br /&gt;
&lt;br /&gt;
'albedo' – maximum lambert albedo. Default is 0.2 for auto&amp;amp;#61;0, or 0.25 for auto&amp;amp;#61;1&lt;br /&gt;
&lt;br /&gt;
'dust' – maximum total dust opacity. Default is 0.15 for auto&amp;amp;#61;0, or 0.25 for auto&amp;amp;#61;1&lt;br /&gt;
&lt;br /&gt;
'waterice' – maximum total water ice opacity. Default is 0.08 for auto&amp;amp;#61;0, or 0.15 for auto&amp;amp;#61;1&lt;br /&gt;
|&lt;br /&gt;
Usage 1: default auto&amp;amp;#61;1 for relative lower quality TES selection with larger spatial coverage used for THEMIS automatic atmospheric correction&lt;br /&gt;
 dv&amp;gt; out&amp;amp;#61;themis_tes_overlay(&amp;quot;I38360010&amp;quot;)&lt;br /&gt;
 Downloading.done.&lt;br /&gt;
 Read TEXT file: 1 lines&lt;br /&gt;
 Downloading.done.&lt;br /&gt;
 Read TEXT file: 1 lines&lt;br /&gt;
 Downloading.......done. &lt;br /&gt;
 .......................&lt;br /&gt;
 struct, 9 elements&lt;br /&gt;
    wkt: Text Buffer with 1104 lines of text&lt;br /&gt;
    tesx: 1x1x143 array of float, bsq format [572 bytes]&lt;br /&gt;
    tesx73: 1x1x73 array of float, bsq format [292 bytes]&lt;br /&gt;
    emi: 1104x1x143 array of float, bsq format [631,488 bytes]&lt;br /&gt;
    emi73: 1104x1x73 array of float, bsq format [322,368 bytes]&lt;br /&gt;
    ock: 1104x1x1 array of short, bsq format [2,208 bytes]&lt;br /&gt;
    ick: 1104x1x1 array of short, bsq format [2,208 bytes]&lt;br /&gt;
    det: 1104x1x1 array of byte, bsq format [1,104 bytes]&lt;br /&gt;
    ock_ick_det: 4x1104x1 array of int, bsq format [17,664 bytes]&lt;br /&gt;
 dv&amp;gt; &lt;br /&gt;
Usage 2: set auto&amp;amp;#61;0 for high quality TES selection used for traditional THEMIS traditional atmospheric correction&lt;br /&gt;
 dv&amp;gt; out&amp;amp;#61;themis_tes_overlay(&amp;quot;I38360010&amp;quot;,auto&amp;amp;#61;0)&lt;br /&gt;
 Downloading.done.&lt;br /&gt;
 Read TEXT file: 1 lines&lt;br /&gt;
 Downloading.done.&lt;br /&gt;
 Read TEXT file: 1 lines&lt;br /&gt;
 Downloading.......done. &lt;br /&gt;
 .......................&lt;br /&gt;
 struct, 9 elements&lt;br /&gt;
    wkt: Text Buffer with 365 lines of text&lt;br /&gt;
    tesx: 1x1x143 array of float, bsq format [572 bytes]&lt;br /&gt;
    tesx73: 1x1x73 array of float, bsq format [292 bytes]&lt;br /&gt;
    emi: 365x1x143 array of float, bsq format [208,780 bytes]&lt;br /&gt;
    emi73: 365x1x73 array of float, bsq format [106,580 bytes]&lt;br /&gt;
    ock: 365x1x1 array of short, bsq format [730 bytes]&lt;br /&gt;
    ick: 365x1x1 array of short, bsq format [730 bytes]&lt;br /&gt;
    det: 365x1x1 array of byte, bsq format [365 bytes]&lt;br /&gt;
    ock_ick_det: 4x365x1 array of int, bsq format [5,840 bytes] &lt;br /&gt;
 dv&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
[[Image:themis_tes_overlay_1.png|200px]] [[Image:themis_tes_overlay_2.png|200px]]&lt;br /&gt;
|&lt;br /&gt;
*[[themis3db]]&lt;br /&gt;
*[[read_lines]]&lt;br /&gt;
*[[load_csv]]&lt;br /&gt;
|&lt;br /&gt;
*[[themis_atm_corr]]&lt;br /&gt;
*[[tes_fp]]&lt;br /&gt;
*[[refine_tes_fp]]&lt;br /&gt;
*[[themis_rematm]]&lt;br /&gt;
|&lt;br /&gt;
themis_atm.dvrc&lt;br /&gt;
|&lt;br /&gt;
1.00&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:User Defined Functions]]&lt;br /&gt;
[[category:themis_atm]]&lt;/div&gt;</summary>
		<author><name>Cye</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=dec2hex</id>
		<title>dec2hex</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=dec2hex"/>
				<updated>2020-06-27T17:58:44Z</updated>
		
		<summary type="html">&lt;p&gt;Jhill: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|Convert decimal to hex&lt;br /&gt;
|&lt;br /&gt;
Arguments: An integer number&lt;br /&gt;
 &lt;br /&gt;
Return Value: A hex string&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: dec2hex(dec)&lt;br /&gt;
 &lt;br /&gt;
'dec' - an integer number&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; dec2hex(65535)&lt;br /&gt;
 &amp;quot;FFFF&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; dec2hex(1048575)&lt;br /&gt;
 &amp;quot;FFFFF&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; dec2hex(16777215)&lt;br /&gt;
 &amp;quot;FFFFFF&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; dec2hex(65280)&lt;br /&gt;
 &amp;quot;FF00&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; dec2hex(16711935)&lt;br /&gt;
 &amp;quot;FF00FF&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; dec2hex(0)&lt;br /&gt;
 &amp;quot;0&amp;quot;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[length]]&lt;br /&gt;
*[[isnum]]&lt;br /&gt;
|&lt;br /&gt;
*[[radtodeg]]&lt;br /&gt;
*[[degtorad]]&lt;br /&gt;
*[[hex2dec]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
1.28&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:User Defined Functions]]&lt;br /&gt;
[[category:Math]]&lt;/div&gt;</summary>
		<author><name>Jhill</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=Download_VM</id>
		<title>Download VM</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=Download_VM"/>
				<updated>2019-01-03T17:01:39Z</updated>
		
		<summary type="html">&lt;p&gt;Npiace: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Davinci is available in a pre-made CentOS 6 virtual machine image, which also has KRC installed (http://krc.mars.asu.edu)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*The link to download the virtual machine is: https://davinci.mars.asu.edu/vm/davinci-2.22_r1.ova&lt;br /&gt;
**Right Click on the link above and select Save-As&lt;br /&gt;
&lt;br /&gt;
*You will need to download and install VirtualBox https://www.virtualbox.org/wiki/Downloads&lt;br /&gt;
**''It may require &amp;quot;Microsoft Visual C++ 2019 Redistributable&amp;quot;, available here:  https://aka.ms/vs/17/release/vc_redist.x64.exe''&lt;br /&gt;
**VirtualBox needs CPU virtualization features, which are available on most modern machines. Generally these features are enabled. if not, these can be enabled in the system BIOS (look for online articles using search terms: &amp;quot;virtualbox bios settings enable virtualization&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
*Once installed, open VirtualBox, and click the &amp;quot;Import&amp;quot; Icon at the top of the screen (or go to File -&amp;gt; Import Virtual Appliance).  Select the OVA file linked above.&lt;br /&gt;
**Click &amp;quot;Next&amp;quot; until the dialog goes away&lt;br /&gt;
*Double click the new Virtual Machine in the left part of the VirtualBox window.  A new window should open and eventually you'll see a desktop with a Davinci Icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
If needed, the root password for the VM is &amp;lt;pre&amp;gt;davinci&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Npiace</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc_planetary_flux_table</id>
		<title>krc planetary flux table</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc_planetary_flux_table"/>
				<updated>2018-09-08T06:30:18Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc_planetary_flux_porb</id>
		<title>krc planetary flux porb</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc_planetary_flux_porb"/>
				<updated>2018-09-08T06:30:10Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc_eclipse</id>
		<title>krc eclipse</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc_eclipse"/>
				<updated>2018-09-08T06:29:58Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc_cond_gas</id>
		<title>krc cond gas</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc_cond_gas"/>
				<updated>2018-09-08T06:29:48Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=generic_porb</id>
		<title>generic porb</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=generic_porb"/>
				<updated>2018-09-08T06:29:39Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=porb</id>
		<title>porb</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=porb"/>
				<updated>2018-09-08T06:29:30Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc_stability_flag</id>
		<title>krc stability flag</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc_stability_flag"/>
				<updated>2018-09-08T06:29:22Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc_evalN2</id>
		<title>krc evalN2</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc_evalN2"/>
				<updated>2018-09-08T06:29:11Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc_evalN1</id>
		<title>krc evalN1</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc_evalN1"/>
				<updated>2018-09-08T06:29:03Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc_get_key_value</id>
		<title>krc get key value</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc_get_key_value"/>
				<updated>2018-09-08T06:28:52Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc_process_input</id>
		<title>krc process input</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc_process_input"/>
				<updated>2018-09-08T06:28:40Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=krc</id>
		<title>krc</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=krc"/>
				<updated>2018-09-08T06:27:15Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Function}}    Category:NEED Category:Thermal Model&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:NEED]]&lt;br /&gt;
[[Category:Thermal Model]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=tau_24_32_clim</id>
		<title>tau 24 32 clim</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=tau_24_32_clim"/>
				<updated>2018-09-05T07:18:27Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;category:NEED&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:NEED]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=ASU2017</id>
		<title>ASU2017</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=ASU2017"/>
				<updated>2017-08-21T20:00:57Z</updated>
		
		<summary type="html">&lt;p&gt;Npiace: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;font-size:2em;margin-top:1.5em;&amp;quot;&amp;gt;This page is for Dr. Christensen's classes to download a pre-built virtual machine with Davinci installed.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:1.45em&amp;quot;&amp;gt;&lt;br /&gt;
You will need to download and install VirtualBox https://www.virtualbox.org/wiki/Downloads&lt;br /&gt;
&lt;br /&gt;
The link to download the virtual machine is: http://davinci.mars.asu.edu/vm/davinci-2.18.ova&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Npiace</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=int64</id>
		<title>int64</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=int64"/>
				<updated>2016-11-18T20:08:34Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Convert an object to int64 format.&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any three dimensional numeric array&lt;br /&gt;
 &lt;br /&gt;
Return Value: The array converted into int64 (-9223372036854775807, 9223372036854775807)&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: int64(object &amp;amp;#61; VAL)&lt;br /&gt;
 &lt;br /&gt;
The int64() function copies and converts an object to int64 format. Any values above or below the maximum representable values of -92233720368547758078, 9223372036854775807 are set to the nearest representable value. This function is equivalent to format(object&amp;amp;#61;VAL, format&amp;amp;#61;int64).&lt;br /&gt;
 &lt;br /&gt;
All real values are truncated.&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
 dv&amp;gt; a&lt;br /&gt;
 4x3x2 array of double, bsq format [192 bytes]&lt;br /&gt;
 -5.00000e+09    -11.0000    -10.0000    -9.00000&lt;br /&gt;
 -8.00000    -7.00000    -6.00000    -5.00000&lt;br /&gt;
 -4.00000    -3.00000    -2.00000    -1.00000&lt;br /&gt;
 &lt;br /&gt;
 0.00000    1.00000    2.00000    3.00000&lt;br /&gt;
 4.00000    5.00000    6.00000    7.00000&lt;br /&gt;
 8.00000    9.00000    10.0000    5.00000e+09&lt;br /&gt;
 dv&amp;gt; int64(a)&lt;br /&gt;
 4x3x2 array of int64, bsq format [192 bytes]&lt;br /&gt;
 -5000000000    -11    -10    -9&lt;br /&gt;
 -8      -7     -6     -5&lt;br /&gt;
 -4      -3     -2     -1&lt;br /&gt;
 &lt;br /&gt;
 0       1      2     3&lt;br /&gt;
 4       5      6     7&lt;br /&gt;
 8       9      10    5000000000&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[uint8]]&lt;br /&gt;
*[[uint16]]&lt;br /&gt;
*[[uint32]]&lt;br /&gt;
*[[uint64]]&lt;br /&gt;
*[[int8]]&lt;br /&gt;
*[[int16]]&lt;br /&gt;
*[[int32]]&lt;br /&gt;
*[[float]]&lt;br /&gt;
*[[double]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Format Conversion]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=int32</id>
		<title>int32</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=int32"/>
				<updated>2016-11-18T20:04:33Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: Add int32 for 2.18&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Convert an object to int32 format.  Identical to deprecated [[int]].&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any three dimensional numeric array&lt;br /&gt;
 &lt;br /&gt;
Return Value: The array converted into int32 (-2147483648, 2147483647)&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: int32(object &amp;amp;#61; VAL)&lt;br /&gt;
 &lt;br /&gt;
The int32() function copies and converts an object to int32 format. Any values above or below the maximum representable values of -2147483648, 2147483647 are set to the nearest representable value. This function is equivalent to format(object&amp;amp;#61;VAL, format&amp;amp;#61;int32).&lt;br /&gt;
 &lt;br /&gt;
All values are truncated.&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
 dv&amp;gt; a&lt;br /&gt;
 4x3x2 array of double, bsq format [192 bytes]&lt;br /&gt;
 -5.00000e+09    -11.0000    -10.0000    -9.00000&lt;br /&gt;
 -8.00000    -7.00000    -6.00000    -5.00000&lt;br /&gt;
 -4.00000    -3.00000    -2.00000    -1.00000&lt;br /&gt;
 &lt;br /&gt;
 0.00000    1.00000    2.00000    3.00000&lt;br /&gt;
 4.00000    5.00000    6.00000    7.00000&lt;br /&gt;
 8.00000    9.00000    10.0000    5.00000e+09&lt;br /&gt;
 dv&amp;gt; int32(a)&lt;br /&gt;
 4x3x2 array of int32, bsq format [96 bytes]&lt;br /&gt;
 -2147483648    -11    -10    -9&lt;br /&gt;
 -8      -7     -6     -5&lt;br /&gt;
 -4      -3     -2     -1&lt;br /&gt;
 &lt;br /&gt;
 0       1      2      3&lt;br /&gt;
 4       5      6      7&lt;br /&gt;
 8       9      10     2147483647&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[uint8]]&lt;br /&gt;
*[[uint16]]&lt;br /&gt;
*[[uint32]]&lt;br /&gt;
*[[uint64]]&lt;br /&gt;
*[[int8]]&lt;br /&gt;
*[[int16]]&lt;br /&gt;
*[[int64]]&lt;br /&gt;
*[[float]]&lt;br /&gt;
*[[double]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Format Conversion]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=int16</id>
		<title>int16</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=int16"/>
				<updated>2016-11-18T19:56:46Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Convert an object to int16 format. Identical to deprecated [[short]].&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any three dimensional numeric array&lt;br /&gt;
 &lt;br /&gt;
Return Value: The array converted into int16 (-32768, 32767)&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: int16(object &amp;amp;#61; VAL)&lt;br /&gt;
 &lt;br /&gt;
The int16() function copies and converts an object to int16 format. Any values above or below the maximum representable values of -32768, 32767 are set to the nearest representable value. This function is equivalent to format(object&amp;amp;#61;VAL, format&amp;amp;#61;int16).&lt;br /&gt;
 &lt;br /&gt;
All values are truncated.&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
 dv&amp;gt; a&lt;br /&gt;
 4x3x2 array of double, bsq format [192 bytes]&lt;br /&gt;
 -5.00000e+09    -11.0000    -10.0000    -9.00000&lt;br /&gt;
 -8.00000    -7.00000    -6.00000    -5.00000&lt;br /&gt;
 -4.00000    -3.00000    -2.00000    -1.00000&lt;br /&gt;
 &lt;br /&gt;
 0.00000    1.00000    2.00000    3.00000&lt;br /&gt;
 4.00000    5.00000    6.00000    7.00000&lt;br /&gt;
 8.00000    9.00000    10.0000    5.00000e+09&lt;br /&gt;
 dv&amp;gt; int16(a)&lt;br /&gt;
 4x3x2 array of int16, bsq format [48 bytes]&lt;br /&gt;
 -32768 -11   -10   -9&lt;br /&gt;
 -8     -7    -6    -5&lt;br /&gt;
 -4     -3    -2    -1&lt;br /&gt;
 &lt;br /&gt;
 0      1     2     3&lt;br /&gt;
 4      5     6     7&lt;br /&gt;
 8      9     10    32767&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[uint8]]&lt;br /&gt;
*[[uint16]]&lt;br /&gt;
*[[uint32]]&lt;br /&gt;
*[[uint64]]&lt;br /&gt;
*[[int8]]&lt;br /&gt;
*[[int32]]&lt;br /&gt;
*[[int64]]&lt;br /&gt;
*[[float]]&lt;br /&gt;
*[[double]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Format Conversion]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=int8</id>
		<title>int8</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=int8"/>
				<updated>2016-11-18T19:53:04Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: Add int8 for 2.18&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Convert an object to int8 format.&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any three dimensional numeric array&lt;br /&gt;
 &lt;br /&gt;
Return Value: The array converted into int8 (-128 - 127)&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: int8(object &amp;amp;#61; VAL)&lt;br /&gt;
 &lt;br /&gt;
The int8() function copies and converts an object to int8 format. Any values above or below the maximum representable values of -128, 127 are set to the nearest representable value. This function is equivalent to format(object&amp;amp;#61;VAL, format&amp;amp;#61;int8).&lt;br /&gt;
 &lt;br /&gt;
All values are truncated.&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
 dv&amp;gt; a&lt;br /&gt;
 4x3x2 array of double, bsq format [192 bytes]&lt;br /&gt;
 -5.00000e+09    -11.0000    -10.0000    -9.00000&lt;br /&gt;
 -8.00000    -7.00000    -6.00000    -5.00000&lt;br /&gt;
 -4.00000    -3.00000    -2.00000    -1.00000&lt;br /&gt;
 &lt;br /&gt;
 0.00000    1.00000    2.00000    3.00000&lt;br /&gt;
 4.00000    5.00000    6.00000    7.00000&lt;br /&gt;
 8.00000    9.00000    10.0000    5.00000e+09&lt;br /&gt;
 dv&amp;gt; int8(a)&lt;br /&gt;
 4x3x2 array of int8, bsq format [24 bytes]&lt;br /&gt;
 -128    -11    -10    -9&lt;br /&gt;
 -8    -7    -6    -5&lt;br /&gt;
 -4    -3    -2    -1&lt;br /&gt;
 &lt;br /&gt;
 0    1    2    3&lt;br /&gt;
 4    5    6    7&lt;br /&gt;
 8    9    10    127&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[uint8]]&lt;br /&gt;
*[[uint16]]&lt;br /&gt;
*[[uint32]]&lt;br /&gt;
*[[uint64]]&lt;br /&gt;
*[[int16]]&lt;br /&gt;
*[[int32]]&lt;br /&gt;
*[[int64]]&lt;br /&gt;
*[[float]]&lt;br /&gt;
*[[double]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Format Conversion]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=uint64</id>
		<title>uint64</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=uint64"/>
				<updated>2016-11-18T19:44:00Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: Add uint64 for 2.18&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Convert an object to uint32 format.&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any three dimensional numeric array&lt;br /&gt;
 &lt;br /&gt;
Return Value: The array converted into uint64 (0 - 18446744073709551615)&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: uint64(object &amp;amp;#61; VAL)&lt;br /&gt;
 &lt;br /&gt;
The uint64() function copies and converts an object to uint64 format. Any values above or below the maximum representable values of 0, 18446744073709551615 are set to the nearest representable value. This function is equivalent to format(object&amp;amp;#61;VAL, format&amp;amp;#61;uint64).&lt;br /&gt;
 &lt;br /&gt;
All values are truncated.&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
 dv&amp;gt; a&lt;br /&gt;
 4x3x2 array of float, bsq format [96 bytes]&lt;br /&gt;
 0.00000    1.00000    2.00000    3.00000&lt;br /&gt;
 4.00000    5.00000    6.00000    7.00000&lt;br /&gt;
 8.00000    9.00000    10.0000    11.0000&lt;br /&gt;
&lt;br /&gt;
 0.567142    0.216034    0.0258639   0.0750542&lt;br /&gt;
 0.629196    0.118883    0.268471    0.906492&lt;br /&gt;
 0.389246    0.0442709   0.146869    0.932501&lt;br /&gt;
 dv&amp;gt; b&amp;amp;#61;uint32(a)&lt;br /&gt;
 4x3x2 array of uint64, bsq format [192 bytes]&lt;br /&gt;
 0    1    2    3&lt;br /&gt;
 4    5    6    7&lt;br /&gt;
 8    9    10   11&lt;br /&gt;
 &lt;br /&gt;
 0    0    0    0&lt;br /&gt;
 0    0    0    0&lt;br /&gt;
 0    0    0    0&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[uint8]]&lt;br /&gt;
*[[uint16]]&lt;br /&gt;
*[[uint32]]&lt;br /&gt;
*[[int8]]&lt;br /&gt;
*[[int16]]&lt;br /&gt;
*[[int32]]&lt;br /&gt;
*[[int64]]&lt;br /&gt;
*[[float]]&lt;br /&gt;
*[[double]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Format Conversion]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=uint32</id>
		<title>uint32</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=uint32"/>
				<updated>2016-11-18T19:42:03Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Convert an object to uint32 format.&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any three dimensional numeric array&lt;br /&gt;
 &lt;br /&gt;
Return Value: The array converted into uint32 (0 - 4294967295)&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: uint32(object &amp;amp;#61; VAL)&lt;br /&gt;
 &lt;br /&gt;
The uint32() function copies and converts an object to uint32 format. Any values above or below the maximum representable values of 0, 4294967295 are set to the nearest representable value. This function is equivalent to format(object&amp;amp;#61;VAL, format&amp;amp;#61;uint32).&lt;br /&gt;
 &lt;br /&gt;
All values are truncated.&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
 dv&amp;gt; a&lt;br /&gt;
 4x3x2 array of float, bsq format [96 bytes]&lt;br /&gt;
 0.00000    1.00000    2.00000    3.00000&lt;br /&gt;
 4.00000    5.00000    6.00000    7.00000&lt;br /&gt;
 8.00000    9.00000    10.0000    11.0000&lt;br /&gt;
&lt;br /&gt;
 0.567142    0.216034    0.0258639   0.0750542&lt;br /&gt;
 0.629196    0.118883    0.268471    0.906492&lt;br /&gt;
 0.389246    0.0442709   0.146869    0.932501&lt;br /&gt;
 dv&amp;gt; b&amp;amp;#61;uint32(a)&lt;br /&gt;
 4x3x2 array of uint32, bsq format [96 bytes]&lt;br /&gt;
 0    1    2    3&lt;br /&gt;
 4    5    6    7&lt;br /&gt;
 8    9    10   11&lt;br /&gt;
 &lt;br /&gt;
 0    0    0    0&lt;br /&gt;
 0    0    0    0&lt;br /&gt;
 0    0    0    0&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[uint8]]&lt;br /&gt;
*[[uint16]]&lt;br /&gt;
*[[uint64]]&lt;br /&gt;
*[[int8]]&lt;br /&gt;
*[[int16]]&lt;br /&gt;
*[[int32]]&lt;br /&gt;
*[[int64]]&lt;br /&gt;
*[[float]]&lt;br /&gt;
*[[double]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Format Conversion]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=uint16</id>
		<title>uint16</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=uint16"/>
				<updated>2016-11-18T19:38:08Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Convert an object to uint16 format.&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any three dimensional numeric array&lt;br /&gt;
 &lt;br /&gt;
Return Value: The array converted into uint16 (0 - 65535)&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: uint16(object &amp;amp;#61; VAL)&lt;br /&gt;
 &lt;br /&gt;
The uint16() function copies and converts an object to uint16 format. Any values above or below the maximum representable values of 0, 65535 are set to the nearest representable value. This function is equivalent to format(object&amp;amp;#61;VAL, format&amp;amp;#61;uint16).&lt;br /&gt;
 &lt;br /&gt;
All values are truncated.&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
 dv&amp;gt; a&lt;br /&gt;
 4x3x2 array of float, bsq format [96 bytes]&lt;br /&gt;
 0.00000    1.00000    2.00000    3.00000&lt;br /&gt;
 4.00000    5.00000    6.00000    7.00000&lt;br /&gt;
 8.00000    9.00000    10.0000    11.0000&lt;br /&gt;
&lt;br /&gt;
 0.567142    0.216034    0.0258639   0.0750542&lt;br /&gt;
 0.629196    0.118883    0.268471    0.906492&lt;br /&gt;
 0.389246    0.0442709   0.146869    0.932501&lt;br /&gt;
 dv&amp;gt; b&amp;amp;#61;uint16(a)&lt;br /&gt;
 4x3x2 array of uint16, bsq format [48 bytes]&lt;br /&gt;
 0    1    2    3&lt;br /&gt;
 4    5    6    7&lt;br /&gt;
 8    9    10   11&lt;br /&gt;
 &lt;br /&gt;
 0    0    0    0&lt;br /&gt;
 0    0    0    0&lt;br /&gt;
 0    0    0    0&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[uint8]]&lt;br /&gt;
*[[uint32]]&lt;br /&gt;
*[[uint64]]&lt;br /&gt;
*[[int8]]&lt;br /&gt;
*[[int16]]&lt;br /&gt;
*[[int32]]&lt;br /&gt;
*[[int64]]&lt;br /&gt;
*[[float]]&lt;br /&gt;
*[[double]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Format Conversion]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=uint8</id>
		<title>uint8</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=uint8"/>
				<updated>2016-11-18T19:26:42Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Convert an object to UINT8 format. Identical to deprecated [[byte]] and [[char]].&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any three dimensional numeric array&lt;br /&gt;
 &lt;br /&gt;
Return Value: The array converted into uint8 (0 - 255)&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: uint8(object &amp;amp;#61; VAL)&lt;br /&gt;
 &lt;br /&gt;
The uint8() function copies and converts an object to uint8 format. Any values above or below the maximum representable values of 0, 255 are set to the nearest representable value. This function is equivalent to format(object&amp;amp;#61;VAL, format&amp;amp;#61;uint8).&lt;br /&gt;
 &lt;br /&gt;
All values are truncated.&lt;br /&gt;
|&lt;br /&gt;
  dv&amp;gt; a&lt;br /&gt;
  5x10x1 array of float, bsq format [200 bytes]&lt;br /&gt;
  81.4874 4.36053 41.7432 15.6841 35.9896&lt;br /&gt;
  66.3147 53.2217 41.1748 66.2604 76.5872&lt;br /&gt;
  76.9139 45.3942 71.4335 37.8209 68.3882&lt;br /&gt;
  8.62298 84.7280 17.9986 84.2027 24.2261&lt;br /&gt;
  90.2153 82.6485 64.6259 31.7400 88.2643&lt;br /&gt;
  53.4477 64.4353 90.6081 87.2454 54.7980&lt;br /&gt;
  37.0674 30.1417 21.4569 10.1529 21.2817&lt;br /&gt;
  73.4718 68.1826 83.8363 86.1234 29.4375&lt;br /&gt;
  74.0770 82.6730 55.1090 68.8111 11.7781&lt;br /&gt;
  74.9024 57.8497 93.8397 1.16438 5.56536&lt;br /&gt;
 &lt;br /&gt;
  dv&amp;gt; b&amp;amp;#61;uint8(a)&lt;br /&gt;
  5x10x1 array of byte, bsq format [50 bytes]&lt;br /&gt;
  81      4       41      15      35&lt;br /&gt;
  66      53      41      66      76&lt;br /&gt;
  76      45      71      37      68&lt;br /&gt;
  8       84      17      84      24&lt;br /&gt;
  90      82      64      31      88&lt;br /&gt;
  53      64      90      87      54&lt;br /&gt;
  37      30      21      10      21&lt;br /&gt;
  73      68      83      86      29&lt;br /&gt;
  74      82      55      68      11&lt;br /&gt;
  74      57      93      1       5&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[uint16]]&lt;br /&gt;
*[[uint32]]&lt;br /&gt;
*[[uint64]]&lt;br /&gt;
*[[int8]]&lt;br /&gt;
*[[int16]]&lt;br /&gt;
*[[int32]]&lt;br /&gt;
*[[int64]]&lt;br /&gt;
*[[float]]&lt;br /&gt;
*[[double]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Format Conversion]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=pack</id>
		<title>pack</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=pack"/>
				<updated>2016-11-17T22:52:24Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: add pack()&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Packs binary data from a davinci struct&lt;br /&gt;
|&lt;br /&gt;
Arguments: A davinci struct and a filename&lt;br /&gt;
 &lt;br /&gt;
Return Value: The template string&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: pack(struct&amp;amp;#61;STRUCT, filename&amp;amp;#61;STRING [, count&amp;amp;#61;INT32, col_names&amp;amp;#61;TEXT, force&amp;amp;#61;BOOL, template&amp;amp;#61;STRING, skip&amp;amp;#61;INT32])&lt;br /&gt;
 &lt;br /&gt;
The pack function reads binary data from the davinci struct,&lt;br /&gt;
interprets it according to the specified record template,&lt;br /&gt;
and writes it to the file named by filename.  The optional count&lt;br /&gt;
parameter specifies the number of records to be packed (a negative&lt;br /&gt;
value means all records).  The optional col_names parameter can&lt;br /&gt;
be used to specify the structure fields to pack and the order&lt;br /&gt;
in which to do so.  Thus it can be either a string (for a single&lt;br /&gt;
column) or a TEXT object.  Providing extra names or names not in&lt;br /&gt;
the structure is an error.  Providing fewer is fine.&lt;br /&gt;
 &lt;br /&gt;
The option force argument says whether to overwrite an existing file.&lt;br /&gt;
 &lt;br /&gt;
By default, if no template is provided davinci will pack the data&lt;br /&gt;
as the types of the actual fields.  There's really no reason not&lt;br /&gt;
to do that and specifying template strings is painful and tedious.&lt;br /&gt;
 &lt;br /&gt;
Whether you provide a template string or not, the template string&lt;br /&gt;
needed to [[unpack]]() the data is the return value.  If you really&lt;br /&gt;
want to specify the template string yourself, it has the same&lt;br /&gt;
structure as [[unpack]]() except it does not support 3,5,6 or 7 byte&lt;br /&gt;
int types, only 1,2,4,8, ie the native integer sizes.&lt;br /&gt;
 &lt;br /&gt;
The optional skip parameter specifies the bytes into the file to&lt;br /&gt;
skip before encoding to the file.&lt;br /&gt;
 &lt;br /&gt;
pack() will pack structures with members with differing y lengths and will just pad the shorter columns&lt;br /&gt;
with 0's so the file will be the size in bytes of the first row times the number of rows (y length) of the longest&lt;br /&gt;
column.&lt;br /&gt;
|&lt;br /&gt;
Note in the example below I have to use col_names for unpack() because the hdf writing (or reading?) reorders the members&lt;br /&gt;
and pack() just packs them in the index order.  Letting unpack do it's default and assign names sequentially would mean&lt;br /&gt;
atm and atm_in would compare unequal.&lt;br /&gt;
&lt;br /&gt;
 dv&amp;gt; atm &amp;amp;#61; load(&amp;quot;atm.hdf&amp;quot;);&lt;br /&gt;
 struct, 11 elements&lt;br /&gt;
     c1: 1x34288x1 array of uint32, bsq format [137,152 bytes]&lt;br /&gt;
     c10: 1x34288x1 array of float, bsq format [137,152 bytes]&lt;br /&gt;
     c11: Text Buffer with 34288 lines of text&lt;br /&gt;
         1: 3.06&lt;br /&gt;
         2: 3.06&lt;br /&gt;
         3: 3.06&lt;br /&gt;
         4: 3.06&lt;br /&gt;
         5: 3.06&lt;br /&gt;
         6: 3.06&lt;br /&gt;
         7: 3.06&lt;br /&gt;
         8: 3.06&lt;br /&gt;
         9: 3.06&lt;br /&gt;
         10: 3.06&lt;br /&gt;
     c2: 1x34288x1 array of uint16, bsq format [68,576 bytes]&lt;br /&gt;
     c3: 38x34288x1 array of uint16, bsq format [2,605,888 bytes]&lt;br /&gt;
     c4: 1x34288x1 array of uint16, bsq format [68,576 bytes]&lt;br /&gt;
     c5: 1x34288x1 array of uint16, bsq format [68,576 bytes]&lt;br /&gt;
     c6: 1x34288x1 array of float, bsq format [137,152 bytes]&lt;br /&gt;
     c7: 9x34288x1 array of int16, bsq format [617,184 bytes]&lt;br /&gt;
     c8: 1x34288x1 array of float, bsq format [137,152 bytes]&lt;br /&gt;
     c9: 1x34288x1 array of float, bsq format [137,152 bytes]&lt;br /&gt;
 dv&amp;gt; template &amp;amp;#61; pack(atm, &amp;quot;atm_packed.dat&amp;quot;)&lt;br /&gt;
 Packed 34288 records to to atm_packed.dat.&lt;br /&gt;
 &amp;quot;u4r4a4u2u2*38u2u2r4i2*9r4r4&amp;quot;&lt;br /&gt;
 dv&amp;gt; atm_in &amp;amp;#61; unpack(template, &amp;quot;atm_packed.dat&amp;quot;, col_names&amp;amp;#61;get_struct_keys(atm))&lt;br /&gt;
 struct, 11 elements&lt;br /&gt;
     c1: 1x34288x1 array of uint32, bsq format [137,152 bytes]&lt;br /&gt;
     c10: 1x34288x1 array of float, bsq format [137,152 bytes]&lt;br /&gt;
     c11: Text Buffer with 34288 lines of text&lt;br /&gt;
         1: 3.06&lt;br /&gt;
         2: 3.06&lt;br /&gt;
         3: 3.06&lt;br /&gt;
         4: 3.06&lt;br /&gt;
         5: 3.06&lt;br /&gt;
         6: 3.06&lt;br /&gt;
         7: 3.06&lt;br /&gt;
         8: 3.06&lt;br /&gt;
         9: 3.06&lt;br /&gt;
         10: 3.06&lt;br /&gt;
     c2: 1x34288x1 array of uint16, bsq format [68,576 bytes]&lt;br /&gt;
     c3: 38x34288x1 array of uint16, bsq format [2,605,888 bytes]&lt;br /&gt;
     c4: 1x34288x1 array of uint16, bsq format [68,576 bytes]&lt;br /&gt;
     c5: 1x34288x1 array of uint16, bsq format [68,576 bytes]&lt;br /&gt;
     c6: 1x34288x1 array of float, bsq format [137,152 bytes]&lt;br /&gt;
     c7: 9x34288x1 array of int16, bsq format [617,184 bytes]&lt;br /&gt;
     c8: 1x34288x1 array of float, bsq format [137,152 bytes]&lt;br /&gt;
     c9: 1x34288x1 array of float, bsq format [137,152 bytes]&lt;br /&gt;
 dv&amp;gt; equals(atm, atm_in)&lt;br /&gt;
 1&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[unpack]]&lt;br /&gt;
*[[load_raw]]|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:String Functions]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=isinf</id>
		<title>isinf</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=isinf"/>
				<updated>2016-11-17T21:13:56Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: add isinf()&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
infinity test&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any davinci array (ie a numerical type).&lt;br /&gt;
 &lt;br /&gt;
Return Value: 0 or 1&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: isinf(VAL)&lt;br /&gt;
 &lt;br /&gt;
Returns 1 if VAL is inf, 0 otherwise.  If used on an array, isinf() returns an array of 0's and 1's of the same size.&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; a &amp;amp;#61; create(3, format&amp;amp;#61;float)&lt;br /&gt;
 3x1x1 array of float, bsq format [12 bytes]&lt;br /&gt;
 0.00000    1.00000    2.00000&lt;br /&gt;
 dv&amp;gt; isinf(a)&lt;br /&gt;
 3x1x1 array of uint8, bsq format [3 bytes]&lt;br /&gt;
 0    0    0&lt;br /&gt;
 dv&amp;gt; a[2] &amp;amp;#61; exp(800)&lt;br /&gt;
 inf&lt;br /&gt;
 dv&amp;gt; isinf(a)&lt;br /&gt;
 3x1x1 array of uint8, bsq format [3 bytes]&lt;br /&gt;
 0    1    0&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[isnan]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:String Functions]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=isnan</id>
		<title>isnan</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=isnan"/>
				<updated>2016-11-17T21:11:46Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: Add isnan()&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
NaN test&lt;br /&gt;
|&lt;br /&gt;
Arguments: Any davinci array (ie a numerical type).&lt;br /&gt;
 &lt;br /&gt;
Return Value: 0 or 1&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: isnan(VAL)&lt;br /&gt;
 &lt;br /&gt;
Returns 1 if VAL is NaN, 0 otherwise.  If used on an array, isnan() returns an array of 0's and 1's of the same size.&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; a &amp;amp;#61; create(3, format&amp;amp;#61;float)&lt;br /&gt;
 3x1x1 array of float, bsq format [12 bytes]&lt;br /&gt;
 0.00000    1.00000    2.00000&lt;br /&gt;
 dv&amp;gt; isnan(a)&lt;br /&gt;
 3x1x1 array of uint8, bsq format [3 bytes]&lt;br /&gt;
 0    0    0&lt;br /&gt;
 dv&amp;gt; a[2] &amp;amp;#61; exp(800)/exp(800)&lt;br /&gt;
 -nan&lt;br /&gt;
 dv&amp;gt; isnan(a)&lt;br /&gt;
 3x1x1 array of uint8, bsq format [3 bytes]&lt;br /&gt;
 0    1    0&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[isinf]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:String Functions]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=print</id>
		<title>print</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=print"/>
				<updated>2016-11-02T18:19:36Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: Fix version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Print output to a stream&lt;br /&gt;
|&lt;br /&gt;
Arguments: objects to print&lt;br /&gt;
 &lt;br /&gt;
Return Value: None.&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: print(arg1 [, arg2, arg3 ...] [sep&amp;amp;#61;STRING, end&amp;amp;#61;STRING, file&amp;amp;#61;STRING])&lt;br /&gt;
 &lt;br /&gt;
The print() function is based on the python3 print() function. You can pass as many arguments of whatever type you want and it will print them, separated by sep, with the end string at the end.&lt;br /&gt;
 &lt;br /&gt;
sep defaults to &amp;quot; &amp;quot;.  end defaults to &amp;quot;\n&amp;quot;.  file defaults to stdout.&lt;br /&gt;
 &lt;br /&gt;
If file is provided, it will be opened in append mode same as [[fprintf]].&lt;br /&gt;
 &lt;br /&gt;
Note that the keyword arguments can be given in any order, anywhere in the call, even interspersed with regular arguments.&lt;br /&gt;
 &lt;br /&gt;
Note that this prints complex objects (structures, text objects, 3D arrays) similar to the way that [[dump]] does except without a depth limit for arrays ''or'' structs. When combined with sep, that can look off.&lt;br /&gt;
 &lt;br /&gt;
The best way to use print in those cases is to set sep&amp;amp;#61;&amp;quot;&amp;quot; and pass space and newlines as you want, or just print complex structures separately. See the example.&lt;br /&gt;
|&lt;br /&gt;
  dv&amp;gt; b &amp;amp;#61; create(2,3,2)&lt;br /&gt;
  2x3x2 array of int32, bsq format [48 bytes]&lt;br /&gt;
  0    1   &lt;br /&gt;
  2    3   &lt;br /&gt;
  4    5   &lt;br /&gt;
 &lt;br /&gt;
  6    7   &lt;br /&gt;
  8    9   &lt;br /&gt;
  10   11   &lt;br /&gt;
 &lt;br /&gt;
  dv&amp;gt; print(100, b, 300)&lt;br /&gt;
  100 0    1&lt;br /&gt;
  2    3&lt;br /&gt;
  4    5&lt;br /&gt;
 &lt;br /&gt;
  6    7&lt;br /&gt;
  8    9&lt;br /&gt;
  10   11 300&lt;br /&gt;
 &lt;br /&gt;
  dv&amp;gt; print(100, '\n', b, '\n', 300, sep&amp;amp;#61;''''''')&lt;br /&gt;
  100&lt;br /&gt;
  0    1&lt;br /&gt;
  2    3&lt;br /&gt;
  4    5&lt;br /&gt;
 &lt;br /&gt;
  6    7&lt;br /&gt;
  8    9&lt;br /&gt;
  10   11&lt;br /&gt;
  300&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; c &amp;amp;#61; { a &amp;amp;#61; 1, b &amp;amp;#61; 2 }&lt;br /&gt;
 struct, 2 elements&lt;br /&gt;
     a: 1&lt;br /&gt;
     b: 2&lt;br /&gt;
 dv&amp;gt; dump(c)&lt;br /&gt;
 struct, 2 elements...&lt;br /&gt;
 dv&amp;gt; print(c)&lt;br /&gt;
     a: 1&lt;br /&gt;
     b: 2&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[printf]]&lt;br /&gt;
*[[sprintf]]&lt;br /&gt;
*[[fprintf]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:String Functions]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=write_isis3</id>
		<title>write isis3</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=write_isis3"/>
				<updated>2016-06-10T22:39:30Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: Correct version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Write an ISIS3 format file.&lt;br /&gt;
|&lt;br /&gt;
Arguments: A data object and a filename&lt;br /&gt;
 &lt;br /&gt;
Return Value: None. File is written out.&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: write_isis3(object &amp;amp;#61; VAL/STRUCTURE, filename &amp;amp;#61; STRING [, force &amp;amp;#61; 1] [, bsqOrTile &amp;amp;#61; &amp;quot;bsq&amp;quot; or &amp;quot;tile&amp;quot;, valueTS &amp;amp;#61; INT, valueTL &amp;amp;#61; INT  ]  )&lt;br /&gt;
 &lt;br /&gt;
'object' - An ISIS3 data structure&lt;br /&gt;
 &lt;br /&gt;
'filename' - The name of the file to write out&lt;br /&gt;
 &lt;br /&gt;
'force' - An option to overwrite existing files (0 &amp;amp;#61; no, 1 &amp;amp;#61; yes)&lt;br /&gt;
 &lt;br /&gt;
'bsq' or 'tile' tells how to write out the file, leave this out and the original format will be maintained&lt;br /&gt;
 &lt;br /&gt;
If 'bsq' is used, you need not specify valueTS and valueTL&lt;br /&gt;
 &lt;br /&gt;
valueTS (value Tile Samples) and valueTL (value Tile Lines) should be sized to result in an integral number of tiles&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; write_isis3(a,&amp;quot;test.cub&amp;quot;, force &amp;amp;#61; 1, bsqOrTile&amp;amp;#61;&amp;quot;Tile&amp;quot;, valTS&amp;amp;#61;133, valTL&amp;amp;#61;111)&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[write]]&lt;br /&gt;
*[[load_isis3]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Input/Output]]&lt;/div&gt;</summary>
		<author><name>Ddoerres</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=load_isis3</id>
		<title>load isis3</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=load_isis3"/>
				<updated>2016-06-10T21:32:21Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: Add write_isis3 as related function and correct version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Read an ISIS3 file into a structure.&lt;br /&gt;
|&lt;br /&gt;
Arguments: A string containing file to be loaded&lt;br /&gt;
 &lt;br /&gt;
Return Value: An ISIS3 structure&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: load_isis3(filename &amp;amp;#61; PATH [, data &amp;amp;#61; 1] [, use_names &amp;amp;#61; 1])&lt;br /&gt;
 &lt;br /&gt;
The DATA argument specifies whether or not to load the data from any objects encountered in the file.  (0&amp;amp;#61;don't load, default is 1)&lt;br /&gt;
 &lt;br /&gt;
The USE_NAMES argument specifies whether or not to use enclosed names&lt;br /&gt;
 &lt;br /&gt;
(0&amp;amp;#61;don't load, default is 0) for repeating elements in the ISIS3 Table items&lt;br /&gt;
 &lt;br /&gt;
This avoids names with numbered prefixes such as Field_2 or Field3&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; a&amp;amp;#61;load_isi3(&amp;quot;/local/cube/rgbmess.cub&amp;quot;,data&amp;amp;#61;1)&lt;br /&gt;
 &lt;br /&gt;
 struct, 2 elements&lt;br /&gt;
    cube: 2880x1440x3 array of byte, bsq format [12,441,600 bytes]&lt;br /&gt;
    IsisCube: struct, 4 elements&lt;br /&gt;
        Core: struct, 4 elements...&lt;br /&gt;
        isis_struct_type: &amp;quot;object&amp;quot;&lt;br /&gt;
        Label: struct, 1 elements...&lt;br /&gt;
        History: struct, 4 elements...&lt;br /&gt;
  &amp;gt;&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[write_isis3]]&lt;br /&gt;
*[[load]]&lt;br /&gt;
*[[read]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
2.18&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:Input/Output]]&lt;/div&gt;</summary>
		<author><name>Ddoerres</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=gnoise</id>
		<title>gnoise</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=gnoise"/>
				<updated>2016-04-28T17:14:52Z</updated>
		
		<summary type="html">&lt;p&gt;Rswinkle: Added missing gnoise function page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Generate a cube of mutually exclusive planes of noise.&lt;br /&gt;
|&lt;br /&gt;
Arguments: Three integers designating array size and a seed&lt;br /&gt;
 &lt;br /&gt;
Return Value: A numeric array of specified size filled with random noise&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: gnoise([x &amp;amp;#61; INT] [, y &amp;amp;#61; INT] [, z &amp;amp;#61; INT] [, seed &amp;amp;#61; INT])&lt;br /&gt;
 &lt;br /&gt;
The gnoise() function generates Z mutually exclusive planes of uniformly distributed noise.  For each X,Y location, exactly 1 pixel&lt;br /&gt;
along the Z axis is set to a value of 1, producing images of&lt;br /&gt;
random noise with a frequency of 1/Z.  The value seed can be specified&lt;br /&gt;
to seed the random number generator, to produce reproducible random&lt;br /&gt;
numbers.  The default dimensions are 512x512x10.&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; a &amp;amp;#61; gnoise(20,20,20)   &lt;br /&gt;
 20x20x20 array of byte, bsq format [8,000 bytes]&lt;br /&gt;
 dv&amp;gt; a &amp;amp;#61; gnoise()&lt;br /&gt;
 512x512x10 array of byte, bsq format [2,621,440 bytes]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[rnoise]]&lt;br /&gt;
*[[random]]|&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:Davinci Core]]&lt;br /&gt;
[[category:64-bit]]&lt;/div&gt;</summary>
		<author><name>Rswinkle</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=despeckle</id>
		<title>despeckle</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=despeckle"/>
				<updated>2016-03-02T17:20:37Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;Category:NEED&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:NEED]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=write_envi</id>
		<title>write envi</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=write_envi"/>
				<updated>2014-10-08T22:01:55Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
This function writes a plain or Geo-ENVI file and Header. The input data must be a structure from [[read_geo|read_geo()]] or be a plain numeric data array&lt;br /&gt;
&lt;br /&gt;
This function relies on [[GDAL]] &amp;gt; 1.8. for [[Geo-Struct]] support&lt;br /&gt;
|&lt;br /&gt;
Arguments: A [[Geo-Struct]] OR data array and file name&lt;br /&gt;
&lt;br /&gt;
Return Value: none&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: write_envi(input, filename [,force&amp;amp;#61;BOOL])&lt;br /&gt;
&lt;br /&gt;
input- the davinci Geo-Struct or data array&lt;br /&gt;
&lt;br /&gt;
filename - full path to data&lt;br /&gt;
&lt;br /&gt;
force - force the creation/overwrite of the specified file&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; a&amp;amp;#61;read_geo($DV_EX+&amp;quot;/I01001001.cub&amp;quot;)&lt;br /&gt;
 Downloading...........................................done.&lt;br /&gt;
    anc: struct, 11 elements&lt;br /&gt;
        wkt: Text Buffer with 12 lines of text&lt;br /&gt;
            1: PROJCS[&amp;quot;SIMPLE_CYLINDRICAL MARS&amp;quot;,&lt;br /&gt;
            2:     GEOGCS[&amp;quot;GCS_MARS&amp;quot;,&lt;br /&gt;
            3:         DATUM[&amp;quot;D_MARS&amp;quot;,&lt;br /&gt;
            4:             SPHEROID[&amp;quot;MARS&amp;quot;,3396190,0]],&lt;br /&gt;
            5:         PRIMEM[&amp;quot;Reference_Meridian&amp;quot;,0],&lt;br /&gt;
            6:         UNIT[&amp;quot;degree&amp;quot;,0.0174532925199433]],&lt;br /&gt;
            7:     PROJECTION[&amp;quot;Equirectangular&amp;quot;],&lt;br /&gt;
            8:     PARAMETER[&amp;quot;latitude_of_origin&amp;quot;,0],&lt;br /&gt;
            9:     PARAMETER[&amp;quot;central_meridian&amp;quot;,0],&lt;br /&gt;
            10:     PARAMETER[&amp;quot;standard_parallel_1&amp;quot;,0],&lt;br /&gt;
        proj4: &amp;quot;'+proj&amp;amp;#61;eqc +lat_ts&amp;amp;#61;0 +lat_0&amp;amp;#61;0 +lon_0&amp;amp;#61;0 +x_0&amp;amp;#61;0 +y_0&amp;amp;#61;0 +a&amp;amp;#61;3396190 +b&amp;amp;#61;3396190 +units&amp;amp;#61;m +no_defs '&amp;quot;&lt;br /&gt;
        origin: 1x2x1 array of double, bsq format [16 bytes]&lt;br /&gt;
        pixel_size: 1x2x1 array of double, bsq format [16 bytes]&lt;br /&gt;
        x: 186699.0000&lt;br /&gt;
        y: -3541.000000&lt;br /&gt;
        lat: 1x5x1 array of float, bsq format [20 bytes]&lt;br /&gt;
        lon: 1x5x1 array of float, bsq format [20 bytes]&lt;br /&gt;
        lpo: 1x5x1 array of float, bsq format [20 bytes]&lt;br /&gt;
        spo: 1x5x1 array of float, bsq format [20 bytes]&lt;br /&gt;
        center: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
    ignore: -3.402822655e+38&lt;br /&gt;
    projection: &amp;quot;Equirectangular&amp;quot;&lt;br /&gt;
    spheroid: struct, 3 elements&lt;br /&gt;
        name: &amp;quot;MARS&amp;quot;&lt;br /&gt;
        radius: &amp;quot;3396190&amp;quot;&lt;br /&gt;
        iflattening: &amp;quot;0&amp;quot;&lt;br /&gt;
    resolution: 100.0000000&lt;br /&gt;
    x: 186699.0000&lt;br /&gt;
    y: -3541.000000&lt;br /&gt;
    ul: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
    ur: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
    ll: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
    lr: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
    w: 661&lt;br /&gt;
    h: 2391&lt;br /&gt;
    data: 661x2391x10 array of float, bsq format [63,218,040 bytes]&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; write_envi(a,&amp;quot;~/test.img&amp;quot;,force&amp;amp;#61;1)&lt;br /&gt;
 Writing /tmp/dv_9939/test.img.tmp.tiff: 661x2391x10 TIFF file.&lt;br /&gt;
 Attaching Ancellary Data to ~/test.img: 661x2391x10 ENVI File....Done.&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; write_envi(a.data,&amp;quot;~/test.array.img&amp;quot;,force&amp;amp;#61;1)&lt;br /&gt;
 Writing ~/test.array.img: 661x2391x10 ENVI File&lt;br /&gt;
 Writing ~/test.array.img.hdr: ENVI HDR File&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[write_geotiff]]&lt;br /&gt;
*[[write]]&lt;br /&gt;
|&lt;br /&gt;
*[[read_geo]]&lt;br /&gt;
*[[read_geometa]]&lt;br /&gt;
*[[proj_geo]]&lt;br /&gt;
|&lt;br /&gt;
*map_projection.dvrc&lt;br /&gt;
|&lt;br /&gt;
1.06&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:User Defined Functions]]&lt;br /&gt;
[[category:Map Projection]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=Writing_PSQL_DB_Queries</id>
		<title>Writing PSQL DB Queries</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=Writing_PSQL_DB_Queries"/>
				<updated>2014-04-08T16:46:49Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Procedure|&lt;br /&gt;
The purpose of this page is provide a very quick tutorial on composing a PSQL query statement to obtain image meta-data from the MSFF Mars PSQL database. More complex queries than those shown here can be used with the [[themis3db]] interface; see appropriate online documentation for SQL grammar and syntax.&lt;br /&gt;
&lt;br /&gt;
The instructions provided here assume that you are primarily accessing the database through the Davinci-PSQLQueryTool interface. See the [[themis3db]] function page and/or the [[PSQLQueryTool_Glossary|PSQL QueryTool Glossary]] procedure page for examples on how to execute the full series of commands in Davinci.&lt;br /&gt;
|&lt;br /&gt;
* Basic Query&lt;br /&gt;
'''select [WHAT] from [TABLE] where [CONDITIONS] [[GROUP] having [GRP_CONDITIONS]] [ORDER];'''&lt;br /&gt;
: Replace [SQUARE-BRACKETS] contents shown above as follows&lt;br /&gt;
# WHAT &amp;amp;#61; comma delimited list of field names; on-the-fly calculations are allowed&lt;br /&gt;
#: define aliases for your fields using the syntax &amp;quot;FIELD as NEWNAME&amp;quot;&lt;br /&gt;
# TABLE &amp;amp;#61; use simple table_name, or schema_name.table_name to alleviate confusion&lt;br /&gt;
#: define aliases for your tables by using the syntax &amp;quot;TABLE as ABBREVIATION&amp;quot;&lt;br /&gt;
# CONDITIONS &amp;amp;#61; list of definitions (like field_name&amp;amp;#61;value) for filtering the records; most mathematical and logical functions are available;&lt;br /&gt;
#: use ''and'' or ''or'' between each condition in list&lt;br /&gt;
#: use &amp;quot;(... or ...)&amp;quot; for clarification when enforcing multiple dependent conditions&lt;br /&gt;
# GROUP &amp;amp;#61; requried to define how to group the records when using a record grouping function (min, max, avg, ... )&lt;br /&gt;
#: Note: PSQL is very picky about grouping - any field in your select list must be in either the ''group by'' list or used in a grouping function &lt;br /&gt;
# GRP_CONDITIONS &amp;amp;#61; similar to field conditions, except that the filter is applied after the grouping is calculated&lt;br /&gt;
# ORDER &amp;amp;#61; PSQL records are returned in (apparently) random order; use a comma delimited field list to define a specific order&lt;br /&gt;
#: if necessary, qualify the ordering as DESCending (default is ASCending)&lt;br /&gt;
&lt;br /&gt;
Basic Query Examples using the irfrmsci table:&lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select file_id, framelet_id, bright_temp9 from irfrmsci &lt;br /&gt;
     where file_id&amp;amp;#61;'I01001001' order by framelet_id;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select irfrmsci.* from irfrmsci where file_id&amp;amp;#61;'I01001001' order by framelet_id;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select file_id, framelet_id, mola_avg, mola_min as molamin, mola_max as mola_max \&lt;br /&gt;
     from irqubsci where file_id&amp;amp;#61;'I01001001' and framelet_id&amp;amp;#61;0 order by framelet_id;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select file_id, framelet_id, mola_avg from irfrmsci where file_id in ('I01001001','I01002002') \&lt;br /&gt;
     and framelet_id &amp;gt; 0 and mola_avg &amp;gt; 0;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select file_id, avg(tes_emiss3) from irfrmsci where file_id&amp;amp;#61;'I01001001' group by file_id;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select file_id, avg(tes_emiss3) as avg_tes3 from irfrmsci where file_id like 'I010%' \&lt;br /&gt;
     group by file_id having avg(tes_emiss3) between 0.9 and 1.0 order by 2 desc;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Table Query &lt;br /&gt;
'''select [WHAT] from [TABLES] where [JOIN] and [CONDITIONS] [[GROUP] having [GRP_CONDITIONS]] [ORDER];'''&lt;br /&gt;
: Replace [SQUARE-BRACKETS] contents shown above as follows&lt;br /&gt;
# WHAT &amp;amp;#61; comma delimited list of field names&lt;br /&gt;
#: if the field_name is in more than one table, then explicitly qualify with TAB1.field_name&lt;br /&gt;
#:  (where TAB1 is either the full table_name or the ABBREVIATION defined in the table list)&lt;br /&gt;
# TABLES &amp;amp;#61; comma delimited list of table names&lt;br /&gt;
#: as in the Basic Query, schema_names and or abbreviations can be used&lt;br /&gt;
# JOIN &amp;amp;#61; define how to relate the table records; work carefully when joining tables with multiple primary keys&lt;br /&gt;
# CONDITIONS &amp;amp;#61; define how to filter the records;&lt;br /&gt;
#: it is usually a good practice to constrain on any primary keys not used as part of the ''join'' statement&lt;br /&gt;
# GROUP and ORDER &amp;amp;#61; same as for Basic Query&lt;br /&gt;
&lt;br /&gt;
Multi-Table Query Examples ...  (warning: these queries are SLOW!)&lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select irfrmsci.file_id, irfrmsci.framelet_id, bright_temp9 from \&lt;br /&gt;
       irfrmsci, frmgeom where irfrmsci.file_id&amp;amp;#61;frmgeom.file_id and \&lt;br /&gt;
       irfrmsci.framelet_id&amp;amp;#61;frmgeom.framelet_id and point_id&amp;amp;#61;'CT' \ &lt;br /&gt;
       and band_idx&amp;amp;#61;1 and lat between -5.0 and 5.0 and lon between 30 \&lt;br /&gt;
       and 60 order by irfrmsci.framelet_id;&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select sci.file_id, avg(tes_emiss3), lat, lon  from irfrmsci as sci, \&lt;br /&gt;
       frmgeom as geom, thm3_quality qual where sci.file_id&amp;amp;#61;geom.file_id and \ &lt;br /&gt;
       sci.file_id&amp;amp;#61;qual.file_id and point_id&amp;amp;#61;'CT' and band_idx&amp;amp;#61;1 and calibration&amp;amp;#61;0 \&lt;br /&gt;
       group by sci.file_id, lat, lon;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Miscellaneous PSQL Query Notes&lt;br /&gt;
# Enclose string values in single quotes, unless you want the literal phrase repeated in every record&lt;br /&gt;
# PSQL field names are case insensitive; all fields are returned with lower case headers&lt;br /&gt;
# A null values in PSQL is returned as an empty string &amp;quot;&amp;quot;; the query function has options to change this behaviour&lt;br /&gt;
# You can specify fields in the GROUP or ORDER clause using the numeric order that they appear in you SELECT phrase, but you cannot use a FIELD-ALIAS&lt;br /&gt;
#: (numeric specification is especially useful if the &amp;quot;field&amp;quot; is a complex calculation)&lt;br /&gt;
|&lt;br /&gt;
*[[:category:String_Functions|General String Manipulation Functions]]&lt;br /&gt;
*[[themis3db]]&lt;br /&gt;
|&lt;br /&gt;
*[[PSQLQueryTool_Glossary]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[category:Procedures]]&lt;/div&gt;</summary>
		<author><name>Murray</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=PSQLQueryTool_Glossary</id>
		<title>PSQLQueryTool Glossary</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=PSQLQueryTool_Glossary"/>
				<updated>2014-04-08T00:40:25Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Procedure|&lt;br /&gt;
In order to make the most of the MSFF PSQL Mars database, you must be familiar with the schema and table layout of the database. &lt;br /&gt;
&lt;br /&gt;
There are two sources for this information in the ''reference'' schema:&lt;br /&gt;
# '''reference.pubmars_glossary'''&lt;br /&gt;
#: - This is a VIEW based on joining several of the postgres control tables which define the actual Mars data tables; it includes details about all tables in the ''public, reference, thmpub'' schemas.  Field descriptions will be null if the table author did not populate a descriptive comment about the column.&lt;br /&gt;
#: - ''Suggested selection-list fields'': schema_name, table_name, field_name, datatype_name, description&lt;br /&gt;
# '''reference.glossary'''&lt;br /&gt;
#: This is a hand-updated table describing all of the tables under the control of THEMIS Mission-Operations; it includes details about all the tables in the ''reference'' schema and all THEMIS schemas. The descriptions provided in this table may be more verbose than those in the ''pubmars_glossary'' view&lt;br /&gt;
#: - ''Suggested selection-list fields:'' table_name, field_name, value_type, description&lt;br /&gt;
#: - ''Suggested constraints:'' schema_name&amp;amp;#61;'thmpub'&lt;br /&gt;
&lt;br /&gt;
The examples provided below will help you explore the tables and columns available for your use in database queries.  This is only intended to get you started; you should refine the ''constraints-list'' and the ''order-by-list'' according to your needs.&lt;br /&gt;
|&lt;br /&gt;
* Use the following commands in each of the following examples&lt;br /&gt;
'''1) Write the query;''' for more information see [[Writing_PSQL_DB_Queries|Writing PSQL-DB Queries]]&lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select schema_name, table_name, field_name, datatype_name, description from\&lt;br /&gt;
     reference.pubmars_glossary order by 1,2,3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
'''2) Access the PSQLQueryTool from Davinci;''' see the [[themis3db]] function page for a complete description of all available options&lt;br /&gt;
  dv&amp;gt; url&amp;amp;#61;themis3db(query,psql&amp;amp;#61;1,header&amp;amp;#61;1)&lt;br /&gt;
  Using PSQL password ...&lt;br /&gt;
  Read TEXT file: 1 lines&lt;br /&gt;
  (A '''very''' long URL may be repeated to your screen; &lt;br /&gt;
  HINT: copy URL into your browser to preview results -and error messages- like [http://tiny.cc/2htdex this]) &lt;br /&gt;
&lt;br /&gt;
'''3) Read in the results;''' the two options shown here are most useful for these Glossary examples:&lt;br /&gt;
: - &amp;quot;read_lines&amp;quot; is better for queries that return fewer lines&lt;br /&gt;
: - &amp;quot;copy&amp;quot; is better for queries that return hundreds of lines or verbose fields&lt;br /&gt;
 dv&amp;gt; gloss&amp;amp;#61;read_lines(url)&lt;br /&gt;
  Downloading.done.&lt;br /&gt;
  Read TEXT file:  2665 lines&lt;br /&gt;
  Text Buffer with 2665 lines of text&lt;br /&gt;
 --OR--&lt;br /&gt;
 dv&amp;gt; copy(url,$TMPDIR)&lt;br /&gt;
  Downloading.done.&lt;br /&gt;
  [path to file repeated to screen; review results outside of Davinci] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Example-1: Get a list of available THEMIS tables&lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select distinct table_name from reference.glossary where schema_name&amp;amp;#61;'thmpub' order by table_name;&amp;quot;&lt;br /&gt;
 dv&amp;gt; tablst&amp;amp;#61;read_lines(url)&lt;br /&gt;
  Downloading.done.&lt;br /&gt;
  Read TEXT file: 19 lines&lt;br /&gt;
  Text Buffer with 19 lines of text&lt;br /&gt;
    1: class&lt;br /&gt;
    2: feature&lt;br /&gt;
    3: frmgeom&lt;br /&gt;
    4: geomqlt&lt;br /&gt;
    5: imgidx&lt;br /&gt;
    6: imgproc&lt;br /&gt;
    7: irfrmsci&lt;br /&gt;
    8: irqubsci&lt;br /&gt;
    9: pgisgeom&lt;br /&gt;
    10: projgeom&lt;br /&gt;
    11: qubgeom&lt;br /&gt;
    12: stage&lt;br /&gt;
    13: status&lt;br /&gt;
    14: themis_details&lt;br /&gt;
    15: thm3_header&lt;br /&gt;
    16: thm3_quality&lt;br /&gt;
    17: thm3_qube&lt;br /&gt;
    18: tlm&lt;br /&gt;
    19: vissci&lt;br /&gt;
&lt;br /&gt;
* Example-2: Explore the columns available in a single table&lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select schema_name, table_name, field_name, datatype_name, description from reference.pubmars_glossary&lt;br /&gt;
     where table_name&amp;amp;#61;'qubgeom' order by field_name;&amp;quot;&lt;br /&gt;
 dv&amp;gt; url&amp;amp;#61;themis3db(query,psql&amp;amp;#61;1,header&amp;amp;#61;0,xformat&amp;amp;#61;1)&lt;br /&gt;
 dv&amp;gt; qubgeom&amp;amp;#61;read_lines(url)&lt;br /&gt;
  Downloading.done.&lt;br /&gt;
  Read TEXT file: 145 lines&lt;br /&gt;
  Text Buffer with 145 lines of text&lt;br /&gt;
 dv&amp;gt; qubgeom[,55:60]&lt;br /&gt;
  Text Buffer with 6 lines of text&lt;br /&gt;
    1: *************************** 10. row ***************************&lt;br /&gt;
    2: schema_name: thmpub&lt;br /&gt;
    3: table_name: qubgeom&lt;br /&gt;
    4: field_name: lat&lt;br /&gt;
    5: datatypename: float8&lt;br /&gt;
    6: description: Latitude of this point_id on the planet Mars&lt;br /&gt;
&lt;br /&gt;
* Example-3: Search for available columns related to the concept of &amp;quot;temperature&amp;quot;&lt;br /&gt;
 dv&amp;gt; query&amp;amp;#61;&amp;quot;select schema_name, table_name, field_name, description from reference.glossary where field_name like '%temp%';&amp;quot;&lt;br /&gt;
 dv&amp;gt; tempflds&amp;amp;#61;read_lines(url)&lt;br /&gt;
  Downloading.done.&lt;br /&gt;
  Read TEXT file: 253 lines&lt;br /&gt;
  Text Buffer with 253 lines of text&lt;br /&gt;
    1: *************************** 1. row ***************************&lt;br /&gt;
    2: table_name: imgidx&lt;br /&gt;
    3: field_name: focal_plane_temperature&lt;br /&gt;
    4: description: Temperature in Kelvin of the VIS camera focal plane array at the time of the observation&lt;br /&gt;
    5: ....&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Notes for THEMIS-Team Users&lt;br /&gt;
# If you are connecting to the PSQL database with the Team password, then you will be connected to the ''thmteam'' schema, not the ''thmpub'' schema&lt;br /&gt;
#: All tables within ''thmpub'' and ''thmteam'' are identical in layout, so the results returned from either glossary table/view will be valid. &lt;br /&gt;
#: However, if you need to specify a SCHEMA in a query (usually to avoid confusion), then use ''thmteam''&lt;br /&gt;
# Table names in the ''thmpub/thmteam'' schema generally indicate the kind of information that is contained in the table:&lt;br /&gt;
#: Geometry Information Tables: qubgeom, frmgeom, projgeom, pgisgeom, and geomqlt&lt;br /&gt;
#: Processing and File Information Tables: status, imgproc, stage, imgidx, tlm&lt;br /&gt;
#: Derived Science Tables: irqubsci, irfrmsci, vissci, class, feature &lt;br /&gt;
#: MYSQL Equivalent Tables: thm3_header, thm3_quality, thm3_qube&lt;br /&gt;
# Primary keys are critical for joining tables; some tables have multiple primary keys (see ''reference.glossary.pkey&amp;amp;#61;1'' for a complete list)&lt;br /&gt;
#: FILE_ID is used as the first PK in every table (except feature)&lt;br /&gt;
#: FRAMELET_ID is used in the *frm* and *qub* tables&lt;br /&gt;
#: BAND and/or BAND_IDX is used in qubgeom, frmgeom, ir*sci, and vissci&lt;br /&gt;
#: POINT_ID is used to identify the corners and center of images and/or framelets&lt;br /&gt;
# When querying for FRAMELET_ID&amp;amp;#61;0, use the *qub* version of the table; it will significantly improve the speed of your results&lt;br /&gt;
|&lt;br /&gt;
*[[:category:String_Functions|General String Manipulation Functions]]&lt;br /&gt;
*[[themis3db]]&lt;br /&gt;
|&lt;br /&gt;
*[[Writing_PSQL_DB_Queries]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[category:Procedures]]&lt;/div&gt;</summary>
		<author><name>Murray</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=JD2Marslsubs</id>
		<title>JD2Marslsubs</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=JD2Marslsubs"/>
				<updated>2014-04-04T21:42:28Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Convert the input Julian date to a Martian LsubS&lt;br /&gt;
|&lt;br /&gt;
Parameters: Julian date (in either J2000 or JD)&lt;br /&gt;
&lt;br /&gt;
Return Value: The corresponding solar longitude for mars&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: Jd2Marslsubs(JD [, J2000&amp;amp;#61;BOOL])&lt;br /&gt;
&lt;br /&gt;
The Julian Date (JD) is a continuous count of days since noon UTC on January 1, 4713 BCE in the proleptic Julian calendar.&lt;br /&gt;
&lt;br /&gt;
Coordinated Universal Time (UTC) is the basis for the time system used in everyday life. In order to keep UTC consistent with the Earth's slightly variable rate of rotation, leap seconds are occasionally inserted into UTC. Terrestrial Time (TT) is a time system with no leap seconds.&lt;br /&gt;
&lt;br /&gt;
Returns double-precision Julian Dates in Terrestrial Time. The returned values are as accurate as the input, although that accuracy may be further limited by uncertainty in Delta-T. See the function [[DeltaT]] for details.&lt;br /&gt;
&lt;br /&gt;
For more information, see http://heasarc.gsfc.nasa.gov/docs/xte/abc/time_tutorial.html and http://www.giss.nasa.gov/tools/mars24/help/algorithm.html.&lt;br /&gt;
&lt;br /&gt;
When JD2Marslsubs() is entered without any arguments, it prints its description, as shown below.&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; JD2Marslsubs()&lt;br /&gt;
 &lt;br /&gt;
 Convert a Julain data directly to Ls&lt;br /&gt;
 $1&amp;amp;#61;Julian date&lt;br /&gt;
 &lt;br /&gt;
 J2000 &amp;amp;#61; is date in J2000? (Default &amp;amp;#61; 0)&lt;br /&gt;
 This function was modified from: giss.nasa.gov/tools/mars24&lt;br /&gt;
 NOTE: This only works for JD &amp;gt; 2000&lt;br /&gt;
 c.edwards&lt;br /&gt;
&lt;br /&gt;
 dv&amp;gt; jd&amp;amp;#61;JD(2012,4,1,0,0,0)&lt;br /&gt;
 2456018.500&lt;br /&gt;
 dv&amp;gt; JD2Marslsubs(jd)&lt;br /&gt;
 90.80322946&lt;br /&gt;
 |&lt;br /&gt;
|&lt;br /&gt;
*[[sind]]&lt;br /&gt;
*[[cosd]]&lt;br /&gt;
*[[double]]&lt;br /&gt;
|&lt;br /&gt;
*[[clock]]&lt;br /&gt;
*[[DeltaT]]&lt;br /&gt;
*[[earthtime]]&lt;br /&gt;
*[[JD]]&lt;br /&gt;
*[[JD2Dt]]&lt;br /&gt;
*[[JD2ET]]&lt;br /&gt;
*[[MJD2TT]]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
1.18&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions|{{lcfirst:{{uc:{{PAGENAME}}}}}}]]&lt;br /&gt;
[[category:User Defined Functions|{{lcfirst:{{uc:{{PAGENAME}}}}}}]]&lt;br /&gt;
[[category:Time|{{lcfirst:{{uc:{{PAGENAME}}}}}}]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=XV_hotkeys</id>
		<title>XV hotkeys</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=XV_hotkeys"/>
				<updated>2013-12-31T22:12:29Z</updated>
		
		<summary type="html">&lt;p&gt;Mveto: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Glossary|While a XV window is active, you can press certain keys to perform certain actions:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Section 1: Mouse Usage in the Image Window'''&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Button1''' draws a selection rectangle&lt;br /&gt;
&lt;br /&gt;
'''Button2''' display pixel values, measure distance, picks drawing color&lt;br /&gt;
&lt;br /&gt;
'''Button3''' opens or closes the xv controls window&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt; Button1''' Zoom In&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt; Button2''' Pan (while zoomed in)&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt; Button3''' Zoom Out&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Shift&amp;gt; Button1''' draws a square selection rectangle&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Shift&amp;gt; Button2''' freehand drawing tool&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Shift&amp;gt; &amp;lt;Ctrl&amp;gt;''' Button2 line drawing tool&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Shift&amp;gt; Button3''' smudging tool&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Section 2: Mouse Usage in Selection Rectangle'''&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Button1''' moves selection rectangle&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Shift&amp;gt; Button1''' moves selection, constrains motion&lt;br /&gt;
&lt;br /&gt;
'''Button2''' ‘drag-and drop’ cut and paste&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Shift&amp;gt; Button2''' ‘drag and drop’ cut and paste, constrains motion&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt; Button2''' ‘drag and drop’ copy and paste&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Shift&amp;gt; &amp;lt;Ctrl&amp;gt; Button2''' ‘drag and drop’ copy and paste, constrains motion&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Section 3: Normal Keyboard Equivalents'''&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Tab&amp;gt;''' or '''&amp;lt;Space&amp;gt;''' Next&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Return&amp;gt;''' reload currently selected image file&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Delete&amp;gt;''' or &amp;lt;Backspace&amp;gt; Prev&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt;''' l Load&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt;''' s Save&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt;''' p Print&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt;''' d Delete&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt;''' q or q Quit&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt;''' x Cut&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt;''' c Copy&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt;''' v Paste&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt;''' d Clear&lt;br /&gt;
&lt;br /&gt;
'''n''' reset image to Normal size&lt;br /&gt;
&lt;br /&gt;
'''m''' Max&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;'''Section 4: Mouse and Keyboard'''&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''M''' Maxpect&lt;br /&gt;
&lt;br /&gt;
'''&amp;gt;''' Double Size&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;''' Half Size&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Period&amp;gt;''' 10% Larger&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Comma&amp;gt;''' 10% Smaller&lt;br /&gt;
&lt;br /&gt;
'''S''' Set Size&lt;br /&gt;
&lt;br /&gt;
'''a''' Re-Aspect&lt;br /&gt;
&lt;br /&gt;
'''4''' 4x3&lt;br /&gt;
&lt;br /&gt;
'''I''' Int. Expand&lt;br /&gt;
&lt;br /&gt;
'''t''' turn image 90° clockwise&lt;br /&gt;
&lt;br /&gt;
'''T''' turn image 90° counter-clockwise&lt;br /&gt;
&lt;br /&gt;
'''h''' flip image horizontally&lt;br /&gt;
&lt;br /&gt;
'''v''' flip image vertically&lt;br /&gt;
&lt;br /&gt;
'''P''' Pad&lt;br /&gt;
&lt;br /&gt;
'''A''' Text Annotation&lt;br /&gt;
&lt;br /&gt;
'''c''' Crop&lt;br /&gt;
&lt;br /&gt;
'''u''' UnCrop&lt;br /&gt;
&lt;br /&gt;
'''C''' AutoCrop&lt;br /&gt;
&lt;br /&gt;
'''r''' Raw&lt;br /&gt;
&lt;br /&gt;
'''d''' Dither&lt;br /&gt;
&lt;br /&gt;
'''s''' Smooth&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; 8''' toggle between 8-bit and 24-bit modes&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt; v or V''' Visual Schnauzer&lt;br /&gt;
&lt;br /&gt;
'''e''' Color Editor&lt;br /&gt;
&lt;br /&gt;
'''i''' Image Info&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt; c''' Image Comments&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt; t''' Text View&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt; g''' Grab&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Ctrl&amp;gt; a''' About XV&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; b''' Blur&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; s''' Sharpen&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; e''' Edge Detection&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; m''' Emboss&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; o''' Oil Paint&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; B''' Blend&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; t''' Copy Rotate&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; T''' Clear Rotate&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; p''' Pixelize&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;Meta&amp;gt; S''' Spread&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Source: XV: Interactive image Display for the X Window System [John Bradely 1994]&lt;br /&gt;
&lt;br /&gt;
|}}&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;br /&gt;
[[category:GnuPlot]]&lt;/div&gt;</summary>
		<author><name>Mveto</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=themis_meridian</id>
		<title>themis meridian</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=themis_meridian"/>
				<updated>2013-11-09T01:53:58Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Used to calculate a the central meridian of a THEMIS image&lt;br /&gt;
|&lt;br /&gt;
Arguments: file_id&lt;br /&gt;
&lt;br /&gt;
Return Value: the central longitude for the given image wrt to the target latitude&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: themis3db( file_id [,target &amp;amp;#61; FLOAT])&lt;br /&gt;
&lt;br /&gt;
Input Parameters:&lt;br /&gt;
&lt;br /&gt;
file_id - 9 digit [[THEMIS]] file_id&lt;br /&gt;
&lt;br /&gt;
Options:&lt;br /&gt;
&lt;br /&gt;
target - is the target latitude that the meridian should be calculated from&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; out&amp;amp;#61;themis_meridian(&amp;quot;I01001001&amp;quot;)&lt;br /&gt;
 Downloading.done.&lt;br /&gt;
 316.4004211&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[cross]]&lt;br /&gt;
*[[dot]]&lt;br /&gt;
*[[themis3db]]&lt;br /&gt;
|&lt;br /&gt;
*[[themis3db]]&lt;br /&gt;
*[[idinfo]]&lt;br /&gt;
*[[available_maps]]&lt;br /&gt;
*[[get_image]]&lt;br /&gt;
|&lt;br /&gt;
*themis_science.dvrc&lt;br /&gt;
|1.05&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:User Defined Functions]]&lt;br /&gt;
[[category:THEMIS Science]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=TES_deconvolution_cookbook</id>
		<title>TES deconvolution cookbook</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=TES_deconvolution_cookbook"/>
				<updated>2013-10-29T18:21:17Z</updated>
		
		<summary type="html">&lt;p&gt;Jhill: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Procedure|&amp;lt;&amp;lt;&amp;lt;&amp;lt;UNDER CONSTRUCTION&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This procedure illustrates the standard method to deconvolve TES spectra.&lt;br /&gt;
|&lt;br /&gt;
'''(1) Find TES Spectra in JMARS'''&lt;br /&gt;
&lt;br /&gt;
* Open TES layer, select ''Add'' -&amp;gt; ''Pre-defined Templates'' -&amp;gt; ''Spectra: Warm Surface, High Quality, Clear Atmosphere''&lt;br /&gt;
&lt;br /&gt;
* Replace Atmosphere Adjusted Emissivity with Emissivity. In Fields, select ''atm_adj_emissivity'', select ''Delete''. Next to Fields, select ''Add'' -&amp;gt; ''Emissivity''.&lt;br /&gt;
&lt;br /&gt;
* A note on JMARS atmosphere-adjusted emissivity spectra:&lt;br /&gt;
 These spectra are derived by deconvolving the spectra using a standard set of surface&lt;br /&gt;
 and atmosphere endmembers. This works well for a first pass, but may remove surface&lt;br /&gt;
 features since many mineral endmembers are not in this standard library. So, while you&lt;br /&gt;
 could use this data set for more detailed work, it is highly recommend to redo the&lt;br /&gt;
 atmosphere removal with your full mineral library.&lt;br /&gt;
&lt;br /&gt;
* Limit spacecraft motion. This includes high-gain antenna and solar panel motion. Under Selects, select ''Add'', then:&lt;br /&gt;
 hga_motion &amp;amp;#61; 1 (min) to 1 (max)&lt;br /&gt;
 pnl_motion &amp;amp;#61; 1 (min) to 2 (max)&lt;br /&gt;
&lt;br /&gt;
* Limit spacecraft ''ocks''. 1583 is the start of the science phase, same as orbit 0. For ocks above 7000, the TES detectors sometimes exhibit an instrumental error (the &amp;quot;glitch&amp;quot;) that results in a reversal of the dust absorption near 1100 wavenumbers, creating a broad peak with random direction (peak or trough) and amplitude in the spectra centered around 1000 wn, and extending between 900-1100 wn. This is most likely caused by internal motion within the spacecraft affecting the interferometer. The glitch can be somewhat compensated for by averaging many icks from the same ock, but this isn't recommended for most applications. Bolometer/albedo data is not affected by the glitch.&lt;br /&gt;
 ock &amp;amp;#61; 1583 (min) to 7000 (max).&lt;br /&gt;
&lt;br /&gt;
* Change ''target_temp'' (can be lowered for greater coverage):&lt;br /&gt;
 target_temp (min) &amp;amp;#61; 260&lt;br /&gt;
&lt;br /&gt;
* Delete ''best_fit_opacities'', replace with ''tot_ice'' and ''tot_dust''. Recommended limits (can be adjusted to higher values for more coverage):&lt;br /&gt;
 tot_ice &amp;amp;#61; (min) 0.00 (max) 0.04&lt;br /&gt;
 tot_dust &amp;amp;#61; (min) 0.00 (max) 0.15&lt;br /&gt;
&lt;br /&gt;
* Hit ''Submit'' (and save as template if you don't want to redo this in the future!)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''(2) Download emissivity spectra'''&lt;br /&gt;
&lt;br /&gt;
* Select spectra in map, highlight in spectra dialog. Save as text file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''(3) Load spectra and spectral libraries into Davinci'''&lt;br /&gt;
&lt;br /&gt;
* Use split_ock to load spectra&lt;br /&gt;
 dv&amp;gt; tes &amp;amp;#61; split_ock(&amp;quot;file.txt&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
* View using pplot&lt;br /&gt;
 dv&amp;gt; pplot(tes.ock6002avgcat,xaxis &amp;amp;#61; lib.xaxis,x1 &amp;amp;#61; 1300,x2 &amp;amp;#61; 200)&lt;br /&gt;
&lt;br /&gt;
* Load spectral library&lt;br /&gt;
 dv&amp;gt; lib &amp;amp;#61; load(&amp;quot;speclib.hdf&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
* Load atmospheric library&lt;br /&gt;
 dv&amp;gt; atm &amp;amp;#61; load(&amp;quot;atm.hdf&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
* Published spectral libraries (e.g., Rogers et al, 2007) can be reconstructed from the speclib website (speclib.asu.edu).&lt;br /&gt;
&lt;br /&gt;
* Mineral library selection guidelines:&lt;br /&gt;
 - Make sure the library captures the mineralogic diversity expected&lt;br /&gt;
 - Make sure the library captures crystal chemical differences (make sure that all&lt;br /&gt;
 wavelength regions are being represented)&lt;br /&gt;
 - Pay close attention to spectral quality using the quality flags for each mineral,&lt;br /&gt;
 and also by looking at each spectrum for particle size effects&lt;br /&gt;
&lt;br /&gt;
* Some notes on spectral contrast:&lt;br /&gt;
 - The endmembers in the library have varying degrees of spectral contrast, mostly due&lt;br /&gt;
 to grain size&lt;br /&gt;
 - In general, avoid using hand samples because they have such high spectral contrast&lt;br /&gt;
 - If you have to use a hand sample, try to scale the spectrum accordingly&lt;br /&gt;
 (e.g., by 0.4 to 0.5)&lt;br /&gt;
 - What to do with a surface spectrum with low spectral contrast? This shouldn't be a&lt;br /&gt;
 problem in general, but be advised that this might increase the noise&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''(4) Remove atmospheric component'''&lt;br /&gt;
&lt;br /&gt;
* Use spectral mixture analysis (SMA) to do deconvolution:&lt;br /&gt;
 dv&amp;gt; unmix1 &amp;amp;#61; sma(tes.ock6002avgcat,lib,atm,wave1 &amp;amp;#61; 232,wave2 &amp;amp;#61; 1302,nn &amp;amp;#61; 1,surface &amp;amp;#61; 1)&lt;br /&gt;
&lt;br /&gt;
* View using pplot:&lt;br /&gt;
 dv&amp;gt; pplot({unmix1.rematm,unmix1.modsur},xaxis &amp;amp;#61; lib.xaxis,x1 &amp;amp;#61; 1300,x2 &amp;amp;#61; 200)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''(5) Deconvolve surface spectrum'''&lt;br /&gt;
&lt;br /&gt;
* Use spectral mixture analysis (SMA) to do deconvolution:&lt;br /&gt;
 dv&amp;gt; unmix2 &amp;amp;#61; sma(unmix1.rematm,lib,wave1 &amp;amp;#61; 232,wave2 &amp;amp;#61; 1302,nn &amp;amp;#61; 1,exclude &amp;amp;#61; 43)&lt;br /&gt;
&lt;br /&gt;
* View quick summary of results, including errors (RMS):&lt;br /&gt;
 dv&amp;gt; summary_sma(unmix2,1,1,group &amp;amp;#61; 1)&lt;br /&gt;
&lt;br /&gt;
* Some notes on interpreting/using RMS error from spectral mixture analysis (SMA):&lt;br /&gt;
 - Use RMS error to make sure your mineral library is in the right ballpark&lt;br /&gt;
 - DO NOT only look at RMS error, but also check the fit to the spectrum to make sure&lt;br /&gt;
 specific features are being correctly modeled&lt;br /&gt;
 - Note that the spectra need to be normalized for spectral contrast if you want to&lt;br /&gt;
 consider the RMS error as an absolute (to compare between regions)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
*[[load]]&lt;br /&gt;
*[[split ock]]&lt;br /&gt;
*[[pplot]]&lt;br /&gt;
*[[sma]]&lt;br /&gt;
*[[summary_sma]]&lt;br /&gt;
|&lt;br /&gt;
*[[Standard THEMIS IR Processing with ISIS3]]&lt;br /&gt;
*[[Using TES to atmospherically correct THEMIS]]&lt;br /&gt;
*[[THEMIS deconvolution]]&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Procedures]]&lt;/div&gt;</summary>
		<author><name>Mveto</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=AVIRIS</id>
		<title>AVIRIS</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=AVIRIS"/>
				<updated>2013-10-17T17:57:51Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: Created page with &amp;quot;{{DavinciWiki_Glossary|[http://aviris.jpl.nasa.gov/ AVIRIS] is an airborne hyperspectral visible/near-infrared instrument.|}}  category:Glossary&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Glossary|[http://aviris.jpl.nasa.gov/ AVIRIS] is an airborne hyperspectral visible/near-infrared instrument.|}}&lt;br /&gt;
&lt;br /&gt;
[[category:Glossary]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	<entry>
		<id>https://davinci.mars.asu.edu/index.php?title=load_aviris</id>
		<title>load aviris</title>
		<link rel="alternate" type="text/html" href="https://davinci.mars.asu.edu/index.php?title=load_aviris"/>
				<updated>2013-10-17T17:56:28Z</updated>
		
		<summary type="html">&lt;p&gt;Cedwards: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DavinciWiki_Function|&lt;br /&gt;
Read an [[AVIRIS]] instrument image and store it in a variable as a davinci [[Geo-Struct]]&lt;br /&gt;
&lt;br /&gt;
Please check the [[GDAL]] information for more information about gdal.&lt;br /&gt;
|&lt;br /&gt;
Arguments: Accepts an AVIRIS ENVI formatted image file.  NOTE:  This should include all the other ancellary files that come with an AVIRIS download, including the spectral xaxis and the gain file.&lt;br /&gt;
&lt;br /&gt;
Return Value: A davinci structure containing .data and meta-data&lt;br /&gt;
|&lt;br /&gt;
[[Syntax]]: load_aviris(filename)&lt;br /&gt;
&lt;br /&gt;
filename - path of the AVIRIS file&lt;br /&gt;
|&lt;br /&gt;
 dv&amp;gt; a&amp;amp;#61;load_aviris($1)&lt;br /&gt;
 Apparent file size: 2x224x1&lt;br /&gt;
 Read ASCII file: 2x224x1&lt;br /&gt;
 Apparent file size: 2x224x1&lt;br /&gt;
 Read ASCII file: 2x224x1&lt;br /&gt;
 struct, 15 elements&lt;br /&gt;
 anc: struct, 11 elements&lt;br /&gt;
   wkt: Text Buffer with 19 lines of text&lt;br /&gt;
     1: PROJCS[&amp;quot;UTM Zone 12, Northern Hemisphere&amp;quot;,&lt;br /&gt;
     2: GEOGCS[&amp;quot;WGS 84&amp;quot;,&lt;br /&gt;
     3: DATUM[&amp;quot;WGS_1984&amp;quot;,&lt;br /&gt;
     4: SPHEROID[&amp;quot;WGS 84&amp;quot;,6378137,298.257223563,&lt;br /&gt;
     5: AUTHORITY[&amp;quot;EPSG&amp;quot;,&amp;quot;7030&amp;quot;]],&lt;br /&gt;
     6: TOWGS84[0,0,0,0,0,0,0],&lt;br /&gt;
     7: AUTHORITY[&amp;quot;EPSG&amp;quot;,&amp;quot;6326&amp;quot;]],&lt;br /&gt;
     8: PRIMEM[&amp;quot;Greenwich&amp;quot;,0,&lt;br /&gt;
     9: AUTHORITY[&amp;quot;EPSG&amp;quot;,&amp;quot;8901&amp;quot;]],&lt;br /&gt;
     10: UNIT[&amp;quot;degree&amp;quot;,0.0174532925199433,&lt;br /&gt;
   bandcount: 224&lt;br /&gt;
   metadata: struct, 3 elements...&lt;br /&gt;
   proj4: &amp;quot;'+proj&amp;amp;#61;utm +zone&amp;amp;#61;12 +ellps&amp;amp;#61;WGS84 +towgs84&amp;amp;#61;0,0,0,0,0,0,0 +units&amp;amp;#61;m +no_defs '&amp;quot;&lt;br /&gt;
   origin: 1x2x1 array of double, bsq format [16 bytes]&lt;br /&gt;
   pixel_size: 1x2x1 array of double, bsq format [16 bytes]&lt;br /&gt;
   lat: 1x5x1 array of float, bsq format [20 bytes]&lt;br /&gt;
   lon: 1x5x1 array of float, bsq format [20 bytes]&lt;br /&gt;
   lpo: 1x5x1 array of float, bsq format [20 bytes]&lt;br /&gt;
   spo: 1x5x1 array of float, bsq format [20 bytes]&lt;br /&gt;
   center: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
 projection: &amp;quot;Transverse_Mercator&amp;quot;&lt;br /&gt;
 spheroid: struct, 3 elements&lt;br /&gt;
 name: &amp;quot;WGS 84&amp;quot;&lt;br /&gt;
   radius: &amp;quot;6378137&amp;quot;&lt;br /&gt;
   iflattening: &amp;quot;298.2572236&amp;quot;&lt;br /&gt;
   resolution: 10.40000000&lt;br /&gt;
 x: 58040.13942&lt;br /&gt;
 y: -388157.7981&lt;br /&gt;
 ul: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
 ll: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
 ur: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
 lr: 2x1x1 array of float, bsq format [8 bytes]&lt;br /&gt;
 w: 743&lt;br /&gt;
 h: 3080&lt;br /&gt;
 data: 743x3080x224 array of float, bip format [2,050,442,240 bytes]&lt;br /&gt;
 ignore: -32768&lt;br /&gt;
 xaxis: 1x1x224 array of float, bsq format [896 bytes]&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
*[[read_geo]]&lt;br /&gt;
*[[CentralMeridian_to_UTMzone]]&lt;br /&gt;
*[[hasvalue]]&lt;br /&gt;
*[[add_gcps_geo]]&lt;br /&gt;
|&lt;br /&gt;
*[[read_geo]]&lt;br /&gt;
*[[proj_geo]]&lt;br /&gt;
*[[read_geometa]]&lt;br /&gt;
*[[write_geotiff]]&lt;br /&gt;
|&lt;br /&gt;
*aviris_science.dvrc&lt;br /&gt;
|&lt;br /&gt;
1.00&lt;br /&gt;
|&lt;br /&gt;
}}&lt;br /&gt;
[[category:Functions]]&lt;br /&gt;
[[category:User Defined Functions]]&lt;br /&gt;
[[category:AVIRIS Science]]&lt;br /&gt;
[[category:Input/Output]]&lt;/div&gt;</summary>
		<author><name>Cedwards</name></author>	</entry>

	</feed>