Re: [R] convert from float32 to 16B

2012-05-28 Thread jim holtman
Most likely you have a bug in your program. Have you looked at the results of your calculations before writing them out? Since you have provided no data, we can not reproduce what you are doing to show where the error might be, or the correct way of doing it. In almost all cases, if you think yo

[R] convert from float32 to 16B

2012-05-28 Thread sam84
I want to just convert from float32 to 16b with scale factor of 10. I wonder why some files were converted correctly while some were not converted correctly. By means, the results of some files are weird. the original files are all ok!. dir1<- list.files("C:\\New folder (13)", "*.img", full.nam