You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Overview

This is a temporary workflow until the JRSO has the opportunity to integrate image reduction in the CorrDownloader application.

To use images in the Correlator 4 application, you need to:

  1. retrieve the correct images from the LORE
  2. place the images in a specifically named R directory
  3. run the provided R script to reduce and rename the images
  4. place the reduced images in the correlation data directory from where the Correlator app will import them

Retrieve the images from LORE:

  • Go to the LORE page at
  • Select the Images > Core Section (LSIMG) > Standard report
  • Select the hole for which you want to reduce the section half images
  • Click View data, then click Batch download linked files
  • When prompted, click Cropped image (JPG link)
  • Click the Chose a link button.
    • A zip file with all the images will be written to whatever download folder your workstation has configured.

Place the images in the R directory

Assuming that you have a 'StratigraphicCorrelation' folder at the top of your workstation directory, create a subfolder 'IMG_REDUX' as in :

  • /Users/daq/Documents/StratigraphicCorrelation/IMG_REDUX

The IMG_REDUX folder should have the script and must have the following two subfolder in it:

  • img_redux_input
  • img_redux_output

In the input folder, you create a subfolder with the hole name, as in 'U1476A', and you all images downloaded for that hole in the folder.

  • img_redux_input/U1476A/(all image files for Hole U1476A)
  • Note: you can keep the hole folders or delete them when you are done with a hole. Just make sure only one is not commented out in the script.


Run the R script

Double-click the IMG_REDUX script to open it.

Modify the script to run the batch of images you want to reduce.
8)    you need to change some lines so the script knows where folders are
a.    line 39 top_dir : here enter the directory path where the folder img_redux_input is. On a Mac open Terminal, and drag the folder from Finder into Terminal: Example: correlator:~daq$ /Users/daq/Documents/Exp392_StratigraphicCorrelation/Correlator_Exp392/ImageRedux/img_redux_input
=> now fill between the quotes: “/Users/daq/Documents/Exp392_StratigraphicCorrelation/Correlator_Exp392/ImageRedux/img_redux_input”
Do not use the ~daq$
b.    line 56: Change the test Name to the Hole Name Folder (U1579A) Name
Example ‘U1579A’
9)    Now run the script by clicking the RUN green arrow in R studio
10)    Wait and hope all is fine, takes a while to process the images, they should be in img_redux_output folder when successful
11)    Move images to other folder and import from there to Correlator

  • No labels