Metadata

{{ path }}
{% if meta.schunk %} {% set shape = '%s items (%d bytes)' % (meta.shape, meta.schunk.nbytes) %} {% set _ = meta.__setattr__('shape', shape) %} {% set chunks = '%s items (%d bytes)' % (meta.chunks, meta.schunk.chunksize) %} {% set _ = meta.__setattr__('chunks', chunks) %} {% set cparams = meta.schunk.cparams %} {% set schunk = meta.schunk %} {% for key, value in cparams %} {% if key not in ['filters', 'filters_meta'] %} {% set _ = schunk.__setattr__(key, value) %} {% endif %} {% endfor %} {% set _ = schunk.__delattr__('cparams') %} {% set _ = meta.__setattr__('schunk', schunk) %} {% set blocks = '%s items (%d bytes)' % (meta.blocks, meta.schunk.blocksize) %} {% set _ = meta.__setattr__('blocks', blocks) %} {% set nbytes_value = '%d (cbytes: %d ; cratio: %.2f)' % (meta.schunk.nbytes, meta.schunk.cbytes, meta.schunk.cratio) %} {% set _ = meta.schunk.__setattr__('nbytes', nbytes_value) %} {% set _ = meta.schunk.__delattr__('cbytes') %} {% set _ = meta.schunk.__delattr__('cratio') %} {% else %} {% set nbytes_value = '%d (cbytes: %d ; cratio: %.2f)' % (meta.nbytes, meta.cbytes, meta.cratio) %} {% set _ = meta.__setattr__('nbytes', nbytes_value) %} {% set _ = meta.__delattr__('cbytes') %} {% set _ = meta.__delattr__('cratio') %} {% set _ = meta.cparams.__delattr__('filters') %} {% set _ = meta.cparams.__delattr__('filters_meta') %} {% endif %} {% for key, value in meta %} {% if key in ['schunk', 'cparams'] %} {% for key2, value2 in meta[key] %} {% if key2 not in ['chunkshape', 'chunksize'] %} {% if key2 == 'urlpath' %} {% set key2 = 'cachepath' %} {% endif %} {% endif %} {% endfor %} {% else %} {% if key == 'urlpath' %} {% set key = 'cachepath' %} {% endif %} {% endif %} {% endfor %}
{{ key2 }} {{ value2 }}
{{ key }} {{ value }}