Updating existing data in Zarr storage #49
Replies: 2 comments 3 replies
-
Hi @vietnguyengit, It's definitely possible to write to a subset of your Zarr array, for instance: z[row0:row1, col0:col1] = data But your data may have been stored using xarray's to_zarr, so you might want to access it using a coordinate system instead of raw indices. |
Beta Was this translation helpful? Give feedback.
-
Hi, @davidbrochart hope you're doing well, I come across this topic again and realise that when "deleting" chunks, The reason I need to use Currently, I try to create an "empty" xarray dataset and do it the same way when the pipeline receives a revised NetCDF file with Can you please advise? Thanks, David. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, apologise if this question has been asked, I couldn't find so I ask here.
In my scenario, I have 200000 NetCDF files storing marine data converted to Zarr (let's call it Big Zarr). It's common that after a few weeks/months, the data providers (where I received NetCDF files from) make some changes to the NetCDF files they sent before, not all 200k files, but just... for example 100 NetCDF files produced from a particular device due to new calibration enhancement.
When that happens, I want to just overwrite a specific region of Big Zarr holding data of the revised NetCDF files. Of course, I don't want to rewrite the whole 200k files to Zarr, I also don't want to append new revised NetCDF files to the end of current Big Zarr storage.
My question are, will that be doable? And if so, what should I need to look at ?
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions