-
Notifications
You must be signed in to change notification settings - Fork 13
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
Comments
Sorry, no. There are a large number of WCS coordinate systems provided
by wcslib, and I don't know of any straightforward way of extracting a
simple identifier string for them. So you can't do what you want in
general using geometry.
Instead, you will need to manipulate the wcs and shape yourself. There
should definitely be a function for this (like scale-geometry or
something), but it doesn't currently exist. But you can have a look at
enmap.upgrade to see how it works (see the part under "Correct the WCS
information"). It's pretty straightforward.
Of course, if the factor you want to upscale by is an integer, then
you can just call enmap.upgrade directly.
|
Ok, I understand. |
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?
I've made a convenience function for you now.
oshape, owcs = enmap.scale_geometry(shape, wcs, 2.5)
would give you the geometry needed to construct a map with 2.5 times
higher resolution, but covering the same area with the same
projection.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Is there some way I can get the projection of the map like so?
The text was updated successfully, but these errors were encountered: