logo

img

Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Browse by Category
When I attach a HeightField to a DEM or GRD file, how do I set the Scale so that the HeightField matches the Z axis?
User Opinions
75% thumbs up 25% thumbs down

How would you rate this answer?
Helpful
Not helpful

When a user imports a DEM or GRD file as a Curvilinear lattice and attaches a HeightField, the HeightField is in the correct location.  If the DEM or GRD is imported as a uniform lattice, the Z axis is imported at Z = 0. 

 

In Voxler 1 and 2, use the following equation to calculate the HeightField Scale:

 

   Scale = (DataMax - DataMin) / (0.5 * sqrt((xMax-xMin)^2 + (yMax-yMin)^2))

 

To adjust for the offset of the DataMin value, insert a Transform module between the Gridder output and the HeightField input and offset the Z axis by the DataMin value.

 

Terminology note: DataMax and DataMin are referring to Zmax and Zmin

See attached Excel file for an example of the equation.

Visitor Comments
No visitor comments posted. Post a comment
Related Questions
Attachments
Products