How To Make I/F for a Bigmap

To calibrate the images for I/F, use ISIS. Need both the IMG and LBL file from the PDS.

Get calibrated cube.

ciss2isis from=N1569840861_1.LBL to=N1569840861_1.cub
spiceinit from=N1569840861_1.cub WEB=TRUE
cisscal from=N1569840861_1.cub to=N1569840861_1-cal.cub

Turn float values of I/F into something 16-bit signed integer ready by multiplying by 32767 (i.e. 2^16/2 - 1)

algebra from=N1569840861_1-cal.cub to=N1569840861_1-mul.cub OPERATOR=UNARY A=32767

Now make it so SPC reads it like a normal DAT

isis2raw from=N1569840861_1-mul.cub to=N1569840861.DAT BITTYPE=S16BIT STRETCH=NONE ENDIAN=MSB STORAGEORDER=BSQ

Need to update the upper threshold in a bogus SUMFILE (make sure you copy it somewhere else before running the below!). Bob sets it to 4095, and we want it to be 32767. Testing has shown MOSIAC (and therefore rawMOSAIC) don't use the lower threshold. If you find a situation where it is using the lower threshold, you'll have to change that value to 0 (or 1).

sed -i.bak 's/  4095                                       /  32767                                      /' *.SUM

Use 1/32767 for scaling term when using rawMOSIAC

<rand> Tethys$ ../bin/rawMosaic 
 Enter 6 character map name
LEADEQ
 Scaling Factor (multiply)
0.0000305185094759972
 Offset (constant to add, 0 for if other for phase)
0
 # NameLEADEQ
 # Scaling:  New =    3.05185094E-05  * val +    0.00000000    
 # Images actually used:            1
 # I/F scaling, no extra term