GithubHelp home page GithubHelp logo

asreimer / lmfit2 Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 3.0 21.88 MB

Non-Linear Levenburg-Marquardt Least-Squares Fitting of SuperDARN ACFs

License: GNU General Public License v3.0

Makefile 0.84% C 78.67% Objective-C 0.70% Python 19.11% C++ 0.29% Shell 0.39%
acf marquardt python c superdarn levenburg-marquardt levenburg rawacf

lmfit2's People

Contributors

asreimer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

lmfit2's Issues

Issue creating the lmfit2 file with the python version

Hi Ashton,
I've been trying to run your lmfit2 code and I've been having some problems. I'm using python 2.7.13 and numpy 1.11.2. I'm trying to create the lmfit2 file from the rawacf file (20120614.0001.00.sas.rawacf) for the saskatoon data from Reimer et al. (2018) paper and keep I getting the following error:

Traceback (most recent call last):
  File "lmfit2.py", line 648, in <module>
    fitted_records = [p.get() for p in temp]
  File "/cm/shared/apps/python/gcc/2.7.13/lib/python2.7/multiprocessing/pool.py", line 567, in get
    raise self._value
TypeError: only integer arrays with one element can be converted to an index

Any help would be brilliant!
Thanks,
Samuel

[ENH]: Add Gaussian envelope model

Standard SuperDARN processing usually fits both an Exponential and Gaussian envelope models. Currently, LMFIT2 only supports Exponential envelope fitting.

Adding lmfit2 to the SuperDARN RST

Hei @asreimer!

I'm reaching out because there have been several requests to add this library to the RST. We can take care of the implementation, but I just wanted to touch base first. Are you happy for us to copy the code? And do you recommend that we copy the develop branch (which seems to include some bug fixes)? RST and lmfit2 are both licensed under the GPLv3 so there will be no problems there.

Thanks!
Emma

docstrings and documentation

Gave up on installing the C version and went to use the python. There are no docstrings on the routines, and the README doesn't describe how the routines are supposed to be used. Help?

c flags and dependencies

I'm having trouble getting the C code to compile. Problems I've had:

  • Bstatic/dynamic flag unknown (-static/dynamic work)
  • The library for "-lz" isn't found. Which library is this referencing for you? I didn't see anything about this in the README.

[ENH]: Analytic Jacobians

Instead of allowing mpfit to numerically estimate the jacobian, construct the jacobian analytically and provide this to mpfit.

mpfit is called here.

Documentation on how to provide user-specified derivatives to mpfit is here

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.