anchor.diff:  rem Exit interactive session. Don't ask, answer is always "yes".
   cate ws exit --yes
   
  -cd ..
  +cd ..
positive.code: call activate cate
  
  rem Download some CCI Cloud data
  cate ds copy esacci.CLOUD.mon.L3C.CLD_PRODUCTS.MODIS.Terra.MODIS_TERRA.1-0.r1 --name CLOUD_2007 --time 2007,2008
  
negative.code: cate res open cloud local.CLOUD_2007
  cate res open ozone local.OZONE_2007
  
  rem Coregister "ozone" with "cloud" and call the result "ozone_coreg"
  rem: ERROR HERE, see issue #241
  cate res set ozone_coreg coregister ds_master=@cloud ds_slave=@ozone
  
  rem Create subsets of the "cloud" and "ozone_coreg" resources and assign it
  rem to new resources named "cloud_sub" and "ozone_sub"
  cate res set cloud_sub subset_spatial ds=@cloud region=0,30,10,40
  cate res set ozone_sub subset_spatial ds=@ozone_coreg region=0,30,10,40
  
  cate res set corr pearson_correlation ds_x=@ozone_sub ds_y=@cloud_sub_resamp var_x=O3_du_tot var_y=cc_total file=corr.txt
  
  cate res print corr
  
  rem Save the workspace
  cate ws save
  