cape.attdb.rdbaero: Database Template for Aerospace Variables¶
This module contains extensions and extra methods that are common to many (atmospheric) aerospace databases. This includes definitions for variables like “angle of attack,” “total angle of attack,” etc.
- class cape.attdb.rdbaero.AeroDataKit(fname=None, **kw)¶
DataKitextension for aerospace applications- Call:
>>> db = AeroDataKit(fname=None, **kw)
- Inputs:
- fname: {
None} |str File name; extension is used to guess data format
- csv: {
None} |str Explicit file name for
CSVFileread- textdata: {
None} |str Explicit file name for
TextDataFile- simplecsv: {
None} |str Explicit file name for
CSVSimple- xls: {
None} |str File name for
XLSFile- mat: {
None} |str File name for
MATFile
- fname: {
- Outputs:
- db:
cape.attdb.rdbaero.AeroDataKit Generic database
- db:
- Versions:
2020-03-19
@ddalle: First version
- make_alpha_beta(col1='alpha', col2='beta')¶
Build alpha and beta cols if necessary and possible
- Call:
>>> db.make_alpha_beta(col1="alpha", col2="beta")
- Inputs:
- db:
cape.attdb.rdbaero.AeroDataKit Data container with aerospace tags
- col1: {
"alpha"} |str Name of new column for angle of attack
- col2: {
"beta"} |str Name of new column for angle of sideslip
- db:
- Effects:
- db[col1]:
np.ndarray Created if no other key with
"alpha"tag present- db[col2]:
np.ndarray Created if no other key with
"beta"tag present
- db[col1]:
- Versions:
2020-03-18
@ddalle: First version
- make_aoap_phip(col1='aoap', col2='phip')¶
Build aoap and phip if necessary and possible
- Call:
>>> db.make_aoap_phip(col1="aoap", col2="phip")
- Inputs:
- db:
cape.attdb.rdbaero.AeroDataKit Data container with aerospace tags
- col1: {
"aoap"} |str Name of new column for total angle of attack
- col2: {
"phip"} |str Name of new column for missile-axis roll
- db:
- Effects:
- db[col1]:
np.ndarray Created if no other key with
"aoap"tag present- db[col2]:
np.ndarray Created if no other key with
"phip"tag present
- db[col1]:
- Versions:
2020-03-18
@ddalle: First version
- make_aoav_phiv(col1='aoav', col2='phiv')¶
Build aoav and phiv if necessary and possible
- Call:
>>> db.make_aoav_phiv(col1="aoav", col2="phiv")
- Inputs:
- db:
cape.attdb.rdbaero.AeroDataKit Data container with aerospace tags
- col1: {
"aoav"} |str Name of new column for missile-axis angle of attack
- col2: {
"phiv"} |str Name of new column for missile-axis roll angle
- db:
- Effects:
- db[col1]:
np.ndarray Created if no other key with
"aoav"tag present- db[col2]:
np.ndarray Created if no other key with
"phiv"tag present
- db[col1]:
- Versions:
2020-03-18
@ddalle: First version