Git Product home page Git Product logo

ccd-reduction-and-photometry-guide's Introduction

ccd-reduction-and-photometry-guide's People

Contributors

awesomecosmos avatar dependabot[bot] avatar jogojapan avatar lglattly avatar mwcraig avatar neutrinoceros avatar nicocardiel avatar pllim avatar programatt avatar yash-10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccd-reduction-and-photometry-guide's Issues

MNT: Rename default branch from master to main

Please rename your default branch from master to main as part of astropy/astropy-project#151 , preferably by 2021-03-22. Also a friendly reminder to check documentation, workflows, etc., and update them accordingly. Please don't forget to communicate this change to your users and stakeholders. To summarize:

  • Rename branch from master to main, preferably by 2021-03-22.
  • Update documentation, workflows, etc., accordingly. -- See #299
  • Communicate this change to your users and stakeholders.

Once this is taken care of, you may close this issue.

This is an automated issue. If this is opened in error, please let @pllim know!

03.02 Link to Palomar data is broken and reduced dark frame not apparently available

When first loading the Palomar data, if we want to be consistent with previous notebooks, we should use

calibrated_images = Path('./python_imred_data')

not

calibrated_images = Path('./')

as it currently is. However, even with that, the reduced dark file doesn't appear to be exist there.

Assuming this file is downloadable, include a link, if not, if it was supposed to be produced in a previous notebook, link to that notebook.

Fix deprecation warning

From running notebook 01.04:

WARNING: AstropyDeprecationWarning: The MexicanHat2D class is deprecated and may be removed in a future version.
        Use RickerWavelet2D instead. [

Fix another deprecation warning

Not sure what is generating this one; comes up in running 01.04

/Users/mattcraig/development/ccd-reduction-and-photometry-guide/notebooks/image_sim.py:121: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  dark_im[[hot_y, hot_x]] = hot_current * exposure_time / gain

03.05 Comments incorrect in calibrating dark frames

When calibrating the dark frames from Palomar you have the code state:

for ccd, file_name in ex1_darks_raw.ccds(imagetyp='DARK',            # Just get the bias frames
                                         ccd_kwargs={'unit': 'adu'}, # CCDData requires a unit for the image if 
                                                                     # it is not in the header
                                         return_fname=True           # Provide the file name too.
                                        ):

The comments in the code should say you are getting just the DARK frames.

Also, what does showing the reduced frames after triming the overscan in the 'calibrating dark frames' loop supposed to show? I think you need to reload the directory via:

ex1_images_reduced = ImageFileCollection(ex1_path_reduced)

otherwise you show the File Collection before the newly reduced data was added.

Couldn't do anything with the example-thermo-electric data because it isn't available.

Copy edit notebooks, round 1

These notebooks are ready for copy editing:

  • Notebook whose name starts "00"
  • All notebooks whose name starts with "01"

05-04: Consider using mode instead of median for scaling flats?

I've always used the mode to scale (sky/twilight) flats since I worry about the median being biased high by stars. This is obviously more processing intensive, though, so there's a trade-off. Can be implemented with statistics.mode or scipy.stats.mode.

Issue with download_data.py

โฏ python ccd-reduction-and-photometry-guide/notebooks/download_data.py
Downloading https://zenodo.org/record/3320113/files/combined_bias_100_images.fit.bz2?download=1
|=========================================================|  26M/ 26M (100.00%)         7s
Traceback (most recent call last):
  File "ccd-reduction-and-photometry-guide/notebooks/download_data.py", line 10, in <module>
    p.rename('combined_bias_100_images.fit.bz2')
  File "/home/simon/.pyenv/versions/3.7.4/lib/python3.7/pathlib.py", line 1319, in rename
    self._accessor.rename(self, target)
OSError: [Errno 18] Invalid cross-device link: '/tmp/simon/astropy-download-46280-ro2ysk3s' -> 'combined_bias_100_images.fit.bz2'

Problem with cloning

It has been observed that due to a ":" in 01.02-IRAF-like:-photutils.ipynb and 01.03-SExtractor-like:-sep-and-photutils.ipynb files, one cannot successfully clone the repository.


$ git clone https://github.com/astropy/ccd-reduction-and-photometry-guide.git
Cloning into 'ccd-reduction-and-photometry-guide'...
remote: Enumerating objects: 1162, done.
remote: Total 1162 (delta 0), reused 0 (delta 0), pack-reused 1162
Receiving objects: 100% (1162/1162), 12.74 MiB | 4.54 MiB/s, done.
Resolving deltas: 100% (810/810), done.
error: invalid path 'notebooks/photometry/01.02-IRAF-like:-photutils.ipynb'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

Removing the ":" in those file names fixed the problem and enabled successful cloning of this repository.

Thank you.

Cache guide content (or otherwise avoid builds)

Adding caching should avoid rebuilding the whole set of notebooks. For now, either all notebooks need to be rebuilt or none because some of them rely on the output of earlier notebooks to work.

01.04 FutureWarning running image_sim.py

When running the construction of a realistic (synthetic) image in notebook 01.04, I get

image_sim.py:121: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.
  dark_im[[hot_y, hot_x]] = hot_current * exposure_time / gain

Looks like the indexing for dark_im needs to be fixed.

01.08 Overscan doesn't tell users where to get files

Probably due to some reorganization in the past, there users are asked to process python_imred_data files that don't exist. I found a link in the 02.01 notebook that said

The data for this example can be downloaded from [http://www.stsci.edu/~etollerud/python_imred_data.tar](http://www.stsci.edu/~etollerud/python_imred_data.tar)

I suggest adding this link right above that cell in the notebook.

Review notebook 01.02 (artificial image)

Some specific questions:

  1. Keep section that adds stars?
  2. Keep section that adds cosmic rays?
  3. Keep interactive? (Only thing I don't like is that the sliders have to be set up

Fix link to images

  • This sentence in 05-03 needs to be fixed: "The raw images are at XXX, and this notebook assumes that"
  • This sentence in 08-01 needs a link: "We will see in the notebook [XXX]()"

Notebook 01.05 needs some cleanup

From #5:

notebook 01.05 calibration overview still contains a note to self and seems to be missing a summary line at the end, perhaps it's not finished?

Add github comment links as html

The current version adds target="_blank" to the link by putting it in braces at the end of a markdown link. That worked (I think?) when the links went through a markdown stage in the rendering in jupyter-book, but they do not anymore.

Since HTML is valid markdown we might as well just add the link as HTML with the attributes we need.

02.00 Bad grammar

Being anal, but the first sentence of the "Impact of combining images on noise" section likely needs to be reworked for clarity.

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.