[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #IKY-965070]: single and double digit hours



Mark,

> Is there any way to create a double-digit hour when given at times a
> single-digit hour, and at times a double-digit hour?
> 
> For example, the following files are sent through the Antarctic-IDD:
> USAP.AMRC.Composite.infrared.20060717.0.jpg
> USAP.AMRC.Composite.infrared.20060717.3.jpg
> USAP.AMRC.Composite.infrared.20060717.6.jpg
> USAP.AMRC.Composite.infrared.20060717.9.jpg
> USAP.AMRC.Composite.infrared.20060717.12.jpg
> USAP.AMRC.Composite.infrared.20060717.15.jpg
> USAP.AMRC.Composite.infrared.20060717.18.jpg
> USAP.AMRC.Composite.infrared.20060717.21.jpg
> 
> I want to file these files as:
> comp_ir_2006071700.jpg
> comp_ir_2006071703.jpg
> comp_ir_2006071706.jpg
> comp_ir_2006071709.jpg
> comp_ir_2006071712.jpg
> comp_ir_2006071715.jpg
> comp_ir_2006071718.jpg
> comp_ir_2006071721.jpg
> 
> In the case of the double-digit hours, I think I know how to handle that:
> EXP
> USAP\.AMRC\.Composite\.infrared\.(....)(..)(..)\.(..)\.jpg
> FILE    -close
> data/ant-idd/amrc/composite/comp_ir_\1\2\3\4.jpg
> 
> How do I get it to work for both the single-digit hours, and the
> double-digit hours?

The ideal solution would be to appropriately modify the data-product
identifier.

Failing that, then two pqact.conf(5) entries are needed:

EXP     USAP\.AMRC\.Composite\.infrared\.(....)(..)(..)\.([0-2][0-9])\.jpg
        FILE    -close data/ant-idd/amrc/composite/comp_ir_\1\2\3\4.jpg

EXP     USAP\.AMRC\.Composite\.infrared\.(....)(..)(..)\.([0-9])\.jpg
        FILE    -close data/ant-idd/amrc/composite/comp_ir_\1\2\30\4.jpg

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: IKY-965070
Department: Support LDM
Priority: Normal
Status: Closed