From Terik Daly on 29 Nov 2017.
How to run LIMBER to create a starting shape model
- Make a “LIMBFILES” directory if one doesn’t already exist in the moon’s directory (e.g., HELENE).
- Make a list of images to tuck, called “TUCKER.TXT”.
- Make a text file called “TUCKER.TXT” in the moon’s directory (e.g., HELENE). b. Take a look at the images on the Planetary Atlas or using ISIS and populate this text file with a list of unhelpful images that you want tucked away so that they are not included in the model (e.g., overlapping limbs with other moons, etc.). c. The last line of the file must be END.
- Run “TUCKER”. This creates a lithos script. Copy and paste the script (two lines) into the command line. Doing so updates PICTLIST.txt and puts a ! in front the tucked images.
- Erase contents of TUCKER.TXT (leave "END"). Otherwise if you run TUCKER again, it will untuck the images in the list.
- Create “LIMBER.IN” in the moon’s directory. Copy this over from another body (e.g., Helene) on which limber has already been run.
- You may need to update the shape to SHAPE.TXT in the first line. b. This will need to be updated each time you run limber so that you don’t overwrite the previous shapes (e.g., SHAPEL.TXT for the first limber shape). c. Some rows in LIMBER.IN may need adjusted for different objects, and these will change as you iterate through LIMBER and REGISTER.
- For Calypso: Bob changed max search range in pixels down to 10 (from 100) because Calypso is so tiny. ii. For Calypso: Bob changed the max phase for terminators to 10, then 20, then 30 because he wasn’t liking the results. iii. For Calypso: Bob changed the max height wrt shape down to 10, then up to 15 iv. For Calypso: Bob also changed the scaling factor up to 4, then down to 3.
- You may need to update the shape to SHAPE.TXT in the first line. b. This will need to be updated each time you run limber so that you don’t overwrite the previous shapes (e.g., SHAPEL.TXT for the first limber shape). c. Some rows in LIMBER.IN may need adjusted for different objects, and these will change as you iterate through LIMBER and REGISTER.
- Make a list of images to use in limber, called “LIMBER.TXT”
- Make a text file called “LIMBER.TXT” in the moon’s directory (e.g., HELENE). b. Populate the text file with the image numbers of the images you want to use to make the limber model. c. The format of this list is the same as PICTLIST.TXT—a space before the image name, and END as the last line. END does not have a preceding space. d. Make sure these images have been registered as best they can to a triax, Stooke, or Thomas shape before running limber.
- Run LIMBER.
- Limber will extend vectors from the shape until it hits a limb in the image. b. Running LIMBER populates LIMBVECS.TXT and the LIMBFILES directory.
- Use “DUMBER” to dumb down the shape model a bit.
- Input infile: SHAPEFILES/SHAPEL.TXT (or whatever the shape was) b. Input outfile: SHAPEFILES/SHAPEX.TXT c. Input m: 4 d. Trim albedo: y
- Combine the limb vectors and shape vectors into a single file.
- Copy LIMBVECS.TXT to a new file called VECS.txt. b. Delete the first line (e.g., 64, 512, etc.) c. Copy the shape vectors from SHAPEX.TXT into VECS.TXT. d. Once again, delete the first line (e.g., 64, 512, etc.)
- Run VECS2CUBE. This will change SHAPEX.
- This doesn’t use any spherical harmonics, just the vectors, to make a crude shape model. b. Input vectorfile: VECS.TXT c. q: 16 d. Input shapefile: SHAPEFILES/SHAPEX.TXT
- Run SHAPE2MAPS to see what the shape model looks like.
- Input shapefile: SHAPEFILES/SHAPEX.TXT. b. To actually visualize the shape, ./view_shape.txt
- Save new shape as VECS.TXT, removing the first line.
- Copy SHAPEFILES/SHAPEX.TXT to VECS.TXT, then remove the first line.
- Run VECS2SHAPE to smooth model. This will update SHAPEX.
- This translates VECS.TXT into a format that SPC can read/visualize. b. Input vector file: VECS.TXT c. Input q, lmax: 512, 13
- q is the resolution of the model ii. lmax is the max l for the spherical harmonic fit. Odd ones tend to work better. iii. You’ll fiddle with these values a lot as you iterate through limber/register later.
- This translates VECS.TXT into a format that SPC can read/visualize. b. Input vector file: VECS.TXT c. Input q, lmax: 512, 13
- Use “DUMBER” to dumb down the shape model a bit.
- Input infile: SHAPEFILES/SHAPEX.TXT (or whatever the shape was) b. Input outfile: SHAPEFILES/SHAPEL.TXT c. Input m: 8 d. Trim albedo: y
- Run SHAPE2MAPS to see what the shape model looks like.
- Input shapefile: SHAPEFILES/SHAPEL.TXT (or whatever shape you are on) b. To actually visualize the shape, ./view_shape.txt
- Run “REGISTER” and spot check how images compare to the shape.
- Use “DISPLAY” to spot check how well limber identified the limbs on those same images.
- If the limbs weren’t identified correctly, then adjust parameters in LIMBER.IN until the images’ limbs are ID’ed correctly. b. Using the ORIGIN landmark in ROCKER provides a really easy way to view how well the shape aligns with the images at a glance.
- You can also use “COVERAGE” to see how good the limb coverage is.
- All maps b. Scale: 0/100 c. Add limb vectors? y
- Iterate through the process until you are happy with the shape. You’ll end up re-running LIMBER, DUMBER, VECS2CUBE, VECS2SHAPE, and REGISTER a lot, probably making some tweaks to LIMBER.IN along the way. Bob cycled through this at least 5 times for Calypso.
- Before re-running LIMBER, make a copy of SHAPE.TXT (e.g., SHAPEL.TXT) so that you don’t lose the intermediate shape when you re-run LIMBER. b. In LIMBER.IN, you need to update the shape in the first line to whatever shape you’ve been working on (e.g., SHAPEL.TXT) if you want to re-run/iterate.
}}}