data type in export to envi

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

data type in export to envi

Agustin Lobo
I've computed forward and inverse MNF transform and  saved ("export") to
envi format. The resulting data type is 64-bit double precision
floating point (5 in
envi hdr) which is not accepted by my next processing step in envi (FLAASH).
Is there any way to select the data type at exporting in opticks?
Thanks

Agus

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Opticks-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-users
Reply | Threaded
Open this post in threaded view
|

Re: data type in export to envi

tclarke
Administrator
[Opticks-users] data type in export to envi
The easiest way to convert the data would be to use the IDL or Python scripting extensions. For example, to do a linear normalization of the data (to 2 byte integer) in Python, make the target data active (click in the window) and do something like:
 
> re1 = opticks.RasterLayer().element
> d = re1.data_array[...]
> d2 = d - d.min()
> d2 /= d2.max()
> d2 *= 65535
> d2 = d2.astype("uint16")
> re2 = opticks.RasterElement.create3d("Scaled Result", d2, interleave=re1.interleave)
> opticks.View.create(re2.name, re2)
 
Obviously you should substitute an appropriate scaling for the data. MNF results are not scaled to useful integer ranges nor are they normalized (0.0,1.0] so some normalization needs to be done. Linear is likely sufficient (as in above).


From: Agustin Lobo [mailto:[hidden email]]
Sent: Sat 9/21/2013 5:36 AM
To: [hidden email]
Subject: [Opticks-users] data type in export to envi

I've computed forward and inverse MNF transform and  saved ("export") to
envi format. The resulting data type is 64-bit double precision
floating point (5 in
envi hdr) which is not accepted by my next processing step in envi (FLAASH).
Is there any way to select the data type at exporting in opticks?
Thanks

Agus

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
https://urldefense.proofpoint.com/v1/url?u=http://pubads.g.doubleclick.net/gampad/clk?id%3D64545871%26iu%3D/4140/ostg.clktrk&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=Ho639Wn0LQPE3P8SnMqwUA%3D%3D%0A&m=suDMbkRJIoktAdQxTYWMmKSHPkDL8qtwob83czCAoxU%3D%0A&s=4c16a38a904f3197a66c6b0e95eb74bf5c3ddad7a313d435a08bab0a46be94c3
_______________________________________________
Opticks-users mailing list
[hidden email]
https://urldefense.proofpoint.com/v1/url?u=https://lists.sourceforge.net/lists/listinfo/opticks-users&k=1GMYaKjmAz8SrwAdnQ9klA%3D%3D%0A&r=Ho639Wn0LQPE3P8SnMqwUA%3D%3D%0A&m=suDMbkRJIoktAdQxTYWMmKSHPkDL8qtwob83czCAoxU%3D%0A&s=39a588f7e3f2ef5212ce8f21388badc41b4c96225bd849fff2a694c884f034cf



This message and any enclosures are intended only for the addressee. Please
notify the sender by email if you are not the intended recipient. If you are
not the intended recipient, you may not use, copy, disclose, or distribute this
message or its contents or enclosures to any other person and any such actions
may be unlawful. Ball reserves the right to monitor and review all messages
and enclosures sent to or from this email address.

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/22/13.
http://pubads.g.doubleclick.net/gampad/clk?id=64545871&iu=/4140/ostg.clktrk
_______________________________________________
Opticks-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/opticks-users