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

Update SOFA? #105

Closed
tammojan opened this issue May 13, 2015 · 4 comments
Closed

Update SOFA? #105

tammojan opened this issue May 13, 2015 · 4 comments
Assignees

Comments

@tammojan
Copy link
Contributor

Under Measures, the fortran code of SOFA (standards of fundamental astronomy) is cloned. It seems that this code stems from 2008, while at the SOFA website http://www.iausofa.org/ , several new releases are available, possibly containing bugfixes etc. Should these be incorporated into casacore?

@tammojan
Copy link
Contributor Author

Paraphrasing a mail from Wim Brouw:

The casacore measures existed before SOFA. SOFA is included to test against. It should be updated because of new IAU and IUGI definitions.
Problems could occur with long baselines (Earth tides), but you should use CALC or something before observing. Sky conversions are ok.

As I understand it, sofa is only necessary when tests are built (only the Measures/test/testtIAU2000.cc uses it), so it could be an optional external dependency. The current 120 sofa files inside casacore are not maintained nor updated, so I suggest moving sofa out of casacore.

Note: the class SofaTest is as part of the measures library. But I doubt it is used outside the testIAU2000 test.

@tammojan tammojan self-assigned this May 21, 2015
tammojan added a commit that referenced this issue May 21, 2015
gervandiepen added a commit that referenced this issue Jun 11, 2015
Remove sofa from casacore, fixes #105
@twillis449
Copy link

Hi @tammojan

Which SOFA library is to be used? There are both FORTRAN and C Versions available from the IAU website.

Actually, at the moment, if I comment out line 237 of the top-level CMakeLists.txt file, SOFA does not seem to be used anywhere and the build of casacore goes to completion. (As you point out in your #105 issue SOFA is only used in one Measures test program.)

Is there a more elegant way to tell cmake not to use SOAFA? Commenting out a line of the top-level CMakeLists.txt file does not seem that elegant!

@tammojan
Copy link
Contributor Author

Hi @twillis449. Actually you shouldn't need sofa if you don't need the test. You should not have to comment out a line in CMakeLists. If you do not have sofa, cmake will detect that and disable this specific test. I think that's quite elegant, but perhaps you have run into trouble?

If you do want to run the sofa test and are willing to install sofa just for that, have a look at the file .travis.yml in the root of casacore. That is what the automated tests do to install sofa.

@twillis449
Copy link

It looks like my bad - sorry. I've been trying to get casacore / casarest/ and python-casacore installed in my area on the Cambridge University HPC computer. I have to create special scripts that basically 'surround' the cmake-based build and I have been messing around all morning. Indeed based on your previous message I uncommented line 237 of the CMakelist.txt file and have just done a re-build of casacore 2.0.3 using my current build script and yes the absence of SOFA is handled just fine. :)

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

No branches or pull requests

2 participants