| Size: 1892 Comment:  | Size: 6197 Comment:  | 
| Deletions are marked like this. | Additions are marked like this. | 
| Line 35: | Line 35: | 
| The following regions have been identified for evaluation: ||Region ID||Region Name||Latitude (deg)||West Longitude (deg)||Description|| ||TG||TAG Site 1||-10||350||Shape 4 TAG site 1|| ||R1||Region 1||45||300||Region of roughness, identified from a visual inspection using Small Body Mapping Tool|| | |
| Line 44: | Line 49: | 
| bigmap .in files: /opt/local/spc/shape4/support4 | Obtain the required bigmap/s from the model working directory (or back-up). A full set of bigmap .in files is stored here: {{{ /opt/local/spc/shape4/support4/ | 
| Line 47: | Line 53: | 
| /Volumes/Data1/spc-test/ | MR1051_model_REG1_GSD5cm_width100m.in MR1052_model_REG1_GSD5cm_width20m.in MR1055_model_REG1_GSD5cm_width50m.in MR1101_model_REG1_GSD10cm_width100m.in MR1102_model_REG1_GSD10cm_width20m.in MR1105_model_REG1_GSD10cm_width50m.in MR1351_model_REG1_GSD35cm_width100m.in MR1352_model_REG1_GSD35cm_width20m.in MR1355_model_REG1_GSD35cm_width50m.in MTG051_model_TAG1_GSD5cm_width100m.in MTG052_model_TAG1_GSD5cm_width20m.in MTG055_model_TAG1_GSD5cm_width50m.in MTG101_model_TAG1_GSD10cm_width100m.in MTG102_model_TAG1_GSD10cm_width20m.in MTG105_model_TAG1_GSD10cm_width50m.in MTG351_model_TAG1_GSD35cm_width100m.in MTG352_model_TAG1_GSD35cm_width20m.in MTG355_model_TAG1_GSD35cm_width50m.in | 
| Line 49: | Line 72: | 
| /Volumes/Data1/spc-test/F6-evaluation | }}} | 
| Line 53: | Line 76: | 
| The F6 evaluation directory is here: {{{ cd /Volumes/Data1/spc-test/F6-evaluation/ | |
| Line 54: | Line 80: | 
| drwxrwxr-x  173 dlambert  OREX\spc  5882 Jul 20 16:06 DIRTYNOMINALS drwxrwxr-x 173 dlambert OREX\spc 5882 Jul 20 16:05 DIRTYSUMFILES drwxrwxr-x 172 dlambert OREX\spc 5848 Jul 20 16:17 SUMFILES drwxr-xr-x 14 jweirich OREX\spc 476 Jul 21 09:29 eval_F6_BBD1_TG drwxrwxr-x 14 dlambert OREX\spc 476 Jul 20 16:36 eval_F6_start -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:21 listSUM_120cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:22 listSUM_18cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:21 listSUM_35cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:22 listSUM_5cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:21 listSUM_75cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:22 listSUM_9cm drwxrwxr-x 4 dlambert OREX\spc 136 Jun 24 16:16 lsupport -rw-rw-r-- 1 dlambert OREX\spc 1927 Jun 23 15:12 processing.log lrwxr-xr-x 1 dlambert OREX\spc 30 Jun 24 12:27 support -> /opt/local/spc/shape4/support4 lrwxr-xr-x 1 dlambert OREX\spc 39 Jun 24 16:54 truth_PGMFILES -> /opt/local/spc/shape4/imageGen/PGMFILES }}} Make a subdirectory, e.g. {{{ mkdir eval_F6_start }}} Populate the directory as follows: * {{{listSUM -> ../listSUM_35cm}}} - symbolic link to list of dirty sumfiles; * {{{lsupport -> ../lsupport/}}} - symbolic link to main directory local support directory; * {{{MAPFILES/}}} - directory containing model bigmap/s; * {{{MAPLIST.TXT}}} - file listing the bigmap to image, appended with 'END'; * {{{PGMFILES/}}} - directory for storage of generated .pgm files; * {{{SUMFILES -> ../SUMFILES}}} - symbolic link to main directory dirty sumfiles; * {{{THUMBNAILS/}}} - directory for storage of generated .jpg files; * {{{imageXcorr_results/}}} - directory for storage of imXcor.py output files; * {{{truth_PGMFILES -> /opt/local/spc/shape4/imageGen/PGMFILES/}}} - symbolic link to truth images. {{{ mkdir MAPFILES PGMFILES THUMBNAILS imageXcorr_results ln -s ../lsupport . ln -s ../SUMFILES . ln -s /opt/local/spc/shape4/imageGen/PGMFILES truth_PGMFILES ln -s ../listSUM_35cm listSUM printf "%s\n%s\n" "MTG105" "END" > MAPLIST.TXT }}} | |
| Line 57: | Line 125: | 
| The following script has been written to automate the generation of images of a bigmap using imager_MG. It expects the user to identify an existing list of dirty sumfiles as a common line item, e.g.: | |
| Line 58: | Line 127: | 
| {{{ sh lsupport/makeImages_imagerMG.sh listSUM }}} where {{{ cat listSUM PBF6TG3E0001 PBF6TG3E0002 PBF6TG3E0003 PBF6TG3E0004 PBF6TG3E0005 PBF6TG3E0006 PBF6TG3E0007 PBF6TG3E0008 PBF6TG3E0009 }}} Generate thumbnails for visual inspection of the bigmap images: {{{ while read name; do echo $name /opt/local/bin/convert PGMFILES/${name}_MTG105.pgm THUMBNAILS/${name}_MTG105.jpg done < listSUM }}} | |
| Line 60: | Line 156: | 
| Conduct cross-correlation using Tanner's script, storing the output in the imageXcorr_results directory: {{{ while read name; do echo $name truthNM=`echo $name | sed 's/PB/P2/g'` python /opt/local/spc/bin/imXcorr.py PGMFILES/${name}_MTG105.pgm truth_PGMFILES/{truthNM}.pgm | tee imageXcorr_results/imXcor_${name}_MTG105.out done < listSUM }}} | 
Normalized Cross-Correlation Evaluation
This page describes the methodology for using normalized cross-correlation to evaluate a region of the model.
Cross-correlation is performed on the following images:
- Model: Image of bigmap
- Truth: Image of Zmaps
Model (left), Truth (right), S/C Azimuth 0, Zenith 30deg, Sun Azimuth 90deg, Zenith 45deg:
  
  
 
Images are generated using the following set of dirty sumfiles at the required resolution to include:
- low and high phase
- low and moderate incidence
- full set of s/c azimuth angles (observe region from all directions).
| Spacecraft | Sun | ||
| Azimuth (deg) | Zenith (deg) | Azimuth (deg) | Zenith (deg) | 
| 0 | 30 | 90 | 45 | 
| 90 | 30 | 90 | 45 | 
| 180 | 30 | 90 | 45 | 
| 270 | 30 | 90 | 45 | 
| 0 | 30 | 270 | 45 | 
| 90 | 30 | 270 | 45 | 
| 180 | 30 | 270 | 45 | 
| 270 | 30 | 270 | 45 | 
| 45 | 10 | 270 | 10 | 
 
  
 
Images resolution is chosen from the following based on the state of the model:
- Resolution: 120cm, 75cm, 35cm, 18cm, 9cm, 5cm.
The following regions have been identified for evaluation:
| Region ID | Region Name | Latitude (deg) | West Longitude (deg) | Description | 
| TG | TAG Site 1 | -10 | 350 | Shape 4 TAG site 1 | 
| R1 | Region 1 | 45 | 300 | Region of roughness, identified from a visual inspection using Small Body Mapping Tool | 
Where are the Dirty Sumfiles and Truth Images?
SUMFILES: ormacsrv1:/opt/local/spc/shape4/imageGen/DIRTYSUMFILES/
 Truth .pgm files: ormacsrv1:/opt/local/spc/shape4/imageGen/PGMFILES/ 
Follow this link for details of the image file and bigmap naming conventions: Normalized Cross-Correlation Evaluation - Naming Conventions
Obtain Model Bigmap
Obtain the required bigmap/s from the model working directory (or back-up). A full set of bigmap .in files is stored here:
/opt/local/spc/shape4/support4/ MR1051_model_REG1_GSD5cm_width100m.in MR1052_model_REG1_GSD5cm_width20m.in MR1055_model_REG1_GSD5cm_width50m.in MR1101_model_REG1_GSD10cm_width100m.in MR1102_model_REG1_GSD10cm_width20m.in MR1105_model_REG1_GSD10cm_width50m.in MR1351_model_REG1_GSD35cm_width100m.in MR1352_model_REG1_GSD35cm_width20m.in MR1355_model_REG1_GSD35cm_width50m.in MTG051_model_TAG1_GSD5cm_width100m.in MTG052_model_TAG1_GSD5cm_width20m.in MTG055_model_TAG1_GSD5cm_width50m.in MTG101_model_TAG1_GSD10cm_width100m.in MTG102_model_TAG1_GSD10cm_width20m.in MTG105_model_TAG1_GSD10cm_width50m.in MTG351_model_TAG1_GSD35cm_width100m.in MTG352_model_TAG1_GSD35cm_width20m.in MTG355_model_TAG1_GSD35cm_width50m.in
Populate Evaluation Directory
The F6 evaluation directory is here:
cd /Volumes/Data1/spc-test/F6-evaluation/ drwxrwxr-x 173 dlambert OREX\spc 5882 Jul 20 16:06 DIRTYNOMINALS drwxrwxr-x 173 dlambert OREX\spc 5882 Jul 20 16:05 DIRTYSUMFILES drwxrwxr-x 172 dlambert OREX\spc 5848 Jul 20 16:17 SUMFILES drwxr-xr-x 14 jweirich OREX\spc 476 Jul 21 09:29 eval_F6_BBD1_TG drwxrwxr-x 14 dlambert OREX\spc 476 Jul 20 16:36 eval_F6_start -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:21 listSUM_120cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:22 listSUM_18cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:21 listSUM_35cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:22 listSUM_5cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:21 listSUM_75cm -rw-r--r-- 1 dlambert OREX\spc 117 Jul 20 16:22 listSUM_9cm drwxrwxr-x 4 dlambert OREX\spc 136 Jun 24 16:16 lsupport -rw-rw-r-- 1 dlambert OREX\spc 1927 Jun 23 15:12 processing.log lrwxr-xr-x 1 dlambert OREX\spc 30 Jun 24 12:27 support -> /opt/local/spc/shape4/support4 lrwxr-xr-x 1 dlambert OREX\spc 39 Jun 24 16:54 truth_PGMFILES -> /opt/local/spc/shape4/imageGen/PGMFILES
Make a subdirectory, e.g.
mkdir eval_F6_start
Populate the directory as follows:
- listSUM -> ../listSUM_35cm - symbolic link to list of dirty sumfiles; 
- lsupport -> ../lsupport/ - symbolic link to main directory local support directory; 
- MAPFILES/ - directory containing model bigmap/s; 
- MAPLIST.TXT - file listing the bigmap to image, appended with 'END'; 
- PGMFILES/ - directory for storage of generated .pgm files; 
- SUMFILES -> ../SUMFILES - symbolic link to main directory dirty sumfiles; 
- THUMBNAILS/ - directory for storage of generated .jpg files; 
- imageXcorr_results/ - directory for storage of imXcor.py output files; 
- truth_PGMFILES -> /opt/local/spc/shape4/imageGen/PGMFILES/ - symbolic link to truth images. 
mkdir MAPFILES PGMFILES THUMBNAILS imageXcorr_results ln -s ../lsupport . ln -s ../SUMFILES . ln -s /opt/local/spc/shape4/imageGen/PGMFILES truth_PGMFILES ln -s ../listSUM_35cm listSUM printf "%s\n%s\n" "MTG105" "END" > MAPLIST.TXT
Generate Model Images
The following script has been written to automate the generation of images of a bigmap using imager_MG. It expects the user to identify an existing list of dirty sumfiles as a common line item, e.g.:
sh lsupport/makeImages_imagerMG.sh listSUM
where
cat listSUM PBF6TG3E0001 PBF6TG3E0002 PBF6TG3E0003 PBF6TG3E0004 PBF6TG3E0005 PBF6TG3E0006 PBF6TG3E0007 PBF6TG3E0008 PBF6TG3E0009
Generate thumbnails for visual inspection of the bigmap images:
while read name; do
  echo $name
  /opt/local/bin/convert PGMFILES/${name}_MTG105.pgm THUMBNAILS/${name}_MTG105.jpg
done < listSUM 
Conduct Normalized Cross-Correlation
Conduct cross-correlation using Tanner's script, storing the output in the imageXcorr_results directory:
while read name; do
  echo $name
  truthNM=`echo $name | sed 's/PB/P2/g'`
  python /opt/local/spc/bin/imXcorr.py PGMFILES/${name}_MTG105.pgm truth_PGMFILES/{truthNM}.pgm | tee imageXcorr_results/imXcor_${name}_MTG105.out
done < listSUM






