{"id":25774450,"url":"https://github.com/markusand/defrost-consumer","last_synced_at":"2026-05-15T02:40:12.363Z","repository":{"id":54597552,"uuid":"521665590","full_name":"markusand/defrost-consumer","owner":"markusand","description":"Retrieve raster data from the DeFROST API","archived":false,"fork":false,"pushed_at":"2022-08-08T11:50:52.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-28T07:28:19.986Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/markusand.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}},"created_at":"2022-08-05T14:19:34.000Z","updated_at":"2024-04-28T07:28:19.987Z","dependencies_parsed_at":"2022-08-13T20:50:33.703Z","dependency_job_id":null,"html_url":"https://github.com/markusand/defrost-consumer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusand%2Fdefrost-consumer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusand%2Fdefrost-consumer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusand%2Fdefrost-consumer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markusand%2Fdefrost-consumer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markusand","download_url":"https://codeload.github.com/markusand/defrost-consumer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240983679,"owners_count":19888738,"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":"2025-02-27T05:30:00.383Z","updated_at":"2026-05-15T02:40:12.291Z","avatar_url":"https://github.com/markusand.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeFROST raster extractor\n\nNodejs package to retrieve raster data from the [DeFROST API](https://docs.defrost.io/#defrost-api).\n\n## Setup\n\nInstall Nodejs if not installed yet.\n\nInstall the package\n\n```bash\nclone https://github.com/markusand/defrost-consumer.git\ncd defrost-consumer\nnpm install\n```\n\nCreate a `.env` file with the API login credentials\n\n```env\nDEFROST_USER=\nDEFROST_PSWD=\nDEFROST_CATCHMENT= (optional, defaults to 'andorra')\n```\n\nLaunch the script passing the desired date(s) as single parameters, a date range or a combination of both.\n\nProvide an optional catchment if not already set up in environment variables. *Defaults to `andorra`*.\n\nProvide an optional type of raster `sd`, `sce` or `swe`. *Defaults to `sd`*.\n\n\u003e **Notice all dates must follow the YYYY-MM-DD format**\n\n```bash\nnode src/index.js 2022-01-06 2022-02-14 --catchment=andorra --type=sce\n\nnode src/index.js --from=2021-12-25 --until=2021-12-31\n\nnode src/index.js 2022-01-06 2022-02-14 --from=2021-12-25 --until=2021-12-31\n```\n\nShorthand argument aliases are also available for convenience.\n\n| argument | alias |\n| --- | --- |\n| --type=sd | -t sd |\n| --catchment=andorra | -c andorra |\n| --from=2022-01-01 | -f 2022-01-01 |\n| --until=2022-01-06 | -u 2022-01-06 |\n\nAm npm start script is available for convenience as well.\n\n```bash\nnpm start -- --from=2022-01-01 --until=2022-01-06\n```\n\n**Notice the extra double dash `--` that MUST be included after the `npm start`.**\n\n## Output\n\nRasters will be stored in their correspondent subdirectory inside the `images` directory. All rasters in `images` can always be deleted, but not the directories themselves neither the `.gitkeep` files in them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkusand%2Fdefrost-consumer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkusand%2Fdefrost-consumer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkusand%2Fdefrost-consumer/lists"}