Giter Site home page Giter Site logo

Comments (12)

mcara avatar mcara commented on August 20, 2024

@ivastar Could you, please, provide the version of the drizzlepac that you are using?

from drizzlepac.

ivastar avatar ivastar commented on August 20, 2024

Same as for the other issue I reported: AstroDrizzle Version 2.1.8(08-Feb-2017)

from drizzlepac.

mcara avatar mcara commented on August 20, 2024

@ivastar Also, what instrument are you using and how do you call AstroDrizzle (parameters)?

from drizzlepac.

ivastar avatar ivastar commented on August 20, 2024

@mcara WFC3/IR data. These are the parameters I ended up using:

skysub=True (or False)
skywidth = 0.
skystat = ''
skylower = None
skyupper = None
skyclip = 0.
skylsigma = 0.
skyusigma = 0.
skyuser = 'MDRZSKY' (the name of the keyword does not matter, I've tried naming it other things)
skyfile = ''

Astrodrizzle will subtract the background in "MDRZSKY" if subsky is set to True OR to False. I add the background to the FLT before I drizzle to get a correct image and wht map.

from drizzlepac.

mcara avatar mcara commented on August 20, 2024

I can confirm that skysub is broken.

from drizzlepac.

mcara avatar mcara commented on August 20, 2024

I add the background to the FLT before I drizzle to get a correct image and wht map.

This may not be the best workaround. I would suggest that you create a "skyuser" file, e.g., 'skyuser.txt' with the following content:

filename1.fits 0.0
filename2.fits 0.0
.......

and then call AstroDrizzle like:

>>> drizzlepac.astrodrizzle.AstroDrizzle(..., skysub=False, skyuser='@skyuser.txt')

from drizzlepac.

mcara avatar mcara commented on August 20, 2024

Another workaround is to delete MDRIZSKY from image headers and then run AstroDrizzle like this:

>>> drizzlepac.astrodrizzle.AstroDrizzle(..., skysub=False)

That is, turning off sky subtraction currently works only when MDRIZSKY is not present in image headers.

from drizzlepac.

mcara avatar mcara commented on August 20, 2024

A bug fix was created in #59 but it will take a couple of days before a bug-fix drizzlepac release is made.

from drizzlepac.

ivastar avatar ivastar commented on August 20, 2024

Thanks Mihai! These work-arounds are not suitable for me because I still want the sky value to be folded in the WHT map. If I just set it to zero, that will not happen.

from drizzlepac.

mcara avatar mcara commented on August 20, 2024

These work-arounds are not suitable for me because I still want the sky value to be folded in the WHT map.

Actually, the first workaround above should work if instead of 0.0 for the sky value you enter your best estimate for the sky value for a given input image. It is one of the purposes of skyuser parameter. Try it.

from drizzlepac.

mcara avatar mcara commented on August 20, 2024

@ivastar Can you please confirm that latest update fixes the skysub issue?

from drizzlepac.

ivastar avatar ivastar commented on August 20, 2024

I will take a look later. Ugh, now I have to change all my codes! ;)

from drizzlepac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.