Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add nires #781

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

add nires #781

wants to merge 5 commits into from

Conversation

virajkaram
Copy link
Collaborator

No description provided.

@coveralls
Copy link

coveralls commented Feb 27, 2024

Pull Request Test Coverage Report for Build 8075034550

Details

  • 39 of 104 (37.5%) changed or added relevant lines in 7 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.4%) to 86.045%

Changes Missing Coverage Covered Lines Changed/Added Lines %
mirar/pipelines/nires/generator.py 0 3 0.0%
mirar/catalog/vizier/ukidssgps.py 0 22 0.0%
mirar/pipelines/nires/load_nires_image.py 11 51 21.57%
Files with Coverage Reduction New Missed Lines %
mirar/monitor/base_monitor.py 1 83.0%
Totals Coverage Status
Change from base Build 8056523902: -0.4%
Covered Lines: 10291
Relevant Lines: 11960

💛 - Coveralls

@virajkaram virajkaram marked this pull request as ready for review February 28, 2024 06:36
Copy link
Member

@robertdstein robertdstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, some minor changes requested.


class UkidssGPS(VizierCatalog):
"""
UKIDSS GPS catalog
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you maybe add e.g an arxiv link somewhere to explain what this catalog is?

@@ -0,0 +1,20 @@
"""
This file contains the configuration for the winter pipeline.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nires


def nires_astrometric_ref_catalog_generator(_) -> UkidssGPS:
"""
Generates the astrometric reference catalog for the NIRES image
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

returns? Mention UkiddsGps

header[GAIN_KEY] = 1.0
header["FILTER"] = "ks"

# header[SNCOSMO_KEY] = sncosmo_filters[header["FILTER"].lower()]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete

# header["DATE-OBS"] = header["UTSHUT"]
header["MJD-OBS"] = Time(header["DATE-OBS"]).mjd

# header.remove("CRVAL1")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete (and the others)

if "PROGID" not in header.keys():
header["PROGID"] = 0

if "v240225_0012.fits" in path.as_posix():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this stuff? Is it needed for the PR?


def load_raw_nires_image(path: str | Path) -> Image:
"""
Function to load a raw GIT image
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIRES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants