// ************************************************* // 2018IcarttFormat.ipf // Author:Donna Sueper // Most Recently Revised by: Ken Aikin // Master Keeper: Ken Aikin // Revision Number: 1.0 // Revision Date: Mar 7, 2022 // Revision Notes: // 1.00 Started with latest version of 2018IcarttFormat 1.17 // Bug fix in IcarttButton_FormatViaTable() when creating ICARTT file not from existing file. Got index out of range error. // Fix typos, formatting, comments. Remove redundant "Platform", "Location" "Project Info" text in header. // -------------------------------------- // Notes from changes to 2018IcarttFormat // 1.17 Same bug fix as below, but for long variable description. (Below was for short variable name.) // 20220217 // 1.16 Fix bug in Load_IngestHeader1001() that caused spaces to accumulate in front of units when creating a file from an existing file header. // 20220208 // 1.15 In Load_LoadHeader1001 change to allow up to 1000 dependent vars (RECAP2021 VOCs use 983 vars) // 20210616 // 1.14 Change Icartt_CheckRevStr() add the leading R to revision string from file to compare to revision from filename. // 20210616 // 1.13 Change Load_LoadHeader1001() and Load_IngestHeader1001() to allow ingest of dependent vars when ; character is used. Now use \r as delimiter in list of dependent vars before parsing into units, etc. // 20200817 // 1.12 Add a line to Icartt_CheckRevStr() to take care of case where ICARTT file revision is in a comma-delimited list (which it shouldn't be, but some FIREX-AQ files are using that from some users.) // 20200427 // 1.11 Bug fix in Create_CreateHeader. The string variable independentVariableNameStr got populated with the entire line (independentVar, units, standardName), instead of just independentVar. Trim it when needed. // 20200228 // 1.10 In Load_LoadHeader1001() increase the allowed number of dependent variables to 700. ATom merge files have lots of species! // 20191118 // 1.09 Bug fix in Load_LoadHeader1001() Un-comment Load_GetNumHeaderLinesFileTyp() to execute and set global NumHeaderLinesVar, which is needed to load the full header successfully. // 1.08 Bug fix in function Icartt_CheckRevStr() to trim white space from revisionstr read from file. // 20190619 // 1.07 Bug fix in function Icartt_CheckRevStr() to fix bug introduced below for files without launch number // 20180720 // 1.06 Bug fix in function Icartt_CheckRevStr() to get correct file revision if file uses optional _Lx launch number in filename. // 20180705 // 1.05 Bug fix in function Load_IngestHeader1001() if revision number had trailing spaces. // 20180620 // 1.04 Bug fix in function Icartt_CheckRevStr() if revision number was more than one digit. // 20180605 // 1.03 Remove /Z flag for now from killWindow command for compatability with Igor 6. (Commented where removed). // 20180426 // 1.02 Bug fixes after reorganization that happened in 1.01 (rtGlobals=3, put ICARTT_CheckRevStr() into Load_IngestHeader1001() instead of Load_LoadHeader1001(), // fix typo in comment, add call to Load_ApplyScaleFactor1001() which was left out, comment out redundant calls to Load_GetNumHeaderLinesFileTyp(). // 20180415