Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-15576

Unique names for ATS archive image dirs each day

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ctrl_iip
    • Labels:
      None

      Description

      The target location for an assembled and formatted image file is currently specified within the L1 system config file, as a directory path. This ticket is for the addition of a way to automate the target directory. The L1 system config file will still include a path to the archive location, but the software will append the day-month-year string to the path.

      This is an initial and probably temporary measure, but as Patrick and Robert take test images with the ATS camera, they need some way to easily distinguish which images were taken on which day. Eventually, the archive will work hand in hand with the Data Backbone; and this may require a change when it arrives.

        Attachments

          Activity

          Hide
          hwin16 Htut Khine added a comment - - edited

          DM-15576 I have added the directory structure to the target location. Currently, it is in the order of YYYYMMDD format. I can change the format upon request. Initially, I thought `bbcp` has the switch that creates directory if not exist and determined from bbcp documentation that was the `-A` switch. Yet, I tried multiple attempts to make this switch work, from using bbcp in the command line to adding/subtracting/combining with other switches to no avail. So the final solution was before doing the Forward_end_readout, forwarder ssh into archive machine, creates directory and then makes the bbcp transfer. This seems neither efficient nor intuitive but that's the final solution. If anyone has input into this, I am more than happy to edit the code.

          Show
          hwin16 Htut Khine added a comment - - edited DM-15576  I have added the directory structure to the target location. Currently, it is in the order of YYYYMMDD format. I can change the format upon request. Initially, I thought `bbcp` has the switch that creates directory if not exist and determined from bbcp documentation that was the `-A` switch. Yet, I tried multiple attempts to make this switch work, from using bbcp in the command line to adding/subtracting/combining with other switches to no avail. So the final solution was before doing the Forward_end_readout, forwarder ssh into archive machine, creates directory and then makes the bbcp transfer. This seems neither efficient nor intuitive but that's the final solution. If anyone has input into this, I am more than happy to edit the code.

            People

            Assignee:
            hwin16 Htut Khine
            Reporter:
            jparsons James Parsons
            Watchers:
            Htut Khine, James Parsons, Michael Reuter, Patrick Ingraham
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                CI Builds

                No builds found.