[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AWIPS #OIH-774959]: Accessing AWIPS equations via python-awips?



> Could I call, for instance, the SBCAPE method from AWIPS via python-awips?
> Is that accessible?

Derived parameters are not yet supported in python-awips, but I have a lead on 
how they can be.

> Is it possible to access the equations that AWIPS uses to calculate things
> like Precipitable Water, CAPEs, CINH, 0-3km SRH, and other indices that
> show up in the multiple different panes around the soundings when using SPC
> wide view?

Derived parameters are located at 
https://github.com/Unidata/awips2/tree/unidata_16.1.4/edexOsgi/com.raytheon.uf.common.dataplugin.grid/utility/common_static/base/derivedParameters/definitions

Computed CAPE (cCape), for example, 
https://github.com/Unidata/awips2/tree/unidata_16.1.4/edexOsgi/com.raytheon.uf.common.dataplugin.grid/utility/common_static/base/derivedParameters/definitions/cCape.xml

has a number of methods defined such as 

    <Method  name="Cape" levels="S">
        <Field abbreviation="T" level="3D" />
        <Field abbreviation="P"/>
        <Field abbreviation="PoT"/>
        <Field abbreviation="SHx"/>
        <ConstantField value="0.0"/>
    </Method>

The method name ("Cape") is a reference to a file located in 
https://github.com/Unidata/awips2-core/tree/unidata_16.1.4/common/com.raytheon.uf.common.derivparam.python/utility/common_static/base/derivedParameters/functions

In this example, Cape.py calculates the derived parm given the input fields (T, 
P, PoT, SHx)  
https://github.com/Unidata/awips2-core/blob/unidata_16.1.4/common/com.raytheon.uf.common.derivparam.python/utility/common_static/base/derivedParameters/functions/Cape.py

PoT and SHx from above are also a derived parms:
https://github.com/Unidata/awips2-core/blob/unidata_16.1.4/common/com.raytheon.uf.common.derivparam.python/utility/common_static/base/derivedParameters/functions/PoT.py
https://github.com/Unidata/awips2-core/blob/unidata_16.1.4/common/com.raytheon.uf.common.derivparam.python/utility/common_static/base/derivedParameters/functions/SHx.py


-Michael

Ticket Details
===================
Ticket ID: OIH-774959
Department: Support AWIPS
Priority: Normal
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.