.king: Difference between revisions

From ADPAA
Jump to navigation Jump to search
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 3: Line 3:
'''Purpose'''
'''Purpose'''


Extracts the King probe power data from the SEA M300 data acquisition system file (*.sea).
This script extracts analog data from SEA M300 data system file (*.sea) and creates the *.analog.raw file.
The process_raw script creates the *.physical.raw file which contains the power.


'''Subroutines'''
'''Required Input File'''


The process_raw script calls the IDL subroutine process_WMI.pro, which in turn calls the subroutine '''king''', which then calls the '''create_wcm3000_headerd0.pro''' and '''create_wcm3000_headerd1.pro''' subroutines.
<nowiki>*.sea</nowiki>
 
'''Output File'''
 
Among many other files, it generates:


<nowiki>*.analog.raw</nowiki>


'''Required Input Files'''
This will be used in the following scripts.
 
'''Syntax'''
  process_raw <-d> <-v> <-vm> input_file
 
''Example Syntax''
  process_raw $ADPAA_DIR/src/TestData/FlightData/20140429_152103/PostProcessing/14_04_29_15_21_03.sea
 
==analog2physical (Level 2)==
 
'''Purpose'''
 
To convert analog measurements from engineering units (voltages) to physical units (i.e. degree C).


<nowiki>*.sea</nowiki>
'''Required Input File'''


'''Output Files'''
<nowiki>*.analog.*</nowiki>


Among many other files, it generates:
'''Output File'''


*<nowiki>*.seriald0.wcm.raw</nowiki>
<nowiki>*.physical.raw</nowiki>
*<nowiki>*.seriald1.wcm.raw</nowiki>


'''Syntax'''
'''Syntax'''
  analog2physical <final> <csh_error> <hotwire_offset> <nohotwireslave> <physical> <ccn> <ballvario> <nevzorov> <TDLflow> input_file
''Optional parameters''
<final> causes the output data to be tagged Final instead of Preliminary.
<csh_error> causes the error to be returned to the csh calling program.
<nohotwireslave> causes the hot wire probe voltage not to be checked.
<physical> generates a *.physical.raw file.


process_raw <-d> <-v> <-vm> input_file
<ccn> generates a *ccn.raw file.


'''Example Syntax'''
<ballvario> generates a *balvario.raw file.


process_raw ${CoPAS_DIR}/ADTAE/TestData/FlightData/20220411_152103/PostProcessing/22_04_11_15_21_03.sea
<nevzorov> generates a *.nevzorov file.  


==king2lwc.pro (Level 3)==
<TDLflow> generates a *.TDLflow.raw file.


'''Purpose'''


To calculate the liquid water content for the king probe using a correction factor for the baseline voltage.
''Example Syntax''
  analog2physical $ADPAA_DIR/src/TestData/FlightData/20140429_152103/PostProcessing/14_04_29_15_21_03.analog.raw
 
The *.analog.raw file is generated from process_raw.


'''Required Input Files'''
==king2lwc (Level 3)==


<nowiki>*.physical.raw</nowiki> <nowiki>*.wcm_comb.raw</nowiki>
'''Purpose'''


'''Optional Input Files'''
To calculate the liquid water content for the king probe using a correction factor for the baseline voltage and call all necessary subroutines.


<nowiki>*.CIP_V.conc.1Hz</nowiki>
'''Required Input Files'''


<nowiki>*.conc.cdp.1Hz</nowiki>
<nowiki>*.physical.raw</nowiki>, <nowiki>*.wind.raw</nowiki> or <nowiki>*.basic.raw</nowiki>, <nowiki>*.baumgardner.fssp.raw</nowiki> or <nowiki>*.conc.spp_fssp.raw</nowiki> or <nowiki>*.conc.cdp.raw</nowiki> or <nowiki>*.conc.fscdp.raw</nowiki>


'''Output Files'''
'''Output Files'''


<nowiki>*.correct.wcm.raw</nowiki>
<nowiki>*.king.raw</nowiki>


'''Syntax'''
'''Syntax'''


  [python3] wcm2correct.py [verbose=0|1] [ci_conc_file] [cdp_conc_file] wcm_file
  king2lwc [physical_file] [wind_file or basic_file] [fssp_file or cdp_file]


'''Examples'''
'''Examples'''


  wcm2correct.py verbose=1 22_04_11_15_21_03.wcm_comb.raw
  king2lwc 02_07_18_16_41_07.physical.raw 02_07_18_16_41_07.REAL.winds.raw 02_07_18_16_41_07.baumgardner.fssp.raw
 
wcm2correct.py 22_04_11_15_21_03.conc.cdp.1Hz 22_04_11_15_21_03.seriald1.wcm.raw


  wcm2correct.py verbose=1 22_04_11_15_21_03.cip_PADS.raw 22_04_11_15_21_03.seriald1.wcm.raw
  king2lwc 23_01_13_04_16_54.physical.raw 23_01_13_04_16_54.basic.raw 23_01_13_04_16_54.conc.cdp.raw

Latest revision as of 21:56, 26 August 2024

process_raw (Level 1)

Purpose

This script extracts analog data from SEA M300 data system file (*.sea) and creates the *.analog.raw file.

Required Input File

*.sea

Output File

Among many other files, it generates:

*.analog.raw

This will be used in the following scripts.

Syntax

 process_raw <-d> <-v> <-vm> input_file

Example Syntax

 process_raw $ADPAA_DIR/src/TestData/FlightData/20140429_152103/PostProcessing/14_04_29_15_21_03.sea

analog2physical (Level 2)

Purpose

To convert analog measurements from engineering units (voltages) to physical units (i.e. degree C).

Required Input File

*.analog.*

Output File

*.physical.raw

Syntax

 analog2physical <final> <csh_error> <hotwire_offset> <nohotwireslave> <physical> <ccn> <ballvario> <nevzorov> <TDLflow> input_file

Optional parameters

<final> causes the output data to be tagged Final instead of Preliminary.

<csh_error> causes the error to be returned to the csh calling program.

<nohotwireslave> causes the hot wire probe voltage not to be checked.

<physical> generates a *.physical.raw file.

<ccn> generates a *ccn.raw file.

<ballvario> generates a *balvario.raw file.

<nevzorov> generates a *.nevzorov file.

<TDLflow> generates a *.TDLflow.raw file.


Example Syntax

 analog2physical $ADPAA_DIR/src/TestData/FlightData/20140429_152103/PostProcessing/14_04_29_15_21_03.analog.raw
 

The *.analog.raw file is generated from process_raw.

king2lwc (Level 3)

Purpose

To calculate the liquid water content for the king probe using a correction factor for the baseline voltage and call all necessary subroutines.

Required Input Files

*.physical.raw, *.wind.raw or *.basic.raw, *.baumgardner.fssp.raw or *.conc.spp_fssp.raw or *.conc.cdp.raw or *.conc.fscdp.raw

Output Files

*.king.raw

Syntax

king2lwc [physical_file] [wind_file or basic_file] [fssp_file or cdp_file]

Examples

king2lwc 02_07_18_16_41_07.physical.raw 02_07_18_16_41_07.REAL.winds.raw 02_07_18_16_41_07.baumgardner.fssp.raw
king2lwc 23_01_13_04_16_54.physical.raw 23_01_13_04_16_54.basic.raw 23_01_13_04_16_54.conc.cdp.raw