UKZN-Astronomy / corrcal

Python/C code for calibration of quasi-redundant arrays. Different (fixed) algorithm from original corrcal
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Update README #1

Closed piyanatk closed 4 years ago

piyanatk commented 4 years ago

The README file should be converted to the markdown format and update with at least the following information:

ronniyjoseph commented 4 years ago

A reference to Sievers 17' arxiv pre-print? And something along the lines of the current example.

ronniyjoseph commented 4 years ago

Also a few comments from the original corrcal2_example code that should be in the README

You'll need to compile corrcal2_funs.c into a shared library with e.g.

gcc-4.9 -fopenmp -std=c99 -O3 -shared -fPIC -o libcorrcal2_funs.so corrcal2_funs.c -lm -lgomp

the library will need to be in your LD_LIBRARY_PATH. If it doesn't show up

and you compiled in the current directory, either do

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:.

or change the ctypes.cdll.LoadLibrary call in corrcal2.py to have your full path location

ronniyjoseph commented 4 years ago

@piyanatk mentioned that the compiling line supplied in the example code only works with GNU's gcc.

apple gcc is based on clang and doesn’t support -fopenmp tag I think we just have to note this in the readme

piyanatk commented 4 years ago

@ronniyjoseph Now that we have a somewhat usable python package, can you start updating the README? It should be written in Markdown, and I suggest that we use pyuvdata as a guide (also check the first post). Feel free to commit, and we will discuss and further update it.

piyanatk commented 4 years ago

Done in 74451fb2.