Solved

CDF Files and cloud optimized storage

  • 13 August 2021
  • 3 replies
  • 113 views

Userlevel 4
Badge

We are looking into cloud-optimized storage formats such as GeoTIFF, Parquet, etc. One of the things we are trying to determine is whether we could fully utilize such cloud optimized formats with CDF Files.

Will the download-link returned by CDF Files allow us to do seek-operations and only download parts of the file?

icon

Best answer by erlend.vollset 13 August 2021, 13:26

View original

3 replies

Hi Thomas,

Thanks for reaching out!

The download endpoint supports supplying the Range header to specify which byte range to download, e.g.

"Range": "bytes:1000-2000"

Please not that both start and end are inclusive.

Does that solve your problem?

Userlevel 4
Badge

Allowing for a range-argument is a nice feature.

 

Is this part of a propriatary protocol, or can I (in python) use something like gcsfs as described here:

 

https://pangeo.io/data.html

The Range header is part of HTTP, as specified by RFC7233 (https://datatracker.ietf.org/doc/html/rfc7233). Most blob stores will return an `Accept-Ranges` response header indicating support for Range requests. I’m not familiar with Pangeo, but if it conforms to this standard it should work fine.

Reply