This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Mark, > Yes, pestering Matthew Lazzara about modifying the data-product > identifier is near the top of my list when he gets back from vacation in > a few days. > ... > This works great for the composite images which have an extension, such > as .jpg or .png. However, the McIDAS area files are sent without an > extension, such as: USAP.AMRC.Composite.infrared.yyyymmdd.hh > USAP.AMRC.Composite.infrared.20060717.0 > USAP.AMRC.Composite.infrared.20060717.3 > USAP.AMRC.Composite.infrared.20060717.6 > USAP.AMRC.Composite.infrared.20060717.9 > USAP.AMRC.Composite.infrared.20060717.12 > USAP.AMRC.Composite.infrared.20060717.15 > USAP.AMRC.Composite.infrared.20060717.18 > USAP.AMRC.Composite.infrared.20060717.21 > For these files I have the two entries: > EXP USAP\.AMRC\.Composite\.infrared\.(....)(..)(..)\.([0-2][0-9]) > FILE -close data/ant-idd/amrc/composite/ir/comp_ir_\1\2\3\4 > EXP USAP\.AMRC\.Composite\.infrared\.(....)(..)(..)\.([0-9]) > FILE -close data/ant-idd/amrc/composite/ir/comp_ir_\1\2\30\4 > With the single-digit hours, both entries are triggered, resulting in > two files saved: > comp_ir_2006071801 > comp_ir_2006071818 > > Any suggestions? Use "$" to anchor the regular-expression to the end of the string: EXP USAP\.AMRC\.Composite\.infrared\.(....)(..)(..)\.([0-2][0-9])$ FILE -close data/ant-idd/amrc/composite/ir/comp_ir_\1\2\3\4 EXP USAP\.AMRC\.Composite\.infrared\.(....)(..)(..)\.([0-9])$ FILE -close data/ant-idd/amrc/composite/ir/comp_ir_\1\2\30\4 This will disambiguate the two cases. > Thank you also for your assistance in explaining the open files. You're welcome. Regards, Steve Emmerson Ticket Details =================== Ticket ID: IKY-965070 Department: Support LDM Priority: Normal Status: Closed