How to Prepare Curated Alias¶
This guide explains how to prepare an alias file and use it as the Curated alias that will be displayed for a factor layer by default in CartoScope
Concepts¶
1. Prepare Your Alias File¶
Alias File Format
- The file must be a tab-separated file (
.tsv) with one row per factor. - It should contains two columns:
- 1st column (header: either
indexorname): numeric factor indices. - 2nd column (header:
alias): aliases names.
- 1st column (header: either
Example Alias File
1 2 3 4 | |
2. Link You Alias File in catalog.yaml¶
If you this alias file to by displayed for a factor layer of a dataset, define it in catalog.yaml.
Example catalog.yaml with Alias Files
In the example, we want to provide the curated_alias.tsv to the target_layer factor layer in the example_data dataset.
1 2 3 4 5 6 7 8 9 10 | |
In this setup:
aliasis the curated default alias table used as the Curated source.