Closed yanliu-chn closed 8 years ago
@yanliu-chn the problem was indeed that terraref.sh was ignoring a non-zero return code due to recent changes. now fixed. please pull and try again and close issue if you receive the non-zero return code on exit.
@yanliu-chn also, fyi, i reduced the memory required by ncap2 from 5x sizeof(raw) to 4x sizeof(raw). best to allot 4.1x so as not to cut it too close. the footprint cannot be further reduced without significantly slowing the processing. half the memory holds the original image (promoted from short to float) and the other half holds the computed reflectance (float). so 4x raw image is the smallest natural size of the computation without using loops.
I confirm, after testing on VM that caused error and ROGER which succeeded, that the changes you made work as expected. Thanks a lot for fixing this!
Please feel free to close this ticket.
@czender as we discussed, it'd be good to return with error when not enough memory is allocated for ncap2 and caused it to fail.
Here is an example of the error. Currently the program continues to finish with return code 0.