Skip to content

Commit

Permalink
removed .comp from retrospective zarr file extention
Browse files Browse the repository at this point in the history
  • Loading branch information
sepehrkrz committed Nov 14, 2023
1 parent 5ac2ba3 commit 05a893b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .ipynb_checkpoints/setup-checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"""

# Other information
VERSION = "0.2.0"
VERSION = "0.2.1"
DESCRIPTION = "URL generator tool for National Water Model data"

setup(
Expand Down
7 changes: 4 additions & 3 deletions nwmurl/.ipynb_checkpoints/urlgennwm-checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ def generate_url_retro(date, file_type, urlbase_prefix, retrospective_var_types=
if urlbase_prefix == "https://ciroh-nwm-zarr-retrospective-data-copy.s3.amazonaws.com/noaa-nwm-retrospective-2-1-zarr-pds/":
for url in url:
url = url + ".json"
url = url.replace('.comp', '')
return url


Expand Down Expand Up @@ -568,7 +569,7 @@ def generate_urls_operational(
if write_to_file == True:
if os.path.exists("filenamelist.txt"):
os.remove("filenamelist.txt")
with open("filenamelist.txt", "wt") as file:
for item in file_list:
file.write(f"{item}\n")
with open("filenamelist.txt", "wt") as file:
for item in file_list:
file.write(f"{item}\n")
return file_list
Binary file modified nwmurl/__pycache__/urlgennwm.cpython-310.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions nwmurl/urlgennwm.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ def generate_url_retro(date, file_type, urlbase_prefix, retrospective_var_types=
if urlbase_prefix == "https://ciroh-nwm-zarr-retrospective-data-copy.s3.amazonaws.com/noaa-nwm-retrospective-2-1-zarr-pds/":
for url in url:
url = url + ".json"
url = url.replace('.comp', '')
return url


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"""

# Other information
VERSION = "0.2.0"
VERSION = "0.2.1"
DESCRIPTION = "URL generator tool for National Water Model data"

setup(
Expand Down

0 comments on commit 05a893b

Please sign in to comment.