Giter VIP home page Giter VIP logo

Comments (3)

mshumko avatar mshumko commented on July 24, 2024

Hi @ktdavidson,

Thank you for the bug report. The bug comes about when you passed a single Imager into Imagers. Imagers expects a tuple of asilib.Imager objects, not a single asilib.Imager object.

Given that the get_points() method is in Imagers, this is an appropriate way for you to use it. I fixed the bug in Imagers and I will release it soon. In the meanwhile, a quick fix is to wrap your _imagers variable as a tuple: asis = asilib.Imagers((_imagers, )). The example below implements this fix.

import datetime

import asilib
import asilib.asi

location_code = 'FYKN'
map_alt_km = 150
min_elevation = 2
time = datetime.datetime(2012,2,15,6,0,0)

_imagers = asilib.asi.themis(location_code,time=time,alt=map_alt_km)
asis = asilib.Imagers((_imagers, ))

lat_lon_points,intensities = asis.get_points(min_elevation=min_elevation)
print(lat_lon_points)
print(intensities)
print(lat_lon_points.shape)

from asilib.

ktdavidson avatar ktdavidson commented on July 24, 2024

Thank you! This fixed the problem.

from asilib.

mshumko avatar mshumko commented on July 24, 2024

Great! I released an update so you can now use your original code once you update the library via

python3 -m pip install aurora-asi-lib==0.20.5

from asilib.

Related Issues (14)

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.