= Test F3F-Photometric Function - Test Procedure here =

== Directory Set-up and Image Ingest ==

[[Test F3F Procedures Block-1A - TEST DIRECTORY SET-UP - ORIG]]<<BR>>
log: log-typescript-Block-1A-TestDirSetUp-Orig<<BR>>

[[Test F3F Procedures Block 8A - GEOMETRY/RESIDUALS]]<<BR>>
Clean start model and perform geometry
log: log-typescript-Block-8A-ResidualsGeometry-NONE-startModel

[[Test F3F Procedures Block-2A - INGEST IMAGES - TEST-SPECIFIC]]<<BR>>
Block conducted on images - generic to F3F tests:
 * /SPC_Test/F3-source/G2-DS-MapCam - perturbed;
 * /SPC_Test/F3-source/H2-DS-PolyCam-Nadir - perturbed;
 * /SPC_Test/F3-source/H3-DS-PolyCam-Stereo-v5 - perturbed.
log: log-typescript-Block-2A-IngestImages-TestSpecific

[[Test F3F Procedures Block-3A - REGISTER IMAGES - BATCH]]<<BR>>
Block conducted on all DS images which fall within a 100m x 100m region centered on TAG site 1:
 * 85 DS MapCam images;
 * 22 DS PolyCam Nadir images;
 * 35 DS PolyCam Stereo images.
Images have been pre-registered. Re-registered via make_scriptR to ensure model update and correct registration.<<BR>>
log: log-typescript-Block-3A-Register-Images-F3F-DSImages

[[Test F3F Procedures Block-4A - AUTOREGISTER IMAGES - BATCH]]<<BR>>
Block conducted on 85 DS MapCam images - generic to F3F tests.<<BR>>
log-typescript-Block-4A-Autoregister-Images-F3F-DSMapCamImages

Model must be iterated to build topography from the new DS MapCam images however, since lithosP uses the photometric function - the iteration should be conducted at the start of each sub-test.

== Sub-Test F3F1: ==
''Repeat the following for each sub-test.''

[[Test F3F Procedures Block-1B - TEST DIRECTORY SET-UP - TEST]]<<BR>>
log: log-typescript-Block-1B-TestDirSetUp-Test-F3F1

[[Test F3F Procedures Block-5A - ITERATE LANDMARKS]]
Iterate 53 landmarks contained in a 100m x 100m region centered on TAG Site 1.<<BR>>
log-typescript-Block-5A-Iterate-Landmarks-PostRegistrationOfDSNavCamImages

# Run residuals<<BR>>
echo 5 .005 .0002 | residuals<<BR>>
# Inspect lmrks<<BR>>
grep ">>" RESIDUALS.TXT<<BR>>
# Save residuals output files<<BR>>
mkdir -p log/log-residuals-postRegistrationofDSNavCamImagesAndIteration<<BR>>
cp RESIDUALS.TXT MAPINFO.TXT PICINFO.TXT RANGES_SOLVED.TXT LMKVECS.TXT log/log-residuals-postRegistrationofDSNavCamImagesAndIteration/<<BR>>

=== 20cm Tiling ===

[[Test F3F Procedures Block-6B - TILE - BIGMAP]]<<BR>>
16 new landmarks incorporating App, PS, and DS MapCam and PolyCam images.<<BR>>
log-typescript-Block-6B-Tile-Bigmap-F3F1-TILE20

[[Test F3F Procedures Block-5A - ITERATE LANDMARKS]]<<BR>>
69 landmarks to iterate<<BR>>
log-typescript-Block-5A-Iterate-Landmarks-F3F1-Post20cmTiling

# Run residuals<<BR>>
echo 5 .005 .0002 | residuals<<BR>>
# Inspect lmrks<<BR>>
grep ">>" RESIDUALS.TXT<<BR>>
# Save residuals output files<<BR>>
mkdir -p log/log-residuals-post20cmTilingAndIteration<<BR>>
cp RESIDUALS.TXT MAPINFO.TXT PICINFO.TXT RANGES_SOLVED.TXT LMKVECS.TXT log/log-residuals-post20cmTilingAndIteration/<<BR>>

=== 10cm Tiling ===

[[Test F3F Procedures Block-6B - TILE - BIGMAP]]<<BR>>
64 new landmarks incorporating App, PS, and DS MapCam and PolyCam images.<<BR>>
log-typescript-Block-6B-Tile-Bigmap-F3F1-TILE10

[[Test F3F Procedures Block-5A - ITERATE LANDMARKS]]<<BR>>
133 landmarks to iterate<<BR>>
log-typescript-Block-5A-Iterate-Landmarks-F3F1-Post10cmTiling

# Run residuals<<BR>>
echo 5 .005 .0002 | residuals<<BR>>
# Inspect lmrks<<BR>>
grep ">>" RESIDUALS.TXT<<BR>>
# Save residuals output files<<BR>>
mkdir -p log/log-residuals-post10cmTilingAndIteration<<BR>>
cp RESIDUALS.TXT MAPINFO.TXT PICINFO.TXT RANGES_SOLVED.TXT LMKVECS.TXT log/log-residuals-post10cmTilingAndIteration/<<BR>>

[[Test F3F Procedures Block 8A - GEOMETRY/RESIDUALS]]<<BR>>
Run GEOMETRY, option2, to update the position of the spacecraft.<<BR>>
log-typescript-Block-8A-ResidualsGeometry-F3F1-post10cmTile

[[Test F3F Procedures Block-5A - ITERATE LANDMARKS]]<<BR>>
Iterate 133 landmarks contained in a 100m x 100m region centered on TAG Site 1.<<BR>>
log-typescript-Block-5A-Iterate-Landmarks-F3F1-Post10cmTilingAndGeometry

=== 5cm Tiling ===

[[Test F3F Procedures Block-6B - TILE - BIGMAP]]<<BR>>
225 new landmarks incorporating PS, and DS PolyCam images.<<BR>>
log-typescript-Block-6B-Tile-Bigmap-F3F1-TILE05

[[Test F3F Procedures Block-5A - ITERATE LANDMARKS]]<<BR>>
Iterate 358 landmarks contained in a 100m x 100m region centered on TAG Site 1.<<BR>>
log-typescript-Block-5A-Iterate-Landmarks-F3F1-Post5cmTiling

=== Clean ===

[[Block 7B - Clean Bigmap]]<<BR>>
Achieve tiled State.<<BR>>
Achieve correlated state. <<BR>>
Achieve imaged state. <<BR>>
Achieve fitted state. <<BR>>

[[Test F3F Procedures Block 8A - GEOMETRY/RESIDUALS]]<<BR>>
Run GEOMETRY, option2, to update the position of the spacecraft.<<BR>>
log: log-typescript-Block-8A-ResidualsGeometry-F3F1-post05cmTile

[[Test F3F Procedures Block-5A - ITERATE LANDMARKS]]<<BR>>
Iterate 358 landmarks contained in a 100m x 100m region centered on TAG Site 1.<<BR>>
log-typescript-Block-5A-Iterate-Landmarks-F3F1-Post05cmTilingANDgeometry

Achieve geometried state. <<BR>>
Achieve residualed state.<<BR>>
Achieve re-tiled state.<<BR>>
Achieve sigma'ed state.

=== Iterate ===
''Repeat the following for the desired number of iterations.''

[[Test F3F Procedures Block-5A - ITERATE LANDMARKS]]<<BR>>
Iterate 358 landmarks contained in a 100m x 100m region centered on TAG Site 1.<<BR>>
log-typescript-Block-5A-Iterate-Landmarks-F3F1-05cmIt01