{"id":19129887,"url":"https://github.com/mathworks/noaa","last_synced_at":"2025-05-06T00:39:09.068Z","repository":{"id":63927337,"uuid":"553258683","full_name":"mathworks/noaa","owner":"mathworks","description":"Access National Oceanic and Atmospheric Administration (NOAA) Data from MATLAB","archived":false,"fork":false,"pushed_at":"2023-10-09T16:35:06.000Z","size":13,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-19T12:42:54.416Z","etag":null,"topics":["climate","matlab","noaa","noaa-data","noaa-weather"],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathworks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null}},"created_at":"2022-10-18T00:41:54.000Z","updated_at":"2024-12-22T00:36:35.000Z","dependencies_parsed_at":"2023-10-14T17:37:51.635Z","dependency_job_id":null,"html_url":"https://github.com/mathworks/noaa","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"5a81d53da4c9f70819e7ca40a3b2a45281dcfb0e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2Fnoaa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2Fnoaa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2Fnoaa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks%2Fnoaa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathworks","download_url":"https://codeload.github.com/mathworks/noaa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252601223,"owners_count":21774652,"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":["climate","matlab","noaa","noaa-data","noaa-weather"],"created_at":"2024-11-09T06:08:49.603Z","updated_at":"2025-05-06T00:39:09.037Z","avatar_url":"https://github.com/mathworks.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Getting Started with National Oceanic and Atmospheric Administration (NOAA) Data in MATLAB\u0026reg;\n\n## Description\n\nThis interface allows users to access NOAA data directly from MATLAB.  Quantative and climate risk analysts can use the available data to make investment decisions based on climate data and weather patterns.\n\n[![Open in MATLAB Online](https://www.mathworks.com/images/responsive/global/open-in-matlab-online.svg)](https://matlab.mathworks.com/open/github/v1?repo=mathworks/noaa)\n## System Requirements\n\n- MATLAB R2022a or later\n- Web services token supplied by NOAA: https://www.ncdc.noaa.gov/cdo-web/token\n\n## Features\n\nUsers can retrieve NOAA data directly from MATLAB.   NOAA documentation for Datasets, Data Categories, Data Types, Location Categories, Locations, Stations and Data can be found here: \n\nhttps://www.ncdc.noaa.gov/cdo-web/webservices/v2\n\nA valid NOAA connection is required for all requests.  Users can retrieve information required to make subsequent data requests.\n\n## Create a NOAA connection.\n\n```MATLAB\nn = noaa(\"myNOAAToken\");\n```\n\n## Retrieve datasets information\n\n### Get all available datasets information or information for a specific dataset\n```MATLAB\nd = datasets(n);\nd = datasets(n,\"GSOY\");\n```\n\n### Get data category information\n```MATLAB\nd = datacategories(n);\nd = datacategories(n,\"ANNAGR\");\nd = datacategories(n,[],\"location\",\"CITY:US390029\",\"locationid\",\"FIPS:37\",\"limit\",100);\n```\n\n### Get data types information\n```MATLAB\nd = datatypes(n);\nd = datatypes(n,\"ACMH\");\nd = datatypes(n,[],\"datacategoryid\",\"TEMP\",\"limit\",10);\nd = datatypes(n,[],\"stationid\",\"COOP:310090\");\n```\n\n### Get location category information\n```MATLAB\nd = locationcategories(n);\nd = locationcategories(n,\"CLIM_REG\");\nd = locationcategories(n,[],\"startdate\",\"1970-01-01\");\n```\n\n### Get location information\n```MATLAB\nd = locations(n);\nd = locations(n,\"FIPS:37\");\nd = locations(n,[],\"datasetid\",\"GHCND\");\nd = locations(n,[],\"locationcategoryid\",\"ST\",\"limit\",52);\nd = locations(n,[],\"locationcategoryid\",\"CITY\",\"sortfield\",\"name\",\"sortorder\",\"desc\");\n```\n\n### Get station information\n```MATLAB\nd = stations(n)\nd = stations(n,\"COOP:010008\")\nd = stations(n,[],\"locationid\",\"FIPS:37\")\nd = stations(n,[],\"datatypeid\",\"EMNT\",\"datatypeid\",\"EMXT\",\"datatypeid\",\"HTMN\")\n```\n\n### Get daily summary data for a given date range and location id\n```MATLAB\nd = getdata(n,\"GHCND\",datetime(\"2010-05-01\"),datetime(\"2010-05-10\"),\"locationid\",\"ZIP:28801\")\n```\n\n### Aggregate daily temperature data into a timetable\n```MATLAB\nannualTemperatureData = [];\nfor y = 2015:2022\n  annualTemperatureData = [annualTemperatureData;getdata(n,\"GHCND\", ...\n                            datetime(strcat(num2str(y),\"-01-01\")), ... \n                            datetime(strcat(num2str(y),\"-12-31\")), ...\n                            stationid  = \"GHCND:SPE00119783\", ...\n                            datatypeid = \"TAVG\", ...\n                            locationid = \"FIPS:SP\", ...\n                            limit      = 1000, ...\n                            units      = \"metric\")]; \nend\n\nTemperature = annualTemperatureData.value;\nDate = datetime(annualTemperatureData.date);\nT = timetable(Date, Temperature);\nhead(T)\n```\n\n## License\n\nThe license is available in the LICENSE.TXT file in this GitHub repository.\n\nCommunity Support\n\nMATLAB Central\n\nCopyright 2022 The MathWorks, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks%2Fnoaa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks%2Fnoaa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks%2Fnoaa/lists"}