X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 21 Apr 2008 07:41 AM by  anon
GAINOFF_DOIT
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
21 Apr 2008 07:41 AM
    when I use GAINOFF_DOIT routine as follow: ENVI_DOIT, 'GAINOFF_DOIT',dims=dims,fid=openfid,gain=reflectance_scales, offset=reflectance_offsets,out_name='I:\EXAMPLE\Image\out_ref',pos=0,r_fid=reffid reflectance_scales and reflectance_offsets are float arrays. The datatype of inputfile is Unsighted Int. why the datatype of the result image is Unsighted Int? If I hope the datatype is float, What should I do?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    21 Apr 2008 07:41 AM
    The documentation on this routine is incomplete. In the GUI, you can specify the output data type. In the GAINOFF_DOIT routine, it will return the same data type as the input unless you specify it, but the help doesn't document the 'OUT_DT' keyword. So, change your code to do something like the following: envi_doit, 'gainoff_doit', $ fid=fid, pos=pos, dims=dims, out_dt=4, $ gain=gain, offset=offset, $ out_name=out_name, r_fid=r_fid Where out_dt is set to '4' which is floating point output.
    You are not authorized to post a reply.