{"id":20630655,"url":"https://github.com/brookisme/cmap","last_synced_at":"2025-08-20T12:33:50.208Z","repository":{"id":151273985,"uuid":"154756040","full_name":"brookisme/cmap","owner":"brookisme","description":"CLI that adds color-maps to geotiffs","archived":false,"fork":false,"pushed_at":"2018-10-27T11:54:22.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T18:14:00.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brookisme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-26T00:47:09.000Z","updated_at":"2018-10-27T11:54:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cdaf58b-5a83-430f-b684-00fb707d467c","html_url":"https://github.com/brookisme/cmap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brookisme/cmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brookisme%2Fcmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brookisme%2Fcmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brookisme%2Fcmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brookisme%2Fcmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brookisme","download_url":"https://codeload.github.com/brookisme/cmap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brookisme%2Fcmap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265222569,"owners_count":23730239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T14:09:08.910Z","updated_at":"2025-07-13T23:34:51.358Z","avatar_url":"https://github.com/brookisme.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### CMAP: a simple cli for adding color-tables to geotiffs\n\n---\n\n###### INSTALL\n\n```bash\ngit clone https://github.com/brookisme/cmap.git\ncd sublr\npip install -e .\n```\n\n###### USAGE\n\n**NOTE**: Before using `cmap` you must [generate a config file](#config). \n\n1. [add](#add): create geotiff with color-table for a single file\n2. [add_dir](#add_dir): create geotiffs with color-table for all geotiffs in a directory\n3. [config](#config): generate cmap config file \n\n```\nUsage: cmap [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  add      add color-table to geotiff\n  add_dir  add color-table to geotiffs in dir\n  config   generate config file\n```\n\n---\n\n\u003ca name='add'\u003e\u003c/a\u003e\n\n##### ADD\n\n```\nUsage: cmap add [OPTIONS] [CMAP] SRC\n\n  create tif with color map for a single file\n\nOptions:\n  --dst TEXT      destination path: empty create name from src path\n  --ident TEXT    clr ident: filename.tif =\u003e filename.\u003cident\u003e.tif\n  --folder TEXT   destination directory: if None use current directory\n  --band INTEGER  band index: if None use all bands\n  --help          Show this message and exit.\n```\n\n\n---\n\n\u003ca name='add_dir'\u003e\u003c/a\u003e\n\n##### ADD DIR\n\n```\nUsage: cmap add_dir [OPTIONS] [CMAP] DIR_PATH\n\n  create geotiffs with color-table for all geotiffs in a directory\n\nOptions:\n  --dst TEXT      destination path: empty create name from src path\n  --ident TEXT    clr ident: filename.tif =\u003e filename.\u003cident\u003e.tif\n  --folder TEXT   destination directory: if None use current directory\n  --band INTEGER  band index: if None use all bands\n  --ext TEXT      extension: defaluts to tif: use  \"*.\u003cext\u003e\" to find files\n  --help          Show this message and exit.\n```\n\n---\n\n\u003ca name='config'\u003e\u003c/a\u003e\n\n##### CONFIG\n\nNOTES:\n\n* config file(s) must be generated before using other `cmap` methods\n* the config file contains:\n  - color-tables and default: added after generation (see [example](https://github.com/brookisme/cmap/blob/master/example.cmap.config.yaml)).\n  - option defaults\n* if a local config file is not present the `cmap` will use the global config.\n\n```\nUsage: cmap config [OPTIONS]\n\n  generate local or global config file\n\nOptions:\n  --force BOOLEAN          if true overwrite existing config\n  --global_config BOOLEAN  if true create global config otherwise local.\n                           defaults to False\n  --ext TEXT               default ext: config default is \"tif\"\n  --band INTEGER           default band: config default is None\n  --ident TEXT             default ident: config default is \"clr\"\n  --folder TEXT            default folder: config default is \"clr\"\n  --help                   Show this message and exit.\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrookisme%2Fcmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrookisme%2Fcmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrookisme%2Fcmap/lists"}