Hi John,<br><br>The easiest thing to do is to probably set the field parameters on a data container, and the supply that as a data_source to the projection.<br><br>-Matt<br><br><div class="gmail_quote">On Tue, Nov 25, 2014, 3:27 AM John Regan <<a href="mailto:johnanthonyregan@gmail.com">johnanthonyregan@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>Hi All, <br><br></div>I need to set the "center" field parameter for making a projection of the "radial_velocity". <br></div>I see from the docs how to do that for a data container but its not clear what to do for a <br></div>projection.<br><br></div>The error I am getting at the moment when the "center" is not set is:<br><br>File "/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/data_objects/data_containers.py", line 249, in __getitem__<br>    self.get_data(f)<br>  File "/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/data_objects/data_containers.py", line 656, in get_data<br>    finfo.check_available(self)<br>  File "/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/fields/derived_field.py", line 146, in check_available<br>    validator(data)<br>  File "/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/fields/derived_field.py", line 235, in __call__<br>    raise NeedsParameter(doesnt_have)<br>yt.fields.field_exceptions.NeedsParameter: (['center'])<br><br></div><div>Any tips much appreciated!<br><br><br></div>Cheers,<br></div>John<br></div>
______________________________<u></u>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</blockquote></div>