nik

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: PyFU datacube mosaicking package (updated Oct 2016) #1095

    nik
    Participant

    I am using numpy version 1.10.1

    And the problem I was trying to fix occurs while running
    outmask += numpy.where(bdq, 0., trdq) in Addcubes:

    TypeError: Cannot cast ufunc add output from dtype(‘float64’) to dtype(‘uint8’) with casting rule ‘same_kind’

    in reply to: PyFU datacube mosaicking package (updated Oct 2016) #1092

    nik
    Participant

    Hi, The numpy problem mentioned above can be removed by changing the following line in pyfmosaic.py
    outmask = numpy.zeros(outshape, dtype=’uint8′)

    to

    outmask = numpy.zeros(outshape)

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)