Source code for icenet.data.processors.hres
from icenet.data.cli import process_args, process_date_args
from icenet.data.process import IceNetPreProcessor
"""
"""
[docs]
class IceNetHRESPreProcessor(IceNetPreProcessor):
"""
"""
def __init__(self, *args, **kwargs):
super().__init__(*args,
file_filters=["latlon_"],
identifier="mars.hres",
**kwargs)
[docs]
def main():
args = process_args()
dates = process_date_args(args)
hres = IceNetHRESPreProcessor(
args.abs,
args.anom,
args.name,
dates["train"],
dates["val"],
dates["test"],
linear_trends=args.trends,
linear_trend_steps=args.trend_lead,
north=args.hemisphere == "north",
parallel_opens=args.parallel_opens,
ref_procdir=args.ref,
south=args.hemisphere == "south",
update_key=args.update_key,
)
hres.init_source_data(lag_days=args.lag,)
hres.process()