Rank: 194374 based on 0 downloads (last 30 days) and 0 file submitted
photo

yann

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by yann View all
Updated File Comments Rating
31 Aug 2013 geotiffwrite Write a 2D or 3D array to a single or multi-band GeoTIFF file Author: Jimmy Shen

Jimmy,

sorry i just realized my mistake. I read your code too fast and kept using -8 for 8-bit unsigned integer instead of 8 (i thought that the 'minus' sign meant unsigned).

Everything works fine now. Thanks again for this great piece of work!

31 Aug 2013 geotiffwrite Write a 2D or 3D array to a single or multi-band GeoTIFF file Author: Jimmy Shen

Jimmy, thanks for your answer.

I got confused because the code runs into an error at line 1108 when the bit depth is set to -8. This seems to be because this case is not considered at lines 828-837, and the 'ifd.SampleFormat' variable is not created.
However, if i replace line 831 with 'case {-8, 8, -16}' then the code seems to run just fine.

Is it correct or did i miss something?

Thanks
Yann

30 Aug 2013 geotiffwrite Write a 2D or 3D array to a single or multi-band GeoTIFF file Author: Jimmy Shen

Hi Jimmy,

Thanks for the great code! It's really useful for those who have not switched to the new Matlab version.

I just would like to suggest a correction. I'm not sure but I think that there is a typo at line 829. Shouldn't it be 'case {1, -8}' instead of 'case {1, -1}' ?

Thanks,
Yann

Contact us