GithubHelp home page GithubHelp logo

rhyspoulton / stingray Goto Github PK

View Code? Open in Web Editor NEW

This project forked from obreschkow/stingray

0.0 1.0 0.0 2.6 MB

Mock cone facility for astrophysical applications

Makefile 1.63% Fortran 96.54% R 1.82%

stingray's Introduction

OVERVIEW
====================================================================================================================

Stingray is a suite of Fortran routines to produce mock observing cones from semi-analytic models (SAMs).

V0.1  13/03/2018: First release
V0.6  09/10/2018: Various bug fixes
V0.7  26/10/2018: Separated user-module into a two modules for routines and selection function;
                  Added selection by "apparent mass" to reduce the amount of data in the positioning step
                  Added a correction of group positions that were 'wrapped away' from all group members
V0.8  10/12/2018: Fixed bug with galaxy counting in multi-threading mode
V0.9  26/02/2019: Updated HDF5 module for increased flexibility with data type conversions
V0.10 26/03/2019: Better commenting, copy parameter file, instead of rewriting it
V0.11 29/04/2019: Improved cosmology module, general clean up, improved makefile
V0.12 12/09/2019: Bug fixes, developper version of HI-line module added
V0.13 19/09/2019: Emission line maker for HI and CO with many rotation curve models for halos, disks and bulges
v0.14 28/10/2019: Added pre_selection function to module_user_selections
v0.15 04/02/2020: New entry "make_groups" in the parameter file, id_galaxy_sky changed and id_galaxy_sky_smart added,
                  Included test data (shark subvolume L40_N512/199/0/)
v0.16 25/02/2020: Input argument check fixed

Copyright Danail Obreschkow ([email protected])


GETTING STARTED
====================================================================================================================

1) Installations:
   a) make sure gfortran is installed (code tested for gfortran 4.4.7 and 5.0.0)
   b) make sure that HDF5 is installed (version 1.10.1 or higher)

2) In terminal, download Stingray
   > git clone https://github.com/obreschkow/stingray
   
3) Got to Stingray directory
   > cd stingray
   
4) Clean potential previous compilations
   > make clean
   
5) If needed, specify the HDF compiler flags for your system by adding a new block to the makefile
   ifeq ($(system),[your system name])
      hdfflags = [your HDF flats]
   endif
   
6) Compile the code by typing
   > make system=[your system name]
   NB: depending on the system, it might be necessary to load fortran and hdf5 packages,
       e.g. using a command like
       > module load gfortran/6.3.0 hdf5/1.10.2
   NB: to activate all debugging flags and suppress multi-threading use
       > make mode=dev
       
7) Try to run the test-cone using the
   > ./stingray
   On most MacOS systems, stingray will be able to automatically find the path of the parameterfile
   and the small dataset included for testing. It will produce a small mocksky in the subdirectory 'test'.
   The sky should contain 336 galaxies in 278 groups. If the parameterfile and/or paths cannot be found
   automatically, follow steps (8) and (9).
      
8) Edit the parameter file parameter.txt, especially the input and output paths
   
9) Produce mock observing cone
   > ./stingray [-parameterfile .../parameter.txt]
   
9) Check files written into output directory
   
10) Optionally, visualise the cone in R


ARGUMENTS
====================================================================================================================

Generally, Stingray is called as
> ./stingray [-option argument] [-option argument] ...

Optional arguments:

-parameterfile (default parameters.txt): path+filename of parameter-file

-verbose (default 1): logical flag (0 or 1) specifying whether the log should be displayed on the screen; this is normally turned off
 if run on a cluster with a queueing system
 
-version: returns the version of Stingray

-help: points to README file

stingray's People

Contributors

obreschkow avatar rhyspoulton avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.