comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: change pixel scale
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: change pixel scale [message #80321] Mon, 28 May 2012 09:17 Go to previous message
spasoklampanas is currently offline  spasoklampanas
Messages: 8
Registered: May 2012
Junior Member
On May 27, 6:03 pm, Russell Ryan <rr...@stsci.edu> wrote:
> On May 26, 7:46 am, spasoklampa...@yahoo.com wrote:
>
>>         Hi
>
>>     I have some fits files (astronomy images) that have a different
>> pixel scale. How is it possible to bring them on the same pixel scale?
>> The given routine of degrade is not suitable, since it degrades the
>> image resolution by a factor of two, which is not my case.
>
>>       Thanks a lot.
>
> So...
>
> There are several ways to skin this cat, and they depend on how
> careful you want to be.  Before we get into those ways, you need to
> answer a few things about your images...
>
> (1) Do they both have WCS in the headers that you trust?
> (2) Are they astrometrically aligned already, and you just want to re-
> pixelate?
>
> If the answer to (1) is "no," then we need to fix that first.
> Hopefully, you know *roughly* where your field is and can just grab a
> bunch of stars either from the DSS or SDSS to get the precise WCS
> mapped out.  If not, then you need to go outside of IDL get the job
> done.
>
> Then you can use hastrom.pro (in the IDL astro library) to register
> the two images.  This does only a bilinear (I think?) interpolation
> --- which may not be good enough for you.  If you have a weight map
> (or error image), then you need to process that as well --- but
> remember you'll need to work with variances!!
>
> If you don't like bilinear, then the only way I know how to do this is
> to go outside of IDL and use SCAMP and SWarp to get the job done.
>
> Good luck!
> Russell

Just to sound even more stupid now I got this error message:

% HASTROM: ERROR - No overlap found between original and reference
images
% HASTROM: Be sure you have the right headers and the right equinoxes
% Compiled module: WRITEFITS.


The Galactic coordinates of the cloud are the same. On ds9 I put
the cursor at the centre of the cloud and on both cases the galactic
latitude and longitude are the same. What is my mistake though?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: help with mathematics
Next Topic: save a map in a pdf or eps file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:29:19 PDT 2025

Total time taken to generate the page: 0.00382 seconds