These are chat archives for astropy/astropy

6th
Jul 2016
Adam Ginsburg
@keflavich
Jul 06 2016 08:13
Does anyone know of a tool for computing radial velocity corrections for earth's motion, specifically one that comes with a user's guide?
there are apparently dozens of tools (TEMPO2, CASA, probably pyast/starlink), and some web tools (wwwlocal.gb.nrao.edu/cgi-bin/radvelcalc.py), but these are either very involved or very inflexible or undocumented, afaict
Adam Ginsburg
@keflavich
Jul 06 2016 08:28
(dozens may have been an exaggeration)
Simon Conseil
@saimn
Jul 06 2016 09:10
Hi, we are about to release a package, based on Astropy, and I would like to provide a conda package. We have an optional dependency on cfitsio (a C extension) and I don't know how to handle this.
Shall I build the package with cfitsio and ask users to install cfitsio separately ? Will it depend on the specific cfitsio version it was built with ? Or providing a cfitsio package with conda would be easier ?
Also, is conda-channel-astropy open to submissions like this ? I can make another channel, but asking users to add a well-known channel is easier. And at some point we may try to be an affiliated package ;-)
Matt Craig
@mwcraig
Jul 06 2016 15:18

@saimn -- could you please open a PR for your package at https://github.com/openastronomy/conda-channel ? This channel is a superset of the channel astropy, including all affiliated packages and some that are not. Two ways we could go with cfitsio:

  • add a conda package for it (can help you write the recipe).
  • bundle it with your package (astropy does this).

Reminds me I should email the general astropy list about conda channels...

Simon Conseil
@saimn
Jul 06 2016 15:24
@mwcraig - Thanks ! I didn't know about this channel, so yes a general email on the state of conda channels would be useful ;-)
I'm playing with conda build on a fork of conda-channel-astropy to understand this stuff, so I will submit this later to the openastronomy channel
A conda package for cfitsio would certainly be useful instead of having everyone bundle it (I also built a package for fitsio which also bundle cfitsio)
Matt Craig
@mwcraig
Jul 06 2016 15:27
The one funny bit is that many astropy related packages need a hack to conda-skeleton for them to build (or an extra option, --offline in setup.py) to prevent astropy-helpers from trying to update itself during conda build.

A conda package for cfitsio would certainly be useful

I'm planning to focus on conda building next week while I'm at scipy, I'll add it to the list.

Simon Conseil
@saimn
Jul 06 2016 15:28
Yeah, I saw that patch for passing --offline ^^
Matt Craig
@mwcraig
Jul 06 2016 15:28
Hoping to get that merged into conda-build next week too :wink:
Simon Conseil
@saimn
Jul 06 2016 15:29
I'll take a look for cfitsio and see if I manage to get something