Skip to content

Commit 8e65803

Browse files
authored
Merge pull request #18 from 3ldr0n/master
Release v1.0
2 parents 843e786 + 47b6195 commit 8e65803

13 files changed

Lines changed: 742 additions & 823 deletions

File tree

README.org

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,43 @@
1-
* GetRSTN
1+
* RSTNPy
22

3-
Download RSTN 1 second data from NOAA's site. Working for data after 2000.
3+
Library to work with RSTN 1 second data from NOAA's site. Working for data after 2000.
44

55
** Installation
66

77
#+BEGIN_SRC bash
8-
pip install getrstn
8+
pip install rstnpy
99
#+END_SRC
1010

1111
** How to use it
1212

1313
#+BEGIN_SRC python
1414
import matplotlib.pyplot as plt
1515

16-
from getrstn import GetRSTN
16+
from rstnpy import RSTN
1717

1818
day = 16
1919
month = 10
2020
year = 2014
2121
path_to_files = "data/"
2222
station = "San vito"
2323

24-
rstn = GetRSTN(day, month, year, path_to_files, station)
24+
rstn = RSTN(day, month, year, path_to_files, station)
2525

26-
# Downloads, decompress the file and generate a dataframe.
27-
rstn.download_file()
28-
filename = rstn.decompress_file()
26+
# Search and download the file.
27+
filename = rstn.downloader.download_file()
28+
29+
# Decompress the gzipped file into a text file.
30+
filename = rstn.decompress_file(filename)
31+
32+
# Generate a dataframe from the data.
2933
df = rstn.create_dataframe()
3034

31-
# Plots the data.
35+
# Plot the data.
3236
ax = rstn.plot()
37+
3338
plt.plot()
3439
#+END_SRC
3540

3641
** Compatibility
3742

38-
The library was tested with Python 3, and Python 2.7.
43+
The library works with Python 3.5+

docs/Makefile

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/make.bat

Lines changed: 0 additions & 35 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 0 additions & 180 deletions
This file was deleted.

docs/source/index.rst

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)