Skip to content

Commit

Permalink
fix NCEI IGRA2 API
Browse files Browse the repository at this point in the history
  • Loading branch information
whitetuft committed Feb 29, 2024
1 parent dd9f554 commit 1f9d57b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyrtlib/apiwebservices/igra2.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self) -> None:
self.end_date = ''
self.site_id = ''
self.folder = ''
super().__init__('https://www1.ncdc.noaa.gov/pub/data/igra/')
super().__init__('https://www.ncei.noaa.gov/data/integrated-global-radiosonde-archive/access/')

@classmethod
def request_data(cls, time: datetime, site_id: str, beg2021: Optional[bool] = False, derived: Optional[bool] = False) -> Tuple[pd.DataFrame, pd.DataFrame]:
Expand Down Expand Up @@ -99,14 +99,14 @@ def request_data(cls, time: datetime, site_id: str, beg2021: Optional[bool] = Fa

# Set parameters for data query
if beg2021:
igra2.folder = 'data/data-y2d/'
igra2.folder = 'data-y2d/'
igra2.suffix = igra2.suffix + '-data-beg2021.txt'
else:
igra2.folder = 'data/data-por/'
igra2.folder = 'data-por/'
igra2.suffix = igra2.suffix + '-data.txt'

if derived:
igra2.folder = 'derived/derived-por/'
igra2.folder = 'derived-por/'
igra2.suffix = igra2.suffix + '-drvd.txt'

if isinstance(time, datetime):
Expand Down

0 comments on commit 1f9d57b

Please sign in to comment.