Skip to content

Commit

Permalink
Merge pull request #103 from noaa-oar-arl/fix_global_script
Browse files Browse the repository at this point in the history
Change YY to 2022 for gfs.canopy in global script
  • Loading branch information
drnimbusrain authored Jan 19, 2024
2 parents 8450a6e + 88a7fea commit a8c2220
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/global_data_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def read_frp_local(filename, lat, lon, fill_value):
path + "/gfs.t" + HH + "z." + YY + MM + DD + ".sfcf" + FH + ".nc"
) # gfs met file
f_can = (
path + "/gfs.canopy.t" + HH + "z." + YY + MM + DD + ".sfcf000.nc"
path + "/gfs.canopy.t" + HH + "z." + "2022" + MM + DD + ".sfcf000.nc"
) # canopy file
f_output = (
path + "/gfs.t" + HH + "z." + YY + MM + DD + ".sfcf" + FH + ".canopy.nc"
Expand All @@ -215,7 +215,7 @@ def read_frp_local(filename, lat, lon, fill_value):
+ ".nc "
)
elif frp_src == 2: # climatological frp
f_frp = path + "/gfs.canopy.t" + HH + "z." + YY + MM + DD + ".sfcf000.nc"
f_frp = path + "/gfs.canopy.t" + HH + "z." + "2022" + MM + DD + ".sfcf000.nc"

"""Data Download"""
"""Download from servers if required files do not exist."""
Expand Down Expand Up @@ -277,7 +277,7 @@ def read_frp_local(filename, lat, lon, fill_value):
"https://nacc-in-the-cloud.s3.amazonaws.com/inputs/geo-files/gfs.canopy.t"
+ HH
+ "z."
+ YY
+ "2022"
+ MM
+ DD
+ ".sfcf000.nc",
Expand Down Expand Up @@ -316,7 +316,7 @@ def read_frp_local(filename, lat, lon, fill_value):
else:
print("---- No available FRP file. Switch to Climatology FRP...")
frp_src = 2
f_frp = path + "/gfs.canopy.t" + HH + "z." + YY + MM + DD + ".sfcf000.nc"
f_frp = path + "/gfs.canopy.t" + HH + "z." + "2022" + MM + DD + ".sfcf000.nc"

if frp_src == 2: # 12 month climatology frp
if os.path.isfile(f_frp) is True:
Expand Down

0 comments on commit a8c2220

Please sign in to comment.