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).
- 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.).
- 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.
- 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).
- 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.
- For Calypso: Bob changed the max phase for terminators to 10, then 20, then 30 because he wasn’t liking the results.
- For Calypso: Bob changed the max height wrt shape down to 10, then up to 15
- For Calypso: Bob also changed the scaling factor up to 4, then down to 3.
- 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).
- Populate the text file with the image numbers of the images you want to use to make the limber model.
- 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.
- 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.
- 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)
- Input outfile: SHAPEFILES/SHAPEX.TXT
- Input m: 4
- Trim albedo: y
- Combine the limb vectors and shape vectors into a single file.
- Copy LIMBVECS.TXT to a new file called VECS.txt.
- Delete the first line (e.g., 64, 512, etc.)
- Copy the shape vectors from SHAPEX.TXT into VECS.TXT.
- 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.
- Input vectorfile: VECS.TXT
- q: 16
- Input shapefile: SHAPEFILES/SHAPEX.TXT
- Run SHAPE2MAPS to see what the shape model looks like.
- Input shapefile: SHAPEFILES/SHAPEX.TXT.
- 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.
- Input vector file: VECS.TXT
- Input q, lmax: 512, 13
- q is the resolution of the model
- lmax is the max l for the spherical harmonic fit. Odd ones tend to work better.
- You’ll fiddle with these values a lot as you iterate through limber/register later.
- Input shapefile: SHAPEFILES/SHAPEX.TXT (or whatever the file is you are working with, e.g., SHAPEL.TXT, etc.)
- Use “DUMBER” to dumb down the shape model a bit.
- Input infile: SHAPEFILES/SHAPEX.TXT (or whatever the shape was)
- Input outfile: SHAPEFILES/SHAPEL.TXT
- Input m: 8
- Trim albedo: y
- Run SHAPE2MAPS to see what the shape model looks like.
- Input shapefile: SHAPEFILES/SHAPEL.TXT (or whatever shape you are on)
- 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.
- 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
- Scale: 0/100
- 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.
- 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.
}}}