Is it possible to tranform input URIs for the json output? #309
-
Hi - new to Kerchunk and fsspec! I want to use kerchunk to create json files that are mapped 1:1 with NetCDF files. This seems straightforward. On the input side I want to use an internal URI (i.e. I know that I can run a replace on the json, but is there a better way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
A replace seems perfectly reasonable to me! |
Beta Was this translation helpful? Give feedback.
A replace seems perfectly reasonable to me!
The basic mapping looks like {virtual_path: [real_path, offset, size]} or {virtual_path: [real_path]), so you could do the same with a comprehension.