Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/465.bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use flexible time stamp for PMP annual cycle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import os

#
Expand Down Expand Up @@ -34,7 +35,8 @@

# Templates for climatology files
# %(param) will subsitute param with values in this file
filename_template = "cmip5.historical.%(model_version).r1i1p1.mon.%(variable).198101-200512.AC.v20200426.nc"
date = datetime.datetime.now().strftime("%Y%m%d")
filename_template = f"cmip5.historical.%(model_version).r1i1p1.mon.%(variable).198101-200512.AC.v{date}.nc"

# filename template for landsea masks ('sftlf')
sftlf_filename_template = "sftlf_%(model_version).nc"
Expand Down