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

Projection attribute #15

Open
msyriac opened this issue Sep 3, 2017 · 3 comments
Open

Projection attribute #15

msyriac opened this issue Sep 3, 2017 · 3 comments

Comments

@msyriac
Copy link
Contributor

msyriac commented Sep 3, 2017

Apologies if this already exists, but is there an attribute for an ndmap that tells me what projection is being used?

My use case is the following. Say I know the shape and wcs of a patch on the sky. I want to get the shape and wcs for an ndmap that is on the same region of the sky but has higher resolution. So I do the following:

shape_known = my_coarse_map.shape
wcs_known = my_coarse_map.wcs
bbox = enmap.box(shape_known,wcs_known)
my_fine_map = enmap.geometry(bbox,res=high_res_pixel,proj=projection)

Is there some way I can get the projection of the map like so?

projection = my_coarse_map.proj
@amaurea
Copy link
Owner

amaurea commented Sep 19, 2017 via email

@msyriac
Copy link
Contributor Author

msyriac commented Sep 24, 2017

Ok, I understand. enmap.upgrade with integer factors should actually do just fine. I actually only need the shape and wcs, and not the (really large) resulting array. Is it possible to predict what the shape will be without doing the expensive numpy.tile?

@amaurea
Copy link
Owner

amaurea commented Sep 26, 2017 via email

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

No branches or pull requests

2 participants