from climaf.api import *
craz()
tas1=ds(project="example", simulation="AMIPV6ALB2G", variable="tas", period="1980")
tas2=ds(project="example", simulation="AMIPV6ALB2G", variable="tas", period="1981")
cscript('cat', "ncrcat ${in_1} ${in_2} ${out}")
tas=cat(tas1,tas2)
tas
f=cfile(tas)
! ncdump -v time {f} | grep "time = .*currently"
cls()
cdrop(tas1)
cdrop(tas2)
cls()
cscript('cat_dont_select', "ncrcat ${in_1} ${in_2} ${out}", select=False)
tas_dont_select=cat_dont_select(tas1,tas2)
craz()
g=cfile(tas_dont_select)
cls()
from climaf.driver import timePeriod
print timePeriod(tas)
avg=ccdo(tas,operator='fldavg')
avg_file=cfile(avg)
! ncdump -v time {avg_file} | grep "time = .*currently"
cscript('cat_dont_select_do_cat_time', "ncrcat ${in_1} ${in_2} ${out}", select=False, doCatTime=True)
tas=cat_dont_select_do_cat_time(tas1,tas2)
print timePeriod(tas)
avg=ccdo(tas,operator='fldavg')
avg_file=cfile(avg)
! ncdump -v time {avg_file} | grep "time = .*currently"
select = False
tells CliMAF to forget about smart handling of period, domain,aliasing
... for selecting/extracting data from files. If applicable to your use
case, this can save disk space in cache. But this is a permanent
property for the operator¶doCatTime = True
in order that operators chained on top of if works fine¶