nasa-gibs/mrf

how muti band storaged in mrf compressed by lerc

lzxue opened this issue · 1 comments

lzxue commented

I had genarate 4 bands mrf file;
i read every tile from .idx ,but how get the all bands data every tile?

@lzxue
I believe you are asking for a way to generate an MRF with LERC in INTERLEAVE=PIXEL mode, with one tile containing the data for all bands. As opposed to the existing INTERLEAVE=BAND mode, where a tile contains data from a single band.
That set of options is not supported by MRF. LERC is a single band algorithm by definition, so a multi-band LERC is just a sequence of the individual bands compressed with LERC, the band pixels are not really interleaved.
From the MRF point of view, there is nothing to be gained by considering it pixel interleaved. It would make reading a single band from a multi-band MRF slower, since all the bands would have to be read at the same time.