kdistribution.md.in (3526B)
1 # Kdistribution 2 3 Kdistribution computes k-distribution data sets from high-resolution 4 spectra that have been produced by [Kspectrum](kspectrum.html). 5 The user should specify some basic information to the code by editing 6 the `options.in` and `data.in` input files: 7 8 - `options.in`: various quadratures can be selected; a Legendre 9 quadrature is used by default. 10 Then the quadrature order should be specified, and various 11 quadrature-dependant parameters can be adjusted. 12 One interesting option is the possibility to use quadratic splines 13 over high-resolution spectra instead of a linear interpolation between 14 two successive values of the absorption coefficient. 15 16 - `data.in`: lets the user specify the first and last levels of the 17 high-resolution spectra set that should be converted to k-distribution 18 data. 19 20 Before using the code, the user should create a link named 21 `hires_spectra` within the `/data` directory; this link should be 22 pointing to the directory that contains the high-resolution spectra 23 produced by Kspectrum for a given atmospheric profile, as well as the 24 `composition.in` file used by Kspectrum. 25 The `data` directory should also contain a file named `narrowbands.in` 26 used to describe the spectral intervals over which the k-distribution 27 data set should be computed. 28 This file has to use the same format as the `narrowbands.in` Kspectrum 29 input data file. 30 However, the `narrowbands.in` file used by Kdistribution does not 31 necessarily have to be identical to the file used by Kspectrum. 32 33 34 ## Quickstart 35 36 - Sources: [tarball](downloads/kdistribution_light@VERSION@.tgz) / 37 [pgp](downloads/kdistribution_light@VERSION@.tgz.sig) 38 - Installation script: [bash](downloads/install_kdistribution_light@VERSION@.bash) 39 - Manual: [pdf](downloads/kdistribution_light@VERSION@_manual.pdf) 40 41 ### Prerequisites 42 43 All you need is a fortran compiler. 44 The gfortran compiler is used for development, but compilation should 45 also work with other fortran compilers (ifort, pgfortran, etc.). 46 47 Then you can try to compile Kdistribution: go to the main Kdistribution 48 directory, then use the `make all` command to compile. 49 The most common sources of failure can be fixed by editing the 50 `Makefile` file in order to check compilation options (and more 51 specifically options related to the target architecture and 52 optimisations). 53 Whenever you modify a source file, you can re-compile using the `make 54 all` command. 55 But in the case you have to modify a include file, you will have to 56 erase all existing object files first using the `make clean` command, 57 before recompiling from scratch using the `make all` command again. 58 59 ### Installation 60 61 You will have to download both the `.tgz` file and the installation 62 script, and place both files in the same directory. 63 Then run the installation script. 64 This will mainly uncompress the archive. 65 66 67 ## Copyright notice 68 69 Copyright © 2014-2018 |Méso|Star> 70 ([contact@meso-star.com](mailto:contact@meso-star.com)) 71 Copyright © 2008-2014 Centre National de la Recherche Scientifique (CNRS) 72 Copyright © 2008-2014 Fondation Sciences et Technologies pour l'Aéronotique et l'Espace 73 Copyright © 2008-2014 Institut Mines-Télécom Albi-Carmaux 74 Copyright © 2008-2014 Université Bordeaux 1 75 Copyright © 2008-2014 Université Paul Sabatier 76 77 ## License 78 79 Kdistribution is free software released under the CeCILL v2.1 license. 80 You are welcome to redistribute it under certain conditions; refer to 81 the 82 [license](http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt) 83 for details.