<html><head><base href="x-msg://24/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Max,<div><br></div><div>'factor' is the number of the data points skipped while 'scale' is the data units per 'scale_units'. Try the following:</div><div><br></div><div><i>p.modify["velocity"](factor=13, scale=1e8, scale_units='inches').</i></div><div><br></div><div>If you have a velocity of 1000 km/s, it should then produce an arrow 1 inch long.</div><div>Let me know if it works.</div><div><br></div><div>Cheers,</div><div><br></div><div>JC</div><div><br></div><div><br><div><div>On Aug 1, 2012, at 8:04 AM, Massimo Gaspari wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; "><div dir="ltr">Hi guys,<div><br></div><div><br></div><div>how can I set a given normalization for the velocity field superposed to a slice?</div><div><br></div><div><br></div><div>p.modify["velocity"](factor=13)</div><div><br></div><div><br></div><div>I am a bit puzzled by the "scale" keyword. </div><div>E.g., I want to set 1000 km/s as the normalization for all the slices of a simulation.</div><div><br></div><div><br></div><div><br></div><div>Thanks,</div><div><br></div><div><br></div><div><br></div><div>   Max</div></div>_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br></div></span></blockquote></div><br></div></body></html>