Skip to content

Commit 5bcbf64

Browse files
authored
Merge pull request #5 from rabernat/patch-1
Change to offset, size
2 parents 5389feb + 1b976ed commit 5bcbf64

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ Spec for the structure required by ReferenceFileSystem:
88
{
99
"key0": "data",
1010
"key1": {
11-
["protocol://target_url", 100, 200]
11+
["protocol://target_url", 100, 100]
1212
}
1313
}
1414
```
1515

16-
where "key0" includes data as-is (stored as text), and "key1" refers to the given remote URL, the set of bytes
17-
between the given start-stop values (start is inclusive, end is not, as is typical for python).
16+
where "key0" includes data as-is (stored as text), and "key1" refers to the given remote URL, the offset within the file (in bytes), and the length of the data item (in bytes).
1817

1918
For example, zarr data might be stored like
2019

@@ -24,6 +23,6 @@ For example, zarr data might be stored like
2423
".zattrs": "{\n \"Conventions\": \"UGRID-0.9.0\n\"},
2524
"x/.zattrs": "{\n \"_ARRAY_DIMENSIONS\": [\n \"node\"\n ...",
2625
"x/.zarray": "{\n \"chunks\": [\n 9228245\n ],\n \"compressor\": null,\n \"dtype\": \"<f8\",\n ...",
27-
"x/0": ["s3://bucket/path/file.nc", 294094376, 367920336]
26+
"x/0": ["s3://bucket/path/file.nc", 294094376, 73825960]
2827
},
2928
```

0 commit comments

Comments
 (0)