| Mission | Resolution (m/px) | Image | Download |
|---|---|---|---|
| Apollo 15 | 0.406 | Left NAC | M175252641L |
| Right NAC | M175252641R | ||
| Apollo 17 | 0.515 | Left NAC | M113758461L |
| Right NAC | M113758461R |
First, move the downloaded raw files into Apollo15/RAW and Apollo17/RAW folders correspondingly.
# Create download folders mkdir -p Apollo15/RAW Apollo17/RAW # Move Apollo 15 files mv M175252641LE.IMG Apollo15/RAW/ mv M175252641RE.IMG Apollo15/RAW/ # Move Apollo 17 files mv M113758461LE.IMG Apollo17/RAW/ mv M113758461RE.IMG Apollo17/RAW/ # Create calibrated folder for ISIS output mkdir -p Apollo15/calibrated Apollo17/calibrated
Second, create three scripts:
#!/bin/bash function process() { LROCFILE=$1 # Cut Extension FILELENGTH=${#LROCFILE}-4 IMGFILE=${LROCFILE:0:FILELENGTH} echo "Importing $LROCFILE to isis" lronac2isis from=./RAW/"$IMGFILE".IMG to=./calibrated/"$IMGFILE".lev0.cub echo "Initializing SPICE kernels" spiceinit from=./calibrated/"$IMGFILE".lev0.cub spksmithed=true web=true # echo "Calibrating EDR to CDR" lronaccal from=./calibrated/"$IMGFILE".lev0.cub to=./calibrated/"$IMGFILE".lev1.cub dark=false lronacecho from=./calibrated/"$IMGFILE".lev1.cub to=./calibrated/"$IMGFILE".lev2.cub echo "done" } IMAGES="./RAW/*.IMG" for image in $IMAGES do image=$(basename "$image") echo "Processing $image" process "$image" done
#!/bin/bash # function process() { LROCFILE=$1 # Cut Extension FILELENGTH=${#LROCFILE}-4 IMGFILE=${LROCFILE:0:FILELENGTH} echo "Mapping" cam2map from=./calibrated/"$IMGFILE".lev2.cub to=./calibrated/"$IMGFILE".lev3.cub map=mosaic.map pixres=mpp warpalgo> echo "done" } IMAGES="./RAW/*.IMG" for image in $IMAGES do image=$(basename "$image") echo "Processing $image" process "$image" done
ls calibrated/*.lev2.cub > lev2.txt mosrange fromlist=lev2.txt to=mosaic.map projection=SimpleCylindrical
Note: These commands assume ISIS3 is properly installed and configured on your system. Adjust paths as needed for your specific setup.
Third, run the scripts for both the Apollo 15 and Apollo 17 site:
# For Apollo 15 cd Apollo15 chmod +x preprocess_lroc.sh ./preprocess_lroc.sh ./createMosRange.sh ./mappingLROC.sh # For Apollo 17 cd ../Apollo17 chmod +x preprocess_lroc.sh ./preprocess_lroc.sh ./createMosRange.sh ./mappingLROC.sh
Fourth, combine the mapped images into a single mosaic:
# For Apollo 15 cd Apollo15 ls calibrated/*.lev3.cub > lev3.txt automos fromlist=lev3.txt mosaic=M175252641.cub # For Apollo 17 cd ../Apollo17 ls calibrated/*.lev3.cub > lev3.txt
.cub files and crop the images according to the coordinates belowTo load these images into the program, the NAC images are divided into smaller sub-images and stored in their respective data folders. The script follows the structure below. This dataset was created for and used in the anomaly detection research available at github.com/TechnicToms/lunar-technosignatures:
Replace [VERSION] with 15 or 17. Place the tiff image into the corresponding directory and crop it as follows:
| Filename | x | y | w | h |
|---|---|---|---|---|
| M175252641_cut1.png | 0 | 0 | 7399 | 14662 |
| M175252641_cut2.png | 0 | 14662 | 7399 | 14662 |
| M175252641_cut3.png | 0 | 29324 | 7399 | 14662 |
| M175252641_cut4.png | 0 | 43986 | 7399 | 14662 |
| M175252641_cut5.png | 0 | 58648 | 7399 | 14662 |
| Filename | x | y | w | h |
|---|---|---|---|---|
| M113758461_cut1.png | 0 | 0 | 10118 | 10450 |
| M113758461_cut2.png | 0 | 10450 | 10118 | 10450 |
| M113758461_cut3.png | 0 | 20900 | 10118 | 10450 |
| M113758461_cut4.png | 0 | 31350 | 10118 | 10450 |
| M113758461_cut5.png | 0 | 41800 | 10118 | 10450 |
Afterwards, place the ground truths from the GroundTruths folder into the appropriate data folder as listed above.