@@ -78,12 +78,12 @@ def write(self, data, *args, check=False, **kwargs):
7878
7979
8080class HindcastReLabel :
81- def __init__ (self , owner , output , hindcast_reference_year , hind_cast_reference_date , ** kwargs ):
81+ def __init__ (self , owner , output , hindcast_reference_year = None , hindcast_reference_date = None , ** kwargs ):
8282 self .owner = owner
8383 self .output = output
8484 self .hindcast_reference_year = int (hindcast_reference_year ) if hindcast_reference_year else None
85- self .hind_cast_reference_date = int (hind_cast_reference_date ) if hind_cast_reference_date else None
86- assert self .hindcast_reference_year is not None or self .hind_cast_reference_date is not None
85+ self .hindcast_reference_date = int (hindcast_reference_date ) if hindcast_reference_date else None
86+ assert self .hindcast_reference_year is not None or self .hindcast_reference_date is not None
8787
8888 def write (self , * args , ** kwargs ):
8989 if "hdate" in kwargs :
@@ -100,8 +100,8 @@ def write(self, *args, **kwargs):
100100 if hdate is not None :
101101 # Input was a hindcast
102102 referenceDate = (
103- self .hind_cast_reference_date
104- if self .hind_cast_reference_date is not None
103+ self .hindcast_reference_date
104+ if self .hindcast_reference_date is not None
105105 else self .hindcast_reference_year * 10000 + date % 10000
106106 )
107107 assert date == referenceDate , (
@@ -114,8 +114,8 @@ def write(self, *args, **kwargs):
114114 kwargs ["hdate" ] = hdate
115115 else :
116116 referenceDate = (
117- self .hind_cast_reference_date
118- if self .hind_cast_reference_date is not None
117+ self .hindcast_reference_date
118+ if self .hindcast_reference_date is not None
119119 else self .hindcast_reference_year * 10000 + date % 10000
120120 )
121121 kwargs ["referenceDate" ] = referenceDate
0 commit comments