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

Redshifted motion handling #57

Merged
merged 5 commits into from
Aug 16, 2024
Merged

Redshifted motion handling #57

merged 5 commits into from
Aug 16, 2024

Conversation

attipaci
Copy link
Collaborator

So far, sidereal (i.e. catalog) sources were defined with parameters typical for stars in our Galaxy. As such, motion was parametrized by radial velocity (in line of sight) , as well as proper motion. And, as a result, NOVAS did not offer proper support for handling distant quasars or galaxies, where line-of-sight motion is more typically parameterized with a redshift (z) instead.

Thus we now add:

  • novas_z2v() to convert redshift values (z) to an equivalent radial velocity (in km/s).
  • novas_v2z() to convert radial velocity values(in km/s) to an equivalent redshift (z).
  • make_redshifted_object() to simplify the initialization of distant sources parameterized by redshift. It will set proper motion and parallax to zero, and initialized the source catalog to EXT to indicate an extragalactic source. (The user may then override the initial values, if necessary).

@attipaci attipaci added the enhancement New feature or request label Aug 12, 2024
@attipaci attipaci added this to the 1.2.0 milestone Aug 12, 2024
@attipaci attipaci self-assigned this Aug 12, 2024
@attipaci attipaci force-pushed the redshifted-objects branch from 6cd44cd to 2435f0c Compare August 12, 2024 10:13
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (v1.2.0@2dafcbb). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##             v1.2.0      #57   +/-   ##
=========================================
  Coverage          ?   99.64%           
=========================================
  Files             ?        6           
  Lines             ?     2802           
  Branches          ?      539           
=========================================
  Hits              ?     2792           
  Misses            ?        0           
  Partials          ?       10           
Flag Coverage Δ
unittests 99.64% <100.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/novas.c 99.58% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2dafcbb...2435f0c. Read the comment docs.

@attipaci attipaci marked this pull request as ready for review August 16, 2024 09:42
@attipaci attipaci merged commit a2c83ef into v1.2.0 Aug 16, 2024
13 checks passed
@attipaci attipaci deleted the redshifted-objects branch August 16, 2024 09:43
attipaci added a commit that referenced this pull request Aug 19, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 19, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 20, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 20, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 20, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 20, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 24, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 24, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 24, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 24, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 24, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
attipaci added a commit that referenced this pull request Aug 24, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 24, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
attipaci added a commit that referenced this pull request Aug 29, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Aug 29, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
attipaci added a commit that referenced this pull request Sep 1, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Sep 1, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
attipaci added a commit that referenced this pull request Sep 4, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Sep 4, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
attipaci added a commit that referenced this pull request Sep 11, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Sep 11, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
attipaci added a commit that referenced this pull request Sep 15, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Sep 15, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
attipaci added a commit that referenced this pull request Sep 15, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Sep 15, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
attipaci added a commit that referenced this pull request Sep 19, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Sep 19, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
attipaci added a commit that referenced this pull request Oct 28, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Oct 28, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
@attipaci attipaci mentioned this pull request Oct 28, 2024
attipaci added a commit that referenced this pull request Nov 6, 2024
* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.
attipaci added a commit that referenced this pull request Nov 6, 2024
* Redshifted motion handling (#57)

* A corrected version ref in README

* Another reference to API documentation in README

* Small edits to README

* Shoft release schedule up to imporve Fedora package integration

* Add redshift handling routines.

* Add functions to apply/adjust gravitational redshift for radial velocities.

* Tweaks and redshift_add() function

* Tweaks

* Added novas_z_inv()

* Further tweaks

* small edits to error handling

* various fixes

* Small arithmetic simplification

* Doxygen edits

* Test cases for redshift functions

* Split out util.c

* test/Makefile: Fix bad rebase

* merge util.c -> super.c

* super.c: Delete empty lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant