// // time: Wed Apr 24 07:48:42 1996 // // version: 3.0.0 (format), 3.1.0 (DX) // // // Begin MDF // MODULE CDFVarAttributes // CATEGORY CDF // DESCRIPTION Extract Attributes for a CDF variable // INPUT CDFvar; object; (no default); CDF variable // OUTPUT FIELDNAM; object; FIELDNAM attribue // OUTPUT UNITS; object; UNITS attribute // OUTPUT EPOCH; object; EPOCH value (NULL if nonexistent) // OUTPUT min; object; VALIDMIN attribute unless SCALEMIN exists // OUTPUT max; object; VALIDMAX attribute unless SCALEMAX exists // OUTPUT VALIDMIN; value or value list or field; VALIDMIN attribute // OUTPUT VALIDMAX; value or value list or field; VALIDMAX attribute // OUTPUT FILL; object; FILL attribute // End MDF // // comment: Extract NSSDC standard attributes for a CDF variable as Import'd by DX as field attributes. // comment: (C) COPYRIGHT International Business Machines Corp. 1996. // comment: All Rights Reserved. // comment: Licensed Materials - Property of IBM // comment: // comment: Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of IBM not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission. // comment: // comment: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IBM DOES NOT WARRANT AGAINST THE INFRINGMENT OF PATENTS, COPYRIGHT OR ANY OTHER INTELLECTUAL PROPERTY RIGHTS OF OTHERS. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, IS WITH YOU. // comment: // workspace: width = 1325, height = 549 // layout: snap = 0, width = 50, height = 50, align = UL // macro CDFVarAttributes( CDFvar ) -> ( FIELDNAM ,UNITS ,EPOCH ,min ,max ,VALIDMIN ,VALIDMAX ,FILL ) { // // node Input[2]: x = 468, y = 0, inputs = 0, label = Input // parameter: position = 1, name = 'CDFvar', value = '(no default)', descriptive = 1, description = 'CDF variable', required = 0, visible = 1 // CDFVarAttributes_Input_2_out_1 = CDFvar; // // node Inquire[28]: x = 412, y = 114, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "has attribute" // input[3]: defaulting = 0, visible = 1, type = 32, value = "SCALEMAX" // CDFVarAttributes_Inquire_28_out_1 = Inquire( CDFVarAttributes_Input_2_out_1, "has attribute", "SCALEMAX" ) [instance: 28, cache: 1]; // // node Compute[113]: x = 403, y = 190, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+1" // expression: value = a+1 // name[2]: value = a // CDFVarAttributes_Compute_113_out_1 = Compute( "$0+1", CDFVarAttributes_Inquire_28_out_1 ) [instance: 113, cache: 1]; // // node Attribute[4]: x = 94, y = 131, inputs = 2, label = Attribute // input[2]: defaulting = 0, visible = 1, type = 32, value = "VALIDMAX" // CDFVarAttributes_Attribute_4_out_1 = Attribute( CDFVarAttributes_Input_2_out_1, "VALIDMAX" ) [instance: 4, cache: 1]; // // node Compute[3]: x = 92, y = 220, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "float($0)" // expression: value = float(a) // name[2]: value = a // CDFVarAttributes_Compute_3_out_1 = Compute( "float($0)", CDFVarAttributes_Attribute_4_out_1 ) [instance: 3, cache: 1]; // // node Transmitter[25]: x = 88, y = 316, inputs = 1, label = valid_max // valid_max = CDFVarAttributes_Compute_3_out_1; // // node Receiver[233]: x = 476, y = 283, inputs = 1, label = valid_max // CDFVarAttributes_Receiver_233_out_1 = valid_max; // // node Attribute[2]: x = 504, y = 92, inputs = 2, label = Attribute // input[2]: defaulting = 0, visible = 1, type = 32, value = "SCALEMAX" // CDFVarAttributes_Attribute_2_out_1 = Attribute( CDFVarAttributes_Input_2_out_1, "SCALEMAX" ) [instance: 2, cache: 1]; // // node Compute[2]: x = 556, y = 278, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "float($0)" // expression: value = float(a) // name[2]: value = a // CDFVarAttributes_Compute_2_out_1 = Compute( "float($0)", CDFVarAttributes_Attribute_2_out_1 ) [instance: 2, cache: 1]; // // node Switch[48]: x = 477, y = 392, inputs = 3, label = Switch // CDFVarAttributes_Switch_48_out_1 = Switch( CDFVarAttributes_Compute_113_out_1, CDFVarAttributes_Receiver_233_out_1, CDFVarAttributes_Compute_2_out_1 ) [instance: 48, cache: 1]; // // node Output[16]: x = 500, y = 486, inputs = 1, label = Output // parameter: position = 5, name = 'max', value = ' ', descriptive = 0, description = 'VALIDMAX attribute unless SCALEMAX exists', required = 0, visible = 1 // max = CDFVarAttributes_Switch_48_out_1; // // node Inquire[27]: x = 182, y = 95, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "has attribute" // input[3]: defaulting = 0, visible = 1, type = 32, value = "SCALEMIN" // CDFVarAttributes_Inquire_27_out_1 = Inquire( CDFVarAttributes_Input_2_out_1, "has attribute", "SCALEMIN" ) [instance: 27, cache: 1]; // // node Compute[112]: x = 184, y = 222, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "$0+1" // expression: value = a+1 // name[2]: value = a // CDFVarAttributes_Compute_112_out_1 = Compute( "$0+1", CDFVarAttributes_Inquire_27_out_1 ) [instance: 112, cache: 1]; // // node Attribute[3]: x = 2, y = 129, inputs = 2, label = Attribute // input[2]: defaulting = 0, visible = 1, type = 32, value = "VALIDMIN" // CDFVarAttributes_Attribute_3_out_1 = Attribute( CDFVarAttributes_Input_2_out_1, "VALIDMIN" ) [instance: 3, cache: 1]; // // node Compute[4]: x = 0, y = 227, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "float($0)" // expression: value = float(a) // name[2]: value = a // CDFVarAttributes_Compute_4_out_1 = Compute( "float($0)", CDFVarAttributes_Attribute_3_out_1 ) [instance: 4, cache: 1]; // // node Transmitter[26]: x = 0, y = 332, inputs = 1, label = valid_min // valid_min = CDFVarAttributes_Compute_4_out_1; // // node Receiver[232]: x = 260, y = 227, inputs = 1, label = valid_min // CDFVarAttributes_Receiver_232_out_1 = valid_min; // // node Attribute[1]: x = 325, y = 121, inputs = 2, label = Attribute // input[2]: defaulting = 0, visible = 1, type = 32, value = "SCALEMIN" // CDFVarAttributes_Attribute_1_out_1 = Attribute( CDFVarAttributes_Input_2_out_1, "SCALEMIN" ) [instance: 1, cache: 1]; // // node Compute[1]: x = 347, y = 273, inputs = 2, label = Compute // input[1]: defaulting = 0, visible = 0, type = 32, value = "float($0)" // expression: value = float(a) // name[2]: value = a // CDFVarAttributes_Compute_1_out_1 = Compute( "float($0)", CDFVarAttributes_Attribute_1_out_1 ) [instance: 1, cache: 1]; // // node Switch[47]: x = 240, y = 383, inputs = 3, label = Switch // CDFVarAttributes_Switch_47_out_1 = Switch( CDFVarAttributes_Compute_112_out_1, CDFVarAttributes_Receiver_232_out_1, CDFVarAttributes_Compute_1_out_1 ) [instance: 47, cache: 1]; // // node Output[15]: x = 254, y = 486, inputs = 1, label = Output // parameter: position = 4, name = 'min', value = ' ', descriptive = 0, description = 'VALIDMIN attribute unless SCALEMIN exists', required = 0, visible = 1 // min = CDFVarAttributes_Switch_47_out_1; // // node Inquire[29]: x = 841, y = 91, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "has attribute" // input[3]: defaulting = 0, visible = 1, type = 32, value = "FILLVAL" // CDFVarAttributes_Inquire_29_out_1 = Inquire( CDFVarAttributes_Input_2_out_1, "has attribute", "FILLVAL" ) [instance: 29, cache: 1]; // // node Attribute[11]: x = 956, y = 98, inputs = 2, label = Attribute // input[2]: defaulting = 0, visible = 1, type = 32, value = "FILLVAL" // CDFVarAttributes_Attribute_11_out_1 = Attribute( CDFVarAttributes_Input_2_out_1, "FILLVAL" ) [instance: 11, cache: 1]; // // node Switch[49]: x = 904, y = 212, inputs = 3, label = Switch // input[3]: visible = 0 // CDFVarAttributes_Switch_49_out_1 = Switch( CDFVarAttributes_Inquire_29_out_1, CDFVarAttributes_Attribute_11_out_1, NULL ) [instance: 49, cache: 1]; // // node Output[17]: x = 898, y = 318, inputs = 1, label = Output // parameter: position = 8, name = 'FILL', value = ' ', descriptive = 0, description = 'FILL attribute', required = 0, visible = 1 // FILL = CDFVarAttributes_Switch_49_out_1; // // node Inquire[26]: x = 1108, y = 111, inputs = 3, label = Inquire // input[2]: defaulting = 0, visible = 1, type = 32, value = "has attribute" // input[3]: defaulting = 0, visible = 1, type = 32, value = "EPOCH" // CDFVarAttributes_Inquire_26_out_1 = Inquire( CDFVarAttributes_Input_2_out_1, "has attribute", "EPOCH" ) [instance: 26, cache: 1]; // // node Attribute[5]: x = 1257, y = 82, inputs = 2, label = Attribute // input[2]: defaulting = 0, visible = 1, type = 32, value = "EPOCH" // CDFVarAttributes_Attribute_5_out_1 = Attribute( CDFVarAttributes_Input_2_out_1, "EPOCH" ) [instance: 5, cache: 1]; // // node Switch[50]: x = 1185, y = 240, inputs = 2, label = Switch // CDFVarAttributes_Switch_50_out_1 = Switch( CDFVarAttributes_Inquire_26_out_1, CDFVarAttributes_Attribute_5_out_1 ) [instance: 50, cache: 1]; // // node Output[7]: x = 1185, y = 363, inputs = 1, label = Output // parameter: position = 3, name = 'EPOCH', value = ' ', descriptive = 0, description = 'EPOCH value (NULL if nonexistent)', required = 0, visible = 1 // EPOCH = CDFVarAttributes_Switch_50_out_1; // // node Output[19]: x = 151, y = 394, inputs = 1, label = Output // parameter: position = 7, name = 'VALIDMAX', value = ' ', descriptive = 0, description = 'VALIDMAX attribute', required = 0, visible = 1 // VALIDMAX = CDFVarAttributes_Compute_3_out_1; // // node Output[18]: x = 56, y = 409, inputs = 1, label = Output // parameter: position = 6, name = 'VALIDMIN', value = ' ', descriptive = 0, description = 'VALIDMIN attribute', required = 0, visible = 1 // VALIDMIN = CDFVarAttributes_Compute_4_out_1; // // node Attribute[7]: x = 715, y = 114, inputs = 2, label = Attribute // input[2]: defaulting = 0, visible = 1, type = 32, value = "UNITS" // CDFVarAttributes_Attribute_7_out_1 = Attribute( CDFVarAttributes_Input_2_out_1, "UNITS" ) [instance: 7, cache: 1]; // // node Output[6]: x = 723, y = 190, inputs = 1, label = Output // parameter: position = 2, name = 'UNITS', value = ' ', descriptive = 0, description = 'UNITS attribute', required = 0, visible = 1 // UNITS = CDFVarAttributes_Attribute_7_out_1; // // node Attribute[6]: x = 633, y = 105, inputs = 2, label = Attribute // input[2]: defaulting = 0, visible = 1, type = 32, value = "FIELDNAM" // CDFVarAttributes_Attribute_6_out_1 = Attribute( CDFVarAttributes_Input_2_out_1, "FIELDNAM" ) [instance: 6, cache: 1]; // // node Output[5]: x = 625, y = 192, inputs = 1, label = Output // parameter: position = 1, name = 'FIELDNAM', value = ' ', descriptive = 0, description = 'FIELDNAM attribue', required = 0, visible = 1 // FIELDNAM = CDFVarAttributes_Attribute_6_out_1; // network: end of macro body } CDFVarAttributes_Input_2_out_1 = NULL; CDFVarAttributes_Inquire_28_out_1 = NULL; CDFVarAttributes_Compute_113_out_1 = NULL; CDFVarAttributes_Attribute_4_out_1 = NULL; CDFVarAttributes_Compute_3_out_1 = NULL; CDFVarAttributes_Transmitter_25_out_1 = NULL; CDFVarAttributes_Receiver_233_out_1 = NULL; CDFVarAttributes_Attribute_2_out_1 = NULL; CDFVarAttributes_Compute_2_out_1 = NULL; CDFVarAttributes_Switch_48_out_1 = NULL; CDFVarAttributes_Inquire_27_out_1 = NULL; CDFVarAttributes_Compute_112_out_1 = NULL; CDFVarAttributes_Attribute_3_out_1 = NULL; CDFVarAttributes_Compute_4_out_1 = NULL; CDFVarAttributes_Transmitter_26_out_1 = NULL; CDFVarAttributes_Receiver_232_out_1 = NULL; CDFVarAttributes_Attribute_1_out_1 = NULL; CDFVarAttributes_Compute_1_out_1 = NULL; CDFVarAttributes_Switch_47_out_1 = NULL; CDFVarAttributes_Inquire_29_out_1 = NULL; CDFVarAttributes_Attribute_11_out_1 = NULL; CDFVarAttributes_Switch_49_out_1 = NULL; CDFVarAttributes_Inquire_26_out_1 = NULL; CDFVarAttributes_Attribute_5_out_1 = NULL; CDFVarAttributes_Switch_50_out_1 = NULL; CDFVarAttributes_Attribute_7_out_1 = NULL; CDFVarAttributes_Attribute_6_out_1 = NULL;