Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Cannot subset and display data correctly for longitudes with interval>180 #787

Closed
Evadzi opened this issue Oct 1, 2018 · 3 comments
Closed
Assignees

Comments

@Evadzi
Copy link

Evadzi commented Oct 1, 2018

Hi @JanisGailis

Expected behavior

I expect cate 2.0.0. dev-20 to subset and display data correctly for longitudes with interval>180

Actual behavior

Cate 2.0.0. dev-20 is unable to display correctly data for longitudes with interval>180

Steps to reproduce the problem

You can test with any esa cci data


# Step 1
ds_1 = cate.ops.open_dataset(ds_id="esacci.SEALEVEL.mon.IND.MSLAMPH.multi-sensor.multi-platform.MERGED.2-0.r1", region="-150,-40,30,70", force_local=True)

# Step 2
ds_2 = cate.ops.open_dataset(ds_id="esacci.SEALEVEL.mon.IND.MSLAMPH.multi-sensor.multi-platform.MERGED.2-0.r1", region="-150,-40,31,70", force_local=True)```
  

### Specifications 

*cate 2.0.0. dev-20, Windows 10*
@JanisGailis
Copy link
Member

JanisGailis commented Oct 1, 2018

This really should work! Thanks for the bug report!

@forman forman changed the title Cate 2.0.0. dev-20 cannot subset and display data correctly for longitudes with interval>180 Cannot subset and display data correctly for longitudes with interval>180 Oct 1, 2018
@JanisGailis
Copy link
Member

@Evadzi I can confirm that this happens when open_dataset is used with a regional constraint.

A workaround is to open the dataset without a regional constraint, and then do subset_spatial on it.

@Evadzi
Copy link
Author

Evadzi commented Oct 2, 2018

@JanisGailis Yes! the subset_spatial works but not with the open_dataset

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants