Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobwilliams/sofamerge
A simple script to make one module from all the SOFA files
https://github.com/jacobwilliams/sofamerge
Last synced: about 5 hours ago
JSON representation
A simple script to make one module from all the SOFA files
- Host: GitHub
- URL: https://github.com/jacobwilliams/sofamerge
- Owner: jacobwilliams
- License: bsd-3-clause
- Created: 2015-01-29T01:38:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-07T23:41:38.000Z (over 9 years ago)
- Last Synced: 2023-03-24T05:57:27.003Z (over 1 year ago)
- Language: Python
- Size: 176 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SofaMerge
A simple script to make one module from all the SOFA files.Description
--------------------This is a little Python script to make your life easier if you are using the Fortran 77 version of the [Standards of Fundamental Astronomy (SOFA) library](http://www.iausofa.org/current_F.html). All it does is take the individual files and merge them into one Fortran module file. It currently makes no attempt to convert the files to free format (although this could easily be added).
Usage
--------------------The script takes a single argument, which is the location of the SOFA source directory. For example:
```python SofaMerge.py ~/sofa/20150209_a/f77/src/ > sofa.f```
To also convert the file to free-form source, you could then use [fortran-legacy-tools](https://github.com/ylikx/fortran-legacy-tools) like so:
```python fixed2free2.py sofa.f > sofa.f90```
```python flowercase.py sofa.f90 > sofa_module.f90```