From 8a979956933f7dc2b1819bc7ba3f6bc93da660d4 Mon Sep 17 00:00:00 2001
From: Bruce Flynn <brucef@ssec.wisc.edu>
Date: Fri, 6 Nov 2015 02:22:27 +0000
Subject: [PATCH] Use XT rather than PDX extension

---
 edosl0util/cli/rdr2l0.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/edosl0util/cli/rdr2l0.py b/edosl0util/cli/rdr2l0.py
index e1aaca4..e595f1c 100644
--- a/edosl0util/cli/rdr2l0.py
+++ b/edosl0util/cli/rdr2l0.py
@@ -47,15 +47,15 @@ def main():
     util.configure_logging(args)
 
     def pdsfilename(product):
-        return 'P157{}{:%y%j%H%M%S}001.PDX'.format(product, args.created)
+        return 'P157{}XT{:%y%j%H%M%S}001.PDS'.format(product, args.created)
 
     def remove_files(files):
         [os.remove(f) for f in files]
 
     science_products = {
-        'RNSCA-RVIRS': '0826VIIRSSCIENCEAT',
-        'RCRIS-RNSCA': '1289CRISSCIENCEAAT',
-        'RATMS-RNSCA': '0515ATMSSCIENCEAAT'}
+        'RNSCA-RVIRS': '0826VIIRSSCIENCE',
+        'RCRIS-RNSCA': '1289CRISSCIENCEA',
+        'RATMS-RNSCA': '0515ATMSSCIENCEA'}
 
     file_type = os.path.basename(args.rdr[0]).split('_')[0]
     LOG.info('File type %s', file_type)
@@ -76,7 +76,7 @@ def main():
     if args.ancillary:
         for apid in (0, 8, 11):
             inputs = sorted(glob.glob('*.anc{:d}.pkts'.format(apid)))
-            product = '{:04d}AAAAAAAAAAAAA'.format(apid)
+            product = '{:04d}AAAAAAAAAAA'.format(apid)
             pdsname = pdsfilename(product)
             LOG.info("merging apid %d to %s", apid, pdsname)
             streams = [stream.jpss_packet_stream(open(f, 'rb')) for f in inputs]
-- 
GitLab