[yt-users] unitless values in 3.0

Nathan Goldbaum nathan12343 at gmail.com
Tue Jul 29 09:36:16 PDT 2014


See this doc page for more detail about converting to ndarray:
http://yt-project.org/docs/dev-3.0/analyzing/units/data_selection_and_fields.html

On Tuesday, July 29, 2014, Matthew Turk <matthewturk at gmail.com> wrote:

> Yup, .d will get a view on the array without units. Note that
> modifications to the original array will be reflected in this view.
>
> Matt
> On Jul 29, 2014 10:52 AM, "Desika Narayanan" <dnarayan at haverford.edu
> <javascript:_e(%7B%7D,'cvml','dnarayan at haverford.edu');>> wrote:
>
>> Hi All,
>>
>> Is there a way to drop the units for a value in yt 3.0?   For example, in
>> astropy, you can get the raw value of x (without units) by accessing
>> x.value.
>>
>> Thanks,
>> desika
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> <javascript:_e(%7B%7D,'cvml','yt-users at lists.spacepope.org');>
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140729/03ec3740/attachment.html>


More information about the yt-users mailing list