Comments (12)
@ivastar Could you, please, provide the version of the drizzlepac that you are using?
from drizzlepac.
Same as for the other issue I reported: AstroDrizzle Version 2.1.8(08-Feb-2017)
from drizzlepac.
@ivastar Also, what instrument are you using and how do you call AstroDrizzle (parameters)?
from drizzlepac.
@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.
I can confirm that skysub
is broken.
from drizzlepac.
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.
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.
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.
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.
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.
@ivastar Can you please confirm that latest update fixes the skysub
issue?
from drizzlepac.
I will take a look later. Ugh, now I have to change all my codes! ;)
from drizzlepac.
Related Issues (20)
- HAP detection image should exclude CR-contaminated filters HOT 1
- HSTCAL: Generate new release candidate of HSTCAL package
- HAP SVM processing should reject visits that have guide star failures HOT 4
- Reset WCS for WFPC2 when fit rms > 100 mas
- Test tweakreg and tweakback as standalone tools
- MVM failure due to HAPProduct constructor mismatch
- Replace spacetelescope/stregion dependency with astropy/regions HOT 5
- Refactoring poller_utils.py
- Update usage of stregions with Astropy regions
- Work on AAS talk structure
- MagErrAp2 and other magnitude errors in HAP catalogs have incorrect negative values HOT 13
- Reproduce error in HLA-1161 HOT 3
- Disable the code that changes HAP catalog flag values for saturated/faint sources HOT 10
- Learn how to create a drizzlepac release
- Update astropy dev wheel for testing with Numpy 2.0
- temporary ecsv file not removed and was ingested HOT 4
- Implement new readthedocs structure HOT 1
- Ensure that the skysub=('yes' or 'no') is interpreted correctly
- Investigate new gsss issues (HLA-1130)
- Investigate astrocut pinning issue (ASB-24575)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drizzlepac.