{"id":20378284,"url":"https://github.com/botto/hadslp2","last_synced_at":"2025-03-04T22:19:07.073Z","repository":{"id":57260193,"uuid":"141907131","full_name":"botto/hadslp2","owner":"botto","description":"A lib to read hadslp2 files","archived":false,"fork":false,"pushed_at":"2018-07-22T15:27:30.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T07:18:40.486Z","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":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/botto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-22T15:22:56.000Z","updated_at":"2018-07-22T15:27:31.000Z","dependencies_parsed_at":"2022-08-25T05:01:29.179Z","dependency_job_id":null,"html_url":"https://github.com/botto/hadslp2","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/botto%2Fhadslp2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botto%2Fhadslp2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botto%2Fhadslp2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botto%2Fhadslp2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botto","download_url":"https://codeload.github.com/botto/hadslp2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241928743,"owners_count":20043874,"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-15T01:49:48.085Z","updated_at":"2025-03-04T22:19:07.052Z","avatar_url":"https://github.com/botto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HadSLP2 Parser\nThis is a simple lib with no deps that will format HadSLP2 data from the met office in a way that can be used in JS.  \n\nThe exposes one function that takes in a string and outputs a multi level object.  \nThe object is formated\nyear.month.vertdeg.horzdeg\n\nThe vertdeg goes from -90 to 90 indicating 90N to 90S\nThe horzdeg goes from -180 to 175 indicating 180W to 175E\n\nThe format of the data can be found at https://www.metoffice.gov.uk/hadobs/hadslp2/data/Read_instructions_HADSLP2_5dg  \n\nNote: There are differences in the data after 2005 which have to be taken in to account.  \nFuther details are on the met office download page https://www.metoffice.gov.uk/hadobs/hadslp2/data/download.html  \n\n## To use\n\n1. Download the near real time data https://www.metoffice.gov.uk/hadobs/hadslp2/data/hadslp2r.asc.gz\n2. Gunzip the file\n3. Read in the `hadslp2r.asc` file\n\n## Example\n```javascript\nconst fs = require('fs').promises;\nconst hadSLP2 = require('./lib/hadslp2');\n\n(async() =\u003e {\n    const rawBuffer = await fs.readFile('./hadslp2r.asc');\n    const rawStrings = rawBuffer.toString()\n    const pressureData = hadSLP2(rawStrings);\n})();\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotto%2Fhadslp2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotto%2Fhadslp2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotto%2Fhadslp2/lists"}