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 the temporary file 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

(EEP - Run view_shape to get an image)

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.

(EEP rocker is an old program that is being used to show the origin and provide a general-health-of-the-model evaluation)

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.

}}}