Get Visual Magnitude

Feedback
qam1
2012-09-26
2012-10-09
  • qam1

    qam1 - 2012-09-26

    I see there is a (new?) getVMagnitude function in the scripts

    http://www.stellarium.org/doc/head/classStelObject.html#af45da326dd70efe50e87
    5d63d429890b

    Is it working? If so what's the format to get it to work?

    I tried,
    mag = core.getVMagnitude("Mars", false);

    and

    mag = StelObject.getVMagnitude("Mars", false);

    and they don't work

    I can't figure out from the instructions below what's the format

    virtual float StelObject::getVMagnitude ( const StelCore * core,
    bool withExtinction = false
    ) const

    Return object's apparent V magnitude as seen from observer.

    Reimplemented in Comet, MinorPlanet, Nebula, Planet,
    BigStarCatalogExtension::StarWrapper< Star >,
    BigStarCatalogExtension::StarWrapper< Star2 >,
    BigStarCatalogExtension::StarWrapper< Star3 >, and
    BigStarCatalogExtension::StarWrapper< Star1 >.

     
  • Alexander Wolf

    Alexander Wolf - 2012-09-26

    ERROR! The markdown supplied could not be parsed correctly. Did you forget to surround a code snippet with "~~~~"?

    You need use SolarSystem.getPlanetVMagnitude("Mars", false); - [http://www.ste
    llarium.org/doc/head/classSolarSystem.html#a4af98b138c9cd4e6b3c33730736f4628](
    http://www.stellarium.org/doc/head/classSolarSystem.html%23a4af98b138c9cd4e6b3
    c33730736f4628)  
      
    If you need I can extend core.getObjectPosition(); for all objects.
    
    
     
  • qam1

    qam1 - 2012-09-30

    Thanks

    And yes, add whatever you can to core.getObjectPosition() especially distance.
    Phase & elongation would be nice to

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks