There are no reviews yet. Be the first to send feedback to the community and the maintainers!
This is a collection of Fortran routines I have written over the years for use in more complex codes. The different files are as independent as possible from each other, but in some cases dependencies are unavoidable. A lot of routines are written so as to work with both single and double type precision. These are in the templates/ directory, and are coded using generic types. The files in templates are not valid Fortran, and will not compile. Running the parse.py script automatically generates the full source code from these templates, and places the results in src. base_types.f90 (no dependencies) Defines numeric types lib_algebra.f90 (no dependencies) Defines the following routines: - cube root - several quadratic solvers - Simpson's rule integrator - Gaussian elimination linear equations solver lib_array.f90 (no dependencies) Defines the following routines: - linspace: create an array of values equally spaced in linear space - logspace: create an array of values equally spaced in log space - index_array_1d: find the order array elements should be in to be sorted - sort: sort one or two arrays - integral: trapezium integration - integral_linlog: trapezium integration with linear-log interpolation - integral_loglin: trapezium integration with log-linear interpolation - integral_loglog: trapezium integration with log-log interpolation - cumulative_integral: cumulative version of integral - cumulative_integral_linlog: cumulative version of integral_linlog - cumulative_integral_loglin: cumulative version of integral_loglin - cumulative_integral_loglog: cumulative version of integral_loglog - locate: search for a value in a sorted array - interp1d: 1-D linear interpolation - interp2d: 2-D linear interpolation - interp1d_linlog: 1-D linear interpolation in linear-log space - interp1d_loglin: 1-D linear interpolation in log-linear space - interp1d_loglog: 1-D linear interpolation in log-log space - histogram1d: convert an array of values to a histogram - histogram2d: convert two arrays of values to a 2-D histogram - ipos: bin value for equally spaced bins - xval: find center of bin for equally spaced bins lib_cfitsio.f90 (requires the cfitsio library to be installed) Defines wrapper routines for the cfitsio library lib_conf.f90 (no dependencies) Defines routines to make it easy to read Apache-style configuration files lib_constants.f90 (no dependencies) Defines some physical constants in SI and CGS units lib_hdf5.f90 (requires the HDF5 library to be installed) Defines wrapper routines for the HDF5 library lib_io.f90 (requires the posix_*.f90 modules - see below) Defines various I/O operations (file deletion with confirmation, etc.) lib_messages.f90 Defines warning/error routines lib_random.f90 Defines routines to sample random numbers: - uniform random numbers between 0 and 1 - uniform random numbers between two bounds - random number from exp(-x) PDF - random number from a normal distribution - random position on a sphere - random Poisson variables - random frequency from a Planck function posix_default.f90 and posix_nag.f90 Define various low-level routines, such as checking for file/directory existence, and a routine to sleep a program for an amount of time defined in microseconds. If using the NAG f95 compiler, use posix_nag.f90, otherwise use posix_default.f90 type_angle3d.f90 (requires lib_random.f90) Defines a derived type for 3D angles, and associated routines type_pdf.f90 (requires lib_array.f90 and lib_random.f90) Defines derived types for discrete and continuous PDFs, and associated routines (including for sampling the PDFs). type_stokes.f90 Defines a derived type for Stokes vectors, and associated routines type_vector3d.f90 (requires lib_random.f90 and type_angle3d.f90) Defines a derived type for 3D vectors, and associated routines
psrecord
Record the CPU and memory activity of a process đmpl-scatter-density
⥠Fast scatter density plots for Matplotlib âĄfast-histogram
⥠Fast 1D and 2D histogram functions in Python âĄpypi-timemachine
Install packages with pip as if you were in the past!acknowledgment-generator
Easily generate acknowledgment sections for papersnumtraits
Sanity checking for numerical properties/traits đ˘wcsaxes
wcsaxes has been merged into astropy!py4sci
Python Programming for Scientists - Lecture notessedfitter
Python version of the SED fitter from Robitaille et al., 2007, ApJS 169 328pyavm
Pure-python AVM libraryautowheel
Automatically build wheels for packages released on PyPIpython-qt-tutorial
Python Qt tutorialidlsave
IDLSave - a python module to read IDL 'save' filescolormapize
Generate colormaps from images!voila-qt-app
genetic
Very simple parallel genetic algorithm codescientific-python-survey-2015
Results for the 2015 Scientific Python surveymultistatus
This is no longer needed since GitHub now has an official version of this!example-travis-conda
How to use Miniconda to install dependencies on Travis CIpython-montage
This package is deprecated - please seepython4vienna
Python/Astropy course at the University of Vienna, June 1st-3rd 2015py4sci-notes
git-workflows
Scripts used to perform various complex git actionspieceofcake
a user-friendly cookiecutter wrapper đ° â¤ď¸ đŞauto_bibtex
Automatically produce BibTeX file for LaTeX manuscript using the NASA ADS databasevtk_python_sandbox
Astropy4MPIK
Astropy workshop for the Max-Planck-Institut fĂźr Kernphysikmacports-python
Installation instructions for Python using MacPortsmpl_styles
batchpr
Package in need of a better name to automate opening pull requests đ¤problem_set_7
Problem Set 7 for the course Python: Programming for Scientistsastrodendro-deprecated
Computing Astronomical Dendrogramsrobo-ph
#dotastro hackempty_folders
Simple Automator app to find and trash empty foldersdasktropy
mpia_contributing
tox-timemachine
calling-c-libraries-from-python
Experiments with linking to C libraries from Pythonvispy-multivol
MultiVolumeVisual class for Vispy that allows multiple volumes to be shown at the same timemining_acknowledgments
arxivminer
ArXiV minerfun-with-adsb
Scripts related to ADS-B datacube-viewer
Experiments with 3-d spectral cube viewingdotastro8-remote
image_format
Experimental: Understanding the CASA image formatastropy_issue_stats
Statistics on open/closed Astropy issuessedfitter-legacy
Fortran/Legacy version of the SED fitter from Robitaille et al., 2007, ApJS 169 328generate-setup-cfg
Script to generate setup.cfg filespython-intro
wheel-forge
editable-mpl-selectors
Experimental Matplotlib compatible selectorsfractal
Fractal distribution of pointsastropy4cambridge
Astropy workshop at the University of Cambridgepy2app-experiments
Experiments with Py2Apppython4imprs
Python for IMPRS studentsastropy-graphs
Various graphs related to the Astropy projectmpl_font_testing
timecard
A simple Python + Dropbox based command-line timecardcasa-astropy
Experimental code for linking CASA and Astropyfreetype_version_testing
python-versions-survey
Survey conducted in November 2012 to find out about Scientific Python InstallationsLove Open Source and this site? Check out how you can help us