From 30a88b3056275b7d2884d5c6cf6bf5aaade161ba Mon Sep 17 00:00:00 2001 From: "Jaymes.Kenyon" Date: Fri, 30 Apr 2021 19:23:51 +0000 Subject: [PATCH 1/2] Adding README file to describe process of making a "flat" file. --- parm/README.make_flatfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 parm/README.make_flatfile diff --git a/parm/README.make_flatfile b/parm/README.make_flatfile new file mode 100644 index 000000000..c81ee0f2b --- /dev/null +++ b/parm/README.make_flatfile @@ -0,0 +1,16 @@ +To make a .txt flat file for UPP, follow these steps within the parm/ directory: + +1) Select, then validate, the associated "post_avblflds" file, e.g., + + xmllint --noout --schema EMC_POST_Avblflds_Schema.xsd fv3lam_post_avblflds.xml + +2) Select, then validate, the associated "postcntrl" file, e.g., + + xmllint --noout --schema EMC_POST_CTRL_Schema.xsd fv3lam_rrfs.xml + +3) If file validation succeeds in steps (1) and (2), generate the .txt flat file, e.g., + + perl PostXMLPreprocessor.pl fv3lam_rrfs.xml fv3lam_post_avblflds.xml postxconfig-NT-fv3lam_rrfs.txt + + A log file will be created by this script, in addition to the flat file. + From 3a7ea54cbfc41d5a49fd9b067fafaed43cca563b Mon Sep 17 00:00:00 2001 From: "Jaymes.Kenyon" Date: Wed, 12 May 2021 15:59:37 +0000 Subject: [PATCH 2/2] Updates to README to improve explanation of input/output files. --- parm/README.make_flatfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parm/README.make_flatfile b/parm/README.make_flatfile index c81ee0f2b..9933405bb 100644 --- a/parm/README.make_flatfile +++ b/parm/README.make_flatfile @@ -12,5 +12,9 @@ To make a .txt flat file for UPP, follow these steps within the parm/ directory: perl PostXMLPreprocessor.pl fv3lam_rrfs.xml fv3lam_post_avblflds.xml postxconfig-NT-fv3lam_rrfs.txt - A log file will be created by this script, in addition to the flat file. + In this example, "fv3lam_rrfs.xml" and "fv3lam_post_avblflds.xml" are input files, read by the perl + script. The "postxconfig-NT-fv3lam_rrfs.txt" flat file is the output file produced by the script, which + can have any name. + + Note that a log file will be created by this script, in addition to the flat file.