Max and Min Declination

Optuma Forums Optuma Scripting Max and Min Declination

This topic contains 4 replies, has 2 voices, and was last updated by  Thomas F. 2 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #47555

    Thomas F.
    • Topics: 15
    • Replies: 18
    • Posts: 33

    Hi,

    I want to create a script to calculate the maximum and minimum value/date of a planets declination.

    I have already created the script when the declination crosses above or below 0.

    PVAL(PLANET=[Mercury], VALUE=Declination, GEO=HelioCentric) Crosses 0

    I then use the Show View tool to display vertical lines on the bar chart when the declination crosses above or below 0. That works fine.

    But how do I do that with the maximum and minimum declination value. I have tried the following script:

    PVAL(PLANET=[Mercury], VALUE=Declination, GEO=HelioCentric) Max

    This script doesn’t work. It has surely something to do with “Max” function.

    Can someone give me an idea how I can solve the problem?

    Thanks in advance.

    Thomas

    #47559
    Matthew
    Matthew
    • Topics: 3
    • Replies: 69
    • Posts: 72

    Hi,

    This script will produce the result you’re after:

    This will add a line at the declinations peak and trough.

    Ex1

    #47563

    Thomas F.
    • Topics: 15
    • Replies: 18
    • Posts: 33

    Thanks Matthew,

    it works fine.

    #47567

    Thomas F.
    • Topics: 15
    • Replies: 18
    • Posts: 33

    Hi Matthew,

    one last question: “Where is the function “Turns” described?”

    I have nothing found in the Optuma Knowledge Base. On the web page “Formula Functions & General Interface”  (https://help.optuma.com/kb/faq.php?id=714) there is no description about the function “Turns”.

    Thanks, Thomas

    #47571

    Thomas F.
    • Topics: 15
    • Replies: 18
    • Posts: 33

    Hi Matthew,

    I have figured out the issue with the smart operator “turns”. No further help is necessary.

    Thanks a lot.

    Thomas

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Pin It on Pinterest

Share This

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close