Skip to content

Commit

Permalink
remove extra path part in destination file
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangshu committed Oct 25, 2024
1 parent 48ccfda commit fd065e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions dms_datastore/download_hrrr.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ def main():
"""
parser = create_arg_parser()
args = parser.parse_args()

bbox = [args.lon_min, args.lat_min, args.lon_max, args.lat_max]
pscr = args.dest
end_date = args.edate

start_date = datetime.datetime.strptime(args.sdate, '%Y-%m-%d')
if end_date is None:
end_date = datetime.datetime.now()
Expand Down
2 changes: 1 addition & 1 deletion dms_datastore/hrrr3.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def gen_sflux(self, date, record, pscr):

year_path = pathlib.Path(pscr+"/"+date.strftime("%Y"))
year_path.mkdir(parents=True, exist_ok=True)
fout.to_netcdf(path=path/ f'{pscr}/{date.strftime("%Y")}/hrrr_{date.strftime("%Y%m%d")}{cycle:02d}.nc',mode='w',format='NETCDF4', engine='netcdf4', unlimited_dims='time')
fout.to_netcdf(path=f'{pscr}/{date.strftime("%Y")}/hrrr_{date.strftime("%Y%m%d")}{cycle:02d}.nc',mode='w',format='NETCDF4', engine='netcdf4', unlimited_dims='time')

def modified_latlon(self, grbfile):

Expand Down

0 comments on commit fd065e5

Please sign in to comment.