{"id":37083011,"url":"https://github.com/craam/rstnpy","last_synced_at":"2026-01-14T10:02:27.444Z","repository":{"id":57463028,"uuid":"128260120","full_name":"craam/RSTNPy","owner":"craam","description":"Library to work with RSTN 1 second data","archived":false,"fork":false,"pushed_at":"2019-05-25T19:40:22.000Z","size":109,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T23:41:01.259Z","etag":null,"topics":["noaa","rstn","rstn-1-second","satellite","solar-physics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craam.png","metadata":{"files":{"readme":"README.org","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-04-05T20:23:00.000Z","updated_at":"2019-05-25T19:40:24.000Z","dependencies_parsed_at":"2022-09-05T15:20:10.296Z","dependency_job_id":null,"html_url":"https://github.com/craam/RSTNPy","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/craam/RSTNPy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craam%2FRSTNPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craam%2FRSTNPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craam%2FRSTNPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craam%2FRSTNPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craam","download_url":"https://codeload.github.com/craam/RSTNPy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craam%2FRSTNPy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["noaa","rstn","rstn-1-second","satellite","solar-physics"],"created_at":"2026-01-14T10:02:26.809Z","updated_at":"2026-01-14T10:02:27.436Z","avatar_url":"https://github.com/craam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: RSTNPy\n\nLibrary to work with RSTN 1 second data. Working for data after 2000.\nThe library provides the possibility of downloading the file for a\ngiven day from any of RSTN stations, and it is also able to generate a\ndataframe with the data.\n\n** Installation\n\n#+BEGIN_SRC bash\npip install rstnpy\n#+END_SRC\n\n** Dependencies\n\n- pandas \u003e= 0.21\n- requests \u003e= 2.20\n- numpy \u003e= 1.13\n- matplotlib \u003e= 2.2.2\n\n** How to use it\n\n#+BEGIN_SRC python\nimport matplotlib.pyplot as plt\n\nfrom rstnpy import RSTN\n\nyear = 2014\nmonth = 10\nday = 16\npath_to_files = \"data/\"\nstation = \"San vito\"\n\nrstn = RSTN(year, month, day, path_to_files, station)\n\n# Search and download the file.\nfilename = rstn.downloader.download_file()\n\n# Decompress the gzipped file into a text file.\nfilename = rstn.decompress_file(filename)\n\n# Generate a dataframe from the data.\ndf = rstn.create_dataframe()\n\n# Plot the data.\nax = rstn.plot()\n\nplt.plot()\n#+END_SRC\n\n** Known issues\n\nThere is a bug when we download the file. The bug itself *does not*\n*affect the functionality* as it is an ignored exception. It is a\napparently a tempfile bug.\n\nTraceback example running with python 3.6.\n\n#+BEGIN_SRC python\nException ignored in: \u003cbound method _TemporaryFileCloser.__del__ of \u003ctempfile._TemporaryFileCloser object at 0x7f2ba52df320\u003e\u003e\nTraceback (most recent call last):\n  File \"/usr/lib/python3.6/tempfile.py\", line 591, in __del__\n    self.close()\n  File \"/usr/lib/python3.6/tempfile.py\", line 584, in close\n    self.file.close()\nAttributeError: 'str' object has no attribute 'close'\n#+END_SRC\n\n** Compatibility\n\nThe library works with Python 3.5+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraam%2Frstnpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraam%2Frstnpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraam%2Frstnpy/lists"}