lowtran | LOWTRAN atmospheric absorption extinction , scatter

 by   space-physics Python Version: 2.4.1 License: MIT

kandi X-RAY | lowtran Summary

kandi X-RAY | lowtran Summary

lowtran is a Python library. lowtran has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install lowtran' or download it from GitHub, PyPI.

LOWTRAN7 atmospheric absorption extinction model. Updated by Michael Hirsch to be platform independent and easily accessible from Python ≥ 3.6 and Matlab. The main LOWTRAN program has been made accessible from Python by using direct memory transfers instead of the cumbersome and error-prone process of writing/reading text files. xarray.Dataset high-performance, simple N-D array data is passed out, with appropriate metadata.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              lowtran has a low active ecosystem.
              It has 59 star(s) with 26 fork(s). There are 7 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 7 open issues and 9 have been closed. On average issues are closed in 130 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of lowtran is 2.4.1

            kandi-Quality Quality

              lowtran has 0 bugs and 11 code smells.

            kandi-Security Security

              lowtran has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              lowtran code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              lowtran is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              lowtran releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              lowtran saves you 261 person hours of effort in developing the same functionality from scratch.
              It has 633 lines of code, 34 functions and 17 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed lowtran and discovered the below as its top functions. This is intended to give you an instant insight into lowtran implemented functionality, and help decide if they suit your requirements.
            • Helper function to read horizontal path
            • Helper function for looping
            • Build CMake files
            • Convert nm and longitude to lm
            • Import a f2py module
            • Setup the lowtran dataset
            • Plots the transit spectrum
            • Loop through all the angles
            • Calculate irradiance
            • Plot irradiance
            • Calculate the heatmap for a horizontal path
            • Calculate the user - oriented transmittance matrix
            • Plot irradiance spectrum
            • Determine the minimum number of nm and longitude
            • Plot the transmission
            • Plot a horizontal horizontal transformation
            • Transmittance matrix
            Get all kandi verified functions for this library.

            lowtran Key Features

            No Key Features are available at this moment for lowtran.

            lowtran Examples and Code Snippets

            No Code Snippets are available at this moment for lowtran.

            Community Discussions

            QUESTION

            What would cause a segmentation fault on a GOTO instruction?
            Asked 2019-Aug-23 at 12:57

            I am working on a very old, fortran 77 code called LOWTRAN. It basically is a simulation tool used to model atmospheric light propagation.
            (if you wish to see the complete lowtran code you can check it out here though I dont think it will help in answering the question).

            Unfortunately, as that code was originally made for punch-cards, it was adapted for modern input/output methods and that created a few nasty glitches.
            Those glitches are of the easy to spot/hard to fix kind.
            In order to fix one of them i had no other choice than to setup an IF statement, which contains a GOTO that goes outside the IF statement, somwere else in the code.

            However, Sometimes, the GOTO itself causes a segmentation fault. It does not happend randomly, it rather depends on a few variables that seem unrelated to that IF statement.

            I am compiling this project on two different machines and one does not segfault. Both use gfortran On the windows Machine (the one that does not segfault) i use gfortran 7.2.0 and on the Linux Machine (the one that has segfaults) i use gfortran 4.8.5

            (i can't update the gfortran version on the linux machine as i dont have the required rights)

            Note that Both compilers obviously raise a warning when i compile my fix:

            ...

            ANSWER

            Answered 2019-Aug-23 at 09:39

            The code that the computer runs is not your source code, but rather machine code. The compiler generates that machine code from your source code. The generation can be more or less direct, so one statement of your source code corresponds to a few contiguous machine code instructions. But it need not be direct. In particular, if the compiler provides optimizations, the correspondence between lines of your source code and the machine code instructions can break down. In that case, the line that a debugger reports as the location of the SEGV can be wrong.

            The simple implementation of a GOTO statement is an unconditional jump machine code instruction, jumping to a valid code address. That simple implementation would never result in a SEGV. You might be tempted to blame your compiler for being buggy, but that would be a mistake. Compiler optimzation has probably confused things. You probably have a fault in an array access near that GOTO statement, or the code just after its destination (the statement labelled 100).

            Try recompiling your program with optimizations turned off (typically with a command-line option like -O0) and rerunning your program. You should then see the SEGV reported at the line where there is an invalid array access.

            Source https://stackoverflow.com/questions/57622493

            QUESTION

            db2 "DB21018E A system error occurred. The command line processor could not continue processing."
            Asked 2017-Feb-10 at 14:53

            I am using DB2 LUW v11.1 with BLU acceleration.

            When I run the following code, I got the error "DB21018E A system error occurred. The command line processor could not continue processing."

            ...

            ANSWER

            Answered 2017-Feb-10 at 14:53

            As suggested by my group's db expert, I used old fashioned way to create the table, then used "load from cursor" (suggested by @mustaccio) to populate the table from select ....

            The following is how the new script looks like and it succeeded this time:

            Source https://stackoverflow.com/questions/42140278

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install lowtran

            You will need a Fortran compiler. gfortran is one suitable compiler. We use f2py (part of numpy) to seamlessly use Fortran libraries from Python by special compilation of the Fortran library with auto-generated shim code.
            If a Fortran compiler is not already installed, install Gfortran: Linux: apt install gfortran Mac: brew install gcc Windows use MSYS2 or MinGW to get Gfortran. Windows only: from Powershell: echo "[build]`ncompiler=mingw32" | Out-File -Encoding ASCII ~/pydistutils.cfg Note: Cygwin is essentially obsolete due to Windows Subsystem for Linux. Cygwin is broken for Numpy and Gfortran and general.
            Install Python Lowtran code pip install -e .

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install lowtran

          • CLONE
          • HTTPS

            https://github.com/space-physics/lowtran.git

          • CLI

            gh repo clone space-physics/lowtran

          • sshUrl

            git@github.com:space-physics/lowtran.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link