Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cropping curvilinear grids #45

Open
DamienIrving opened this issue Jun 5, 2015 · 1 comment
Open

Cropping curvilinear grids #45

DamienIrving opened this issue Jun 5, 2015 · 1 comment
Labels

Comments

@DamienIrving
Copy link
Contributor

Ocean data often comes on a curvilinear grid (i.e. the latitude and longitude axes are two dimensional). The current Crop module implements xml_to_nc.py, which uses CDAT (and the cdms2 library in particular) to crop the latitudinal and longitudinal dimensions. 'cdms2' can't handle cropping of two dimensional lat/lon axes, so if people would like to be able to crop ocean data on its native grid (i.e. rather than regridding first to convert the lat and lon axes to one dimensional) then someone will need to write a module to implement the cdo sellonlatbox function, which can handle curvilinear grids.

@captainceramic
Copy link
Contributor

I agree - a more modular approach with this could be a good way to go. As the xml_to_nc.py performs a couple of different functions (checking bounds, cropping, converting from xml to nc), it is probably better to have a 'sanity checker', a cropper and a xml converter as separate scripts, even if they end up being wrapped in a single VisTrails module. That would deal with this nicely.

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

No branches or pull requests

2 participants