Re: Pytroll/Satpy Metop composite


Ernst Lobsiger
 

On Sun, Feb 7, 2021 at 04:17 AM, Ferdinand Valk wrote:

Ernst,

 

Do you know why there is a behavioral difference in avhrr_l1b_eps.yaml between single and multi-pass?

 

Cheers,

Ferdinand

 

Ferdinand,

The reader only takes decompressed files. The single pass version decompresses bestfiles[].
For your multipass version you have to decompress goodfiles[]. You must add very few lines:

...
# Get useful info back from timmax
dt = datetime.fromtimestamp(timmax)
orbmax = orb.get_orbit_number(dt)
telmax = dt.strftime('%H:%M UTC')
tfname = dt.strftime('%H%M')

## ------------------------------- BEGIN STUFF MISSING
# Decompress all goodfiles found
for n in range (0, len(goodfiles)):
    filename = goodfiles[n][offset:-4]
    cmdstr = toodrp + '/EMCtools/exefiles/7za x -so ' + goodfiles[n] + ' > ' + filename
    goodfiles[n] = filename
    os.system(cmdstr)
## ------------------------------- END STUFF MISSING

# The blend function actually stacks the passes one after the other

numpass = 0
...

Cheers,
Ernst

Join MSG-1@groups.io to automatically receive all group messages.