Hi Guillaume,
thanks for sharing!
There’s already a similar Astropy-affiliated package called “Astroplan"
https://github.com/astropy/astroplan <https://github.com/astropy/astroplan>
From a quick look it’s not clear to me what the differences are wrt. your package.
Ideally the efforts would merge, no?
Christoph
--
You received this message because you are subscribed to a topic in the Google Groups "astropy-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/astropy-dev/akVp7vCwebg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to astropy-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I had a quicklook at it. From what I understood astroobs looks easier/faster to use; part is because it queries SIMBAD - e.g. no need to input the target coordinates (see the README examples).
To unsubscribe from this group and all its topics, send an email to astropy-dev...@googlegroups.com.
--Guillaume SCHWORER
but I'm not sure if it can do things like moon/sun distance - if not,
that would be a worthwhile addition! (maybe Brett or another astroplan
developer can confirm?)
> * Import of HD, HR, HIP numbers and U-B-V-R-I-J-H-K magnitudes whenever
> available on SIMBAD,
This is not something that astropy or astroplan currently do -
astroquery (another affiliated package) can do this I believe:
http://astroquery.readthedocs.io/en/latest/simbad/simbad.html
but I wonder whether it would be worth trying to see if this could
also be included somehow in astroplan?
> * Import of HD, HR, HIP numbers and U-B-V-R-I-J-H-K magnitudes whenever
> available on SIMBAD,
This is not something that astropy or astroplan currently do -
astroquery (another affiliated package) can do this I believe:
http://astroquery.readthedocs.io/en/latest/simbad/simbad.html
but I wonder whether it would be worth trying to see if this could
also be included somehow in astroplan?
Astroplan shouldn't encroach on astroquery's territory, and that sounds like an astroquery task to me. But I don't think there's a simple, uniform interface for accessing SIMBAD magnitudes with astroquery at present? Maybe an astroquery dev can comment. In my experience, it's easiest to get magnitudes by querying Vizier via astroquery, rather than from SIMBAD.
--
You received this message because you are subscribed to a topic in the Google Groups "astropy-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/astropy-dev/akVp7vCwebg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to astropy-dev+unsubscribe@googlegroups.com.
On 20 Aug 2016, at 01:30, Christoph Deil <Christo...@mpi-hd.mpg.de> wrote:Hi Guillaume,
On 20 Aug 2016, at 00:26, Guillaume Schworer <guillaume...@gmail.com> wrote:Hi Tom, Brett,Thanks Tom for your detailed e-mail and feedback. For the record, I started astroobs slowly a few years back, building a GUI; only a year ago did I abandon the GUI to build a real package available on pip - didn't know of astroplan before posting in this thread, which explains my "blind e-mail".Astroobs is indeed using astroquery to get magnitudes and HD/HIP/HR numbers. It is however not 100% straightforward: one needs to request "custom output" from astroquery to get the fluxes, and do some string search to extract the HR/HD/HIP numbers out of the whole list of known names. It is 5 lines of tedious code, but still provides valuable information to the observer, especially on target selection when one has harsh sensitivity constraints.
Maybe the HD/HIP/HR number extraction should happen in astroquery indeed.
+1 to add this convenience.Sounds like astroquery is the right place.Can you make a PR or issue, please?
You can already now pass time as string to `plot_airmass` and it’ll call the `Time` constructor if you like it short.Looks like targets and observer can’t be strings (like in your package) at the moment here.I’m not sure if it’s a good idea, but calling Observer.at_site and FixedTarget.from_name in plot_airmass and similar functions automatically if strings are passed sounds like a proposal to increase convenience we should discuss.Can you please open a Github issue at https://github.com/astropy/astroplan ?
Maybe I'm just too lazy.. but this looks like a lot of hassle to me. I understand that you want users to be "clean" about the input.. I am wondering however if an observation planning tool is meant to be focusing on being "fully explicit", like a calculus library is.
Btw, one can be flexible and explicit on inputs! Check np.histogram2d parameter "bins" for funky explicitness!
I am happy to pull-request astroplan to add stuff, but again, I can't merge astroobs into astroplan without ensuring a similar usability to the current astroobs users :-)Maybe a solution is to make astroplan an ephemeris-calculation tool purely (moon&sun avoidance, planets, targets, combined constraints, etc), of which astroobs is a wrapper to deal with plotting and usability.
I guess the least people would be unhappy this way. Just a random idea!
I think having two Python packages with huge overlap is bad, it splits the user and developer community.The best solution IMO would be to fully merge missing functionality and some convenience stuff into astroplan.If there’s fundamental and unresolvable differences concerning explicitness vs usability for the API, a good way (less duplication of code and effort) would be to rewrite astroobs as thin wrapper functions / classes with the convenient API you like that use astroplan under the hood, and contribute missing functionality to astropy, astroplan or astroquery.Cheers,Christoph