-
Notifications
You must be signed in to change notification settings - Fork 15
spatial and/temporal subset problem #693
Comments
The issue here is the following - we have decided at some point to use A workaround is to use a 'hand-drawn' polygon instead of If this is a common use case for some reason, we can try to fix this somehow, but it will be ugly. E.g., creating a separate |
Wait, no, scratch the above, I had forgotten we should now treat explicit coordinates correctly. |
@Evadzi This should be fixed on master now. |
Reopen if persists! |
What I expected Cate to do.
For most ESA datasets, it is possible to subset ingested data(at least for my past experiments). I tried to call monthly cloud(esacci-l......AASTR2) and aerosol (esacci_AEROSOLS_mon_L3C.AER_PRODUCTS_AATSR_Envisat_SU_04_21_R1.nc) data from the open data portal for analysis((subset:spatial and temporal), co-registration and correlation analysis). Cate is expected to display data correctly for the subset region.
What Cate does instead or doesn't do at all(3MAIN ISSUES).
I suspected the issue was related to reference to lon. 0 deg. and I changed the negatives location(shouldn't be the case) which rather covered the region. this however produces the error in display(1) when I performed temporal subset on this spatially adjusted type of subset.
I later reduced the lat. values further to -140,-80, 140,80 for the cloud and aerosol data, which surprisingly was displayed correctly and I continued to perform my co-registration and correlation analysis.
I saved my workspace and reopened it;AS EXPECTED:::DATA DISPLAYED AT WRONG LOCATION(see Fig A2)..
Steps to reproduce the problem(see my python script below)..
Step 1
CFC = cate.ops.open_dataset(ds_id="local.cloud.mon")
Step 2
aerosol = cate.ops.open_dataset(ds_id="local.Aerosol.mon")
Step 3
AAOD = cate.ops.select_var(ds=aerosol, var="AAOD550_mean")
Step 4
cfc_temp_subset = cate.ops.subset_temporal(ds=CFC, time_range="2004-12-01,2010-11-01")
Step 5
aaod_temp_subset = cate.ops.subset_temporal(ds=AAOD, time_range="2004-12-16,2010-11-16")
Step 6
cfc_spa_temp_subset = cate.ops.subset_spatial(ds=cfc_temp_subset, region="-140,-80,140,80")
Step 7
aaod_spa_temp_subset = cate.ops.subset_spatial(ds=aaod_temp_subset, region="-140,-80,140,80")
Step 8
cfc_coregis_spa_temp_subset = cate.ops.coregister(ds_master=aaod_spa_temp_subset, ds_slave=cfc_spa_temp_subset, method_us="nearest")
Step 9
cfc_aaod_correlation = cate.ops.pearson_correlation(ds_x=cfc_coregis_spa_temp_subset, ds_y=aaod_spa_temp_subset, var_x="cfc", var_y="AAOD550_mean")
Specifications
Cate Desktop 2.0.0-dev 15
The text was updated successfully, but these errors were encountered: