# Using the Zarr Tile Sink

The `ZarrFileTileSource` class has file-writing capabilities; an empty image can be created, image data can be added as tiles or arbitrary regions, and the image can be saved to a file in any of several formats.

Typically, this class is called a “source” when reading from a file and a “sink” when writing to a file. This is just a naming convention, but the read mode and write mode are not mutually exclusive.

## Installation

```none
[1]:
```

```none
[2]:
```

## Sample Data Download

For this example, we will use data from a sample file. We will copy and modify tiles from this image, writing the modified data to a new file.

```none
[2]:
```

```none
[3]:
```

```none
[3]:
```

```none
[4]:
```

```none
[4]:
```

```none
[5]:
```

## Writing Processed Data to a New File

```none
[7]:
```

```none
[7]:
```

```none
[7]:
```

```none
[8]:
```

## Edit Attributes and Write Result File

```none
[9]:
```

## View Results

```none
[10]:
```

```none
[10]:
```

```none
[11]:
```

```none
[11]:
```

```none
[12]:
```
