Giter Club home page Giter Club logo

ztf_clu_tools's Introduction

Tools for the Zwicky Transient Facility (ZTF) Census of the Local Universe (CLU) Experiment


Aitoff Projection of Discovered ZTF CLU Transients

Getting Started


Before running the ZTF CLU scripts, you will need to add your fritz.science credentials. To start using the fritz.scince API you will need to add to /scripts/user_info.json your last name and Command-Line Authentication Token:

{
  "user":
    {"user_last_name": "ADD_USER_LAST_NAME_HERE",
     "FritzToken": "ADD_FRITZ_TOKEN_HERE"
    }
}

Running the ZTF CLU Luminous Annotation


In ZTF Phase II the ZTF CLU experiment will be a volume-luminosity-limited supernovae sample in hope to find some of the most sub-luminous transients in the local universe.

This annotator will fetch the photometry of all sources saved to the Caltech ZTF CLU program (program_id:43) after the date indicated by the -d flag in format YYYY-MM-DD. The annotator will go through each source and annotate if they're luminous based on a specific luminosity cut (docs of luminous_CLU_annotation.py for more details). To run the ZTF CLU luminosity annotator, see the example below:

./luminous_CLU_annotation.py -d 2021-01-01

Running the Fetch ZTF CLU Catalog


In the case one would like to asses the general properties of the ZTF CLU experiment, the fetch_CLU_souces.py module is a quick method for downloading some basic parameters found in the ZTF CLU catalog (ascii table). The query returns the following parameters: obj_id, saved_date, coordinates, redshift, CLU_d_gal (seperation from CLU host in arcsec), peak_absolute_magnitude, peak_apparent_magnitude, luminous_event(boolean, if the source is luminous or sub-luminous given a M_abs=-17 cut). To run the code, see example below:

./fetch_CLU_sources.py

Note: It roughly takes ~10 minutes to generate a table of ~3000 sources. If you would like more parameters to be added please make a PR or contact me.

The resulting table will be stored in the scripts/ directory was an ascii file marked by the date of the query.

Running the Upload ZTF Source 2Frtiz


In the case you would like to upload a list of ZTF sources given their ZTF ids. The current version of upload_ztf_source_2fritz.py can upload and save sources to fritz assigned to a specific group. We ask that the user adds to key flags: -g for the group number they're assigning the source, and -f for the .txt file name containing all the sources. Note: The .txt file (that should be in the same directory as your upload_ztf_source_2fritz.py file) does not require a header. To run the code, see example below:

python upload_ztf_source_2fritz.py -f 43 -g ztf_ids.txt

the above example will upload and save all sources in ztf_ids.txt file to group_id:43

ztf_clu_tools's People

Contributors

andytza avatar

Watchers

 avatar  avatar

ztf_clu_tools's Issues

Fetch the Correct Redshift

Status: WIP

For any source that passes the Caltech ZTF CLU filter, we know that the source by default will have cross-match redshifts, and separation in arcseconds from the CLU galaxy. We have identified several cases that:

  • The CLU redshift is not consistent with the SDSS galaxy spectrum redshift (usually when one is available)
  • Some other group might have identified the redshift of this source & is not associated with that CLU galaxy

To collect the proper redshift information from Fritz. Here are a few ideas & cases on when and how to collect the proper redshift information:

  1. By default, always assume that the correct redshift has been entered to Fritz in the source redshift tab.
    1A. Given the redshift collected from the header (i.e redshift tab) of the source, we will search through all the CLU cross-matches and find that redshift with the closest

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.