Opened 12 years ago
Closed 9 years ago
#37615 closed submission (wontfix)
New port request: SOFA library
Reported by: | cdeil (Christoph Deil) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | haspatch | Cc: | robitaille@…, kurthindenburg (Kurt Hindenburg) |
Port: |
Description
Would it be possible to add a port for the SOFA (Standards Of Fundamental Astronomy) library? http://www.iausofa.org
There's a C and a Fortran version, Ideally I'd like to have both to compare precision / speed, although only the C version would be great already.
I don't actually know if their license allows it to be included in Macports, someone please check at http://www.iausofa.org/tandc.html (if it's unclear I'd be happy to ask them via email)
There's also a Python wrapper for it, which would be nice to have: http://pypi.python.org/pypi/pysofa
Attachments (3)
Change History (15)
comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)
Keywords: | SOFA astronomy removed |
---|---|
Port: | libsofa removed |
Summary: | Please add SOFA library → New port request: SOFA library |
Version: | 2.1.2 |
comment:2 Changed 12 years ago by larryv (Lawrence Velázquez)
Cc: | larryv@… added |
---|
comment:3 Changed 12 years ago by robitaille@…
I'm not too familiar with how to set up C ports (I usually only work on Python ports) but for reference for whoever implements it, the installation involves:
- Download tar file
- cd sofa/20120301_a/c/src
- make CCOMPC=<prefered C compiler>
- make install INSTALL_DIR=<prefered installation directory - equivalent to PREFIX, so don't include lib/>
In terms of C and Fortran, maybe we could have two ports, sofa, and sofa-fortran.
comment:4 Changed 12 years ago by larryv (Lawrence Velázquez)
Owner: | changed from macports-tickets@… to larryv@… |
---|---|
Status: | new → assigned |
I’ll give it a shot.
Changed 12 years ago by jwoillez@…
Changed 12 years ago by jwoillez@…
Attachment: | CMakeLists.txt.diff added |
---|
comment:6 Changed 12 years ago by jwoillez@…
I gave it a try. Works for me. Can even use pysofa: https://pypi.python.org/pypi/pysofa
comment:7 Changed 12 years ago by larryv (Lawrence Velázquez)
Keywords: | haspatch added |
---|---|
Owner: | changed from larryv@… to macports-tickets@… |
Status: | assigned → new |
Type: | request → submission |
Unfortunately, I haven’t really had time to spend on this. Any other committer should feel free to take over.
comment:9 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)
I have a working version for their 2015 version. It is annoying they can't even be bothered to have a build method. Also pysofa hasn't been updated since 2011 and doesn't work w/ the 2015 sofa.
I'm not sure it is worth adding sofa ATM.
Changed 9 years ago by kurthindenburg (Kurt Hindenburg)
Portfile plus patches
comment:10 Changed 9 years ago by robitaille@…
MacPorts already includes ERFA, which is the BSD version of SOFA. The package name is erfa. See https://github.com/liberfa/erfa for more details.
comment:11 Changed 9 years ago by cdeil (Christoph Deil)
As Tom says, by now there's ERFA and Astropy for time and coordinate calculations.
So I withdraw this feature request and suggest to close it now. (Apparently I don't have enough karma as original poster to close a Macports issue.)
comment:12 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
thanks
Cc Me!