<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Dear Nathan,</div><div class=""><br class=""></div><div class="">No problem and thank you very much for your great help.</div><div class=""><br class=""></div><div class="">Many thanks,</div><div class="">Kuo-Chuan</div><div class=""><br class=""></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 1, 2016, at 4:30 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" class="">nathan12343@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Oh oops, I'm sorry my suggested test script had a typo, try this test script:<div class=""><br class=""></div><div class=""><a href="http://paste.yt-project.org/show/6910/" class="">http://paste.yt-project.org/show/6910/</a><br class=""></div><div class=""><br class=""></div><div class="">I haven't actually tried to create an annotated volume rendering using a field with this kB unit yet, maybe there's a deeper issue.</div><div class=""><br class=""></div><div class="">Unfortunately I need to work on a presentation for a conference right now and don't have time to dive in deeply on this. If you can create a test script that triggers this issue, using a publicly available dataset (e.g. one of the datasets on <a href="http://yt-project.org/data" class="">yt-project.org/data</a>), that would be helpful.</div><div class=""><br class=""></div><div class="">It might also be a lot easier to avoid this workaround and just specify the label by hand. You'll need to build yt from source and then modify the save_annotated function in yt/visualization/volume_rendering/scene.py to optionally accept a label instead of calculating one based on the plotted field.</div><div class=""><br class=""></div><div class="">-Nathan</div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Nov 1, 2016 at 3:25 PM, Kuo-Chuan Pan <span dir="ltr" class=""><<a href="mailto:pankuoch@msu.edu" target="_blank" class="">pankuoch@msu.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Dear Nathan,</div><div class=""><br class=""></div><div class="">It gives a different error message.</div><div class=""><a href="http://paste.yt-project.org/show/6909/" target="_blank" class="">http://paste.yt-project.org/<wbr class="">show/6909/</a></div><div class=""><br class=""></div><div class="">I am using yt 3.3.2 installed from Anaconda on a Mac.</div><div class=""><br class=""></div><div class="">Many thanks,</div><div class="">Kuo-Chuan</div><div class=""><br class=""></div><div class=""><div class="">yt : [INFO     ] 2016-11-01 16:23:01,279 integer runtime parameter checkpointfilenumber overwrites a simulation scalar of the same name</div><div class="">yt : [INFO     ] 2016-11-01 16:23:01,279 integer runtime parameter forcedplotfilenumber overwrites a simulation scalar of the same name</div><div class="">yt : [INFO     ] 2016-11-01 16:23:01,279 integer runtime parameter nbegin overwrites a simulation scalar of the same name</div><div class="">yt : [INFO     ] 2016-11-01 16:23:01,280 integer runtime parameter plotfilenumber overwrites a simulation scalar of the same name</div><div class="">yt : [INFO     ] 2016-11-01 16:23:01,302 Parameters: current_time              = 0.298820349993</div><div class="">yt : [INFO     ] 2016-11-01 16:23:01,302 Parameters: domain_dimensions         = [80 80 80]</div><div class="">yt : [INFO     ] 2016-11-01 16:23:01,303 Parameters: domain_left_edge          = [ -1.00000000e+09  -1.00000000e+09  -1.00000000e+09]</div><div class="">yt : [INFO     ] 2016-11-01 16:23:01,303 Parameters: domain_right_edge         = [  1.00000000e+09   1.00000000e+09   1.00000000e+09]</div><div class="">yt : [INFO     ] 2016-11-01 16:23:01,304 Parameters: cosmological_simulation   = 0.0</div><div class="">Traceback (most recent call last):</div><div class="">  File "test.py", line 15, in <module></div><div class="">    print ad['Entropy']</div><span class=""><div class="">  File "/Users/pan/anaconda2/lib/<wbr class="">python2.7/site-packages/yt/<wbr class="">data_objects/data_containers.<wbr class="">py", line 272, in __getitem__</div><div class="">    self.get_data(f)</div><div class="">  File "/Users/pan/anaconda2/lib/<wbr class="">python2.7/site-packages/yt/<wbr class="">data_objects/data_containers.<wbr class="">py", line 1192, in get_data</div><div class="">    self._generate_fields(fields_<wbr class="">to_generate)</div></span><div class="">  File "/Users/pan/anaconda2/lib/<wbr class="">python2.7/site-packages/yt/<wbr class="">data_objects/data_containers.<wbr class="">py", line 1243, in _generate_fields</div><div class="">    raise YTFieldUnitError(fi, fd.units)</div><div class="">yt.utilities.exceptions.<wbr class="">YTFieldUnitError: The field function associated with the field '('gas', 'Entropy')' returned data with units 'dimensionless' but was defined with units 'kB'.</div></div><div class=""><div class="h5"><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 1, 2016, at 4:16 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank" class="">nathan12343@gmail.com</a>> wrote:</div><br class="m_6274211695923628548Apple-interchange-newline"><div class=""><div dir="ltr" class="">Which yt version is this? Can you reproduce it on yt 3.3.2?<div class=""><br class=""></div><div class="">Does the following simple test script work?</div><div class=""><br class=""></div><div class=""><div style="font-size:12.8px" class="">    from yt.units import kb</div><div style="font-size:12.8px" class="">    from yt.units.dimensions import energy, temperature<br class=""></div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">    # load your dataset</div><div style="font-size:12.8px" class="">    ds = yt.load(...)</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">    ds.unit_registry.add('kB', 1.3806488e-16, dimensions=energy/temperature, tex_repr='k_{B}')</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class=""><div style="font-size:12.8px" class="">    def _entrdens(field,data):</div><span class="m_6274211695923628548gmail-im"><div style="font-size:12.8px" class="">         """</div><div style="font-size:12.8px" class="">         create a new derived field to show both entropy and density</div><div style="font-size:12.8px" class="">         """</div></span><div style="font-size:12.8px" class="">         return data['ones']</div><div style="font-size:12.8px" class="">    ds.add_field("Entropy",functio<wbr class="">n=_entrdens, units="kB", display_name="Entropy per Baryon")</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">    ad = ds.all_data()</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">    print ad['Entropy']</div></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Nov 1, 2016 at 3:13 PM, Kuo-Chuan Pan <span dir="ltr" class=""><<a href="mailto:pankuoch@msu.edu" target="_blank" class="">pankuoch@msu.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><span class=""><div class="">Dear Nathan,</div><div class=""><br class=""></div><div class="">Thanks very much for your help.</div></span><div class="">That was a stupid mistake and the error message is different with the previous one I said. </div><div class="">If I changed to kb, the error message is:</div><div class=""><br class=""></div><div class=""><div class="">P014 yt : [ERROR    ] 2016-11-01 16:11:53,531 YTFieldUnitParseError: The field '('gas', 'Entropy')' has unparseable units 'kB'.</div><div class="">  File "volume_rendering.py", line 164, in <module></div><div class="">    plot_a_vr(fn,cycle,rotate=Fals<wbr class="">e)</div><div class="">  File "volume_rendering.py", line 101, in plot_a_vr</div><div class="">    tfh.set_bounds()</div><div class="">  File "/Users/pan/anaconda2/lib/pyth<wbr class="">on2.7/site-packages/yt/visuali<wbr class="">zation/volume_rendering/<wbr class="">transfer_function_helper.py", line 66, in set_bounds</div><div class="">    bounds = self.ds.h.all_data().quantitie<wbr class="">s['Extrema'](self.field, non_zero=True)</div><div class="">  File "/Users/pan/anaconda2/lib/pyth<wbr class="">on2.7/site-packages/yt/data_<wbr class="">objects/derived_quantities.py"<wbr class="">, line 510, in __call__</div><div class="">    rv = super(Extrema, self).__call__(fields, non_zero)</div><div class="">  File "/Users/pan/anaconda2/lib/pyth<wbr class="">on2.7/site-packages/yt/data_<wbr class="">objects/derived_quantities.py"<wbr class="">, line 67, in __call__</div><div class="">    sto.result = self.process_chunk(ds, *args, **kwargs)</div><div class="">  File "/Users/pan/anaconda2/lib/pyth<wbr class="">on2.7/site-packages/yt/data_<wbr class="">objects/derived_quantities.py"<wbr class="">, line 518, in process_chunk</div><div class="">    fd = data[field]</div><div class="">  File "/Users/pan/anaconda2/lib/pyth<wbr class="">on2.7/site-packages/yt/data_<wbr class="">objects/data_containers.py", line 272, in __getitem__</div><div class="">    self.get_data(f)</div><div class="">  File "/Users/pan/anaconda2/lib/pyth<wbr class="">on2.7/site-packages/yt/data_<wbr class="">objects/data_containers.py", line 1192, in get_data</div><div class="">    self._generate_fields(fields_t<wbr class="">o_generate)</div><div class="">  File "/Users/pan/anaconda2/lib/pyth<wbr class="">on2.7/site-packages/yt/data_<wbr class="">objects/data_containers.py", line 1245, in _generate_fields</div><div class="">    raise YTFieldUnitParseError(fi)</div><div class="">P015 yt : [ERROR    ] 2016-11-01 16:11:53,572 YTFieldUnitParseError: The field '('gas', 'Entropy')' has unparseable units 'kB'.</div><div class="">------------------------------<wbr class="">------------------------------<wbr class="">--------------</div></div><div class=""><br class=""></div><div class="">Many thanks,</div><div class="">Kuo-Chuan</div><div class=""><div class="m_6274211695923628548h5"><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 1, 2016, at 4:03 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank" class="">nathan12343@gmail.com</a>> wrote:</div><br class="m_6274211695923628548m_-7242283318553275953Apple-interchange-newline"><div class=""><div dir="ltr" class="">At the top of your script, you have:<div class=""><br class=""></div><div class="">from yt.units import kb<br class=""></div><div class=""><br class=""></div><div class="">but later you have:</div><div class=""><br class=""></div><div class="">return kB*entrdens<br class=""></div><div class=""><br class=""></div><div class="">It should be:</div><div class=""><br class=""></div><div class="">return kb*entrdens<br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Nov 1, 2016 at 3:00 PM, Kuo-Chuan Pan <span dir="ltr" class=""><<a href="mailto:pankuoch@msu.edu" target="_blank" class="">pankuoch@msu.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Dear Nathan,</div><div class=""><br class=""></div><div class="">Thank you very much for your help.</div><div class="">I was using ds.add_field()</div><div class=""><br class=""></div><div class="">I have pasted my script and error message here:</div><div class=""><a href="http://paste.yt-project.org/show/wToLggLnTYVpMxeqJtln/" target="_blank" class="">http://paste.yt-project.org/sh<wbr class="">ow/wToLggLnTYVpMxeqJtln/</a></div><div class=""><br class=""></div><div class="">Many thanks,</div><div class="">Kuo-Chuan</div><div class=""><div class="m_6274211695923628548m_-7242283318553275953h5"><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 1, 2016, at 3:50 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank" class="">nathan12343@gmail.com</a>> wrote:</div><br class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><div class="gmail_extra"><br class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-interchange-newline"><br class=""><div class="gmail_quote">On Tue, Nov 1, 2016 at 2:40 PM, Kuo-Chuan Pan<span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:pankuoch@msu.edu" target="_blank" class="">pankuoch@msu.edu</a>></span><span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Dear Nathan,<div class=""><br class=""></div><div class="">Thanks very much for your email and suggestions.</div><div class="">I followed your suggested code but it is not working.</div><div class="">yt gives an error message:</div><div class=""><span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467m_-6801954723337001028Apple-tab-span" style="white-space:pre-wrap">       </span>yt : [ERROR ] 2016-11-01 15:25:27,650 YTFieldUnitParseError: The field '('gas', 'Entropy')' has unparseable units 'kB’. </div></div></blockquote><div class=""><br class=""></div><div class="">Did you use ds.add_field as I showed in my previous e-mail or yt.add_field as you originally had in your last e-mail? You need to use ds.add_field as I showed in my code snippet for my workaround to work properly.</div><div class=""><br class=""></div><div class="">If you *did* use ds.add_field, can you pastebin the full script, along with any error messages and tracebacks you received upon running the script?</div><div class=""><br class=""></div><div class="">We have<span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span><a href="http://paste.yt-project.org/" target="_blank" class="">paste.yt-project.org</a><span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>set up for this purpose.</div><div class=""><br class=""></div><div class="">-Nathan</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class=""><br class=""></div><div class="">The vales of my “entr” field is already in “kB/baryon” (specific entropy) but the unit is incorrect.</div><div class="">Following your suggestions, I want to create two new units called “kB” and “baryon” (1.674e-24 g) </div><div class="">and override the “entr” and “Entropy” units to “kB/baryon” (from dimensionless). </div><div class="">Is it possible to do that?</div><div class=""><br class=""></div><div class="">Many thanks,</div><div class="">Kuo-Chuan</div><div class=""><div class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467h5"><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 1, 2016, at 2:52 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank" class="">nathan12343@gmail.com</a>> wrote:</div><br class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467m_-6801954723337001028Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><span style="font-size:12.8px" class="">One could argue that it would be useful for save_annotated to optionally take a fully user-specified colorbar label. That's not the case now but it would be a relatively easy modification.</span><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">Your 'entr' field isn't being recognized by yt with units because it's not a field that is "known" by yt in the FLASH frontend:</span></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class=""><a href="https://bitbucket.org/yt_analysis/yt/src/334cceb2c6e197acf1a8c7f273ee9dd0bd592f58/yt/frontends/flash/fields.py?at=yt&fileviewer=file-view-default#fields.py-43" target="_blank" class="">https://bitbucket.org/yt_analy<wbr class="">sis/yt/src/334cceb2c6e197acf1a<wbr class="">8c7f273ee9dd0bd592f58/yt/front<wbr class="">ends/flash/fields.py?at=yt&fil<wbr class="">eviewer=file-view-default#fiel<wbr class="">ds.py-43</a></span><br class=""></div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">Specifically, it does not appear in the known_other_fields tuple in the flash fields.py file. If entr is not specific to your version of FLASH it may be worthwhile to add an entry there so that the entr field is read in with the correct units.</span></div><div class=""><br class=""></div>Similarly, kB isn't a unit that the yt unit system understands out of the box (although I think one could make a case that it's worth including). There is a way to add new units to the unit system though:<div class=""><br class=""></div><div class=""><div class="">   <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>from yt.units import kb</div><div class="">   <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>from yt.units.dimensions import energy, temperature<br class=""></div><div class=""><br class=""></div><div class="">   <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span># load your dataset</div><div class="">   <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>ds = yt.load(...)</div><div class=""><br class=""></div><div class="">   <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>ds.unit_registry.add('kB', 1.3806488e-16, dimensions=energy/temperature, tex_repr='k_{B}')</div><div class=""><br class=""></div><div class=""><div style="font-size:12.8px" class="">   <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>def _entrdens(field,data):</div><div style="font-size:12.8px" class="">         """</div><div style="font-size:12.8px" class="">         create a new derived field to show both entropy and density</div><div style="font-size:12.8px" class="">         """</div><div style="font-size:12.8px" class="">         dens = data["dens"]</div><div style="font-size:12.8px" class="">         entr = data["entr"]</div><div style="font-size:12.8px" class="">         entrdens = entr*(np.exp(-(dens.in_cgs()/P<wbr class="">NS_DENSITY)**5))+PNS_ENTR</div><div style="font-size:12.8px" class="">         return kb*entrdens</div><div style="font-size:12.8px" class="">   <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>ds.add_field("Entropy",funct<wbr class="">ion=_entrdens, units="kB", display_name="Entropy per Baryon") </div></div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">And then make your volume rendering as you were doing before. It should show up in the label as "Entropy per baryon" and with units of "kB".</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">Please feel free to open issues or pull requests about any of the things I raised above.</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">-Nathan</div><div style="font-size:12.8px" class=""><br class=""></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Nov 1, 2016 at 1:25 PM, Kuo-Chuan Pan<span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:pankuoch@msu.edu" target="_blank" class="">pankuoch@msu.edu</a>></span><span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">Dear Nathan,</div><div class=""><br class=""></div><div class="">Thanks very much for your help.</div><div class="">entropy is a filed in my FLASH dataset. The unit of entropy is kB/baryon in the code but it is recognised as dimensionless in yt.</div><div class=""><br class=""></div><div class="">The field “entr" is the entropy in my dataset. The derived field “Entropy” is the one I want to visualise. </div><div class="">PNS_DENSITY and PNS_ENTR are just constants. </div><div class=""><br class=""></div><div class="">Many thanks,</div><div class="">Kuo-Chuan</div><div class=""><br class=""></div><div class=""> <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>11 def _entrdens(field,data):</div><div class=""> <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>12     """</div><div class=""> <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>13     create a new derived field to show both entropy and density</div><div class=""> <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>14     """</div><div class=""> <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>15     dens = data["dens"]</div><div class=""> <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>16     entr = data["entr"]</div><div class=""> <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>17     entrdens = entr*(np.exp(-(dens.in_cgs()/P<wbr class="">NS_DENSITY)**5))+PNS_ENTR</div><div class=""> <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>18     return entrdens</div><div class=""> <span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>19 yt.add_field("Entropy",functio<wbr class="">n=_entrdens,units="dimensionle<wbr class="">ss") </div><div class=""><div class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467m_-6801954723337001028h5"><div class=""><br class=""></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 1, 2016, at 2:20 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" target="_blank" class="">nathan12343@gmail.com</a>> wrote:</div><br class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467m_-6801954723337001028m_-3922443210749000739Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Kuo-Chuan,<div class=""><br class=""></div><div class="">Can you show us how you've defined your derived field?</div><div class=""><br class=""></div><div class="">Is entropy a derived field as well or is it a field that's included in your dataset? This is the entropy per baryon, right?</div><div class=""><br class=""></div><div class="">-Nathan</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Nov 1, 2016 at 1:09 PM, Kuo-Chuan Pan<span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:pankuoch@msu.edu" target="_blank" class="">pankuoch@msu.edu</a>></span><span class="m_6274211695923628548m_-7242283318553275953m_-5907052106927155467Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Dear all,<br class=""><br class="">I have a custom new derived field based on density (g/cm^3) and entropy (kB/baryon but it is recognised as dimensionless).<br class="">Currently, this new derived field is set to dimensionless (it should be kB/baryon).<br class=""><br class="">Could anyone teach me how to set this new derived filed to its correct unit (which should be kB/baryon)?<br class="">Or is it possible to simply override the field label in my volume rendering plot before using save_annotated()?<br class=""><br class="">Many thanks,<br class="">Kuo-Chuan<br class="">______________________________<wbr class="">_________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/lis<wbr class="">tinfo.cgi/yt-users-spacepope.o<wbr class="">rg</a><br class=""></blockquote></div><br class=""></div>______________________________<wbr class="">_________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/lis<wbr class="">tinfo.cgi/yt-users-spacepope.o<wbr class="">rg</a><br class=""></div></blockquote></div><br class=""></div></div></div><br class="">______________________________<wbr class="">_________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/lis<wbr class="">tinfo.cgi/yt-users-spacepope.o<wbr class="">rg</a><br class=""><br class=""></blockquote></div><br class=""></div>______________________________<wbr class="">_________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/lis<wbr class="">tinfo.cgi/yt-users-spacepope.o<wbr class="">rg</a><br class=""></div></blockquote></div><br class=""></div></div></div></div><br class="">______________________________<wbr class="">_________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/lis<wbr class="">tinfo.cgi/yt-users-spacepope.o<wbr class="">rg</a><br class=""><br class=""></blockquote></div><br class=""></div></div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="">______________________________<wbr class="">_________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important" class="">yt-users mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><a href="mailto:yt-users@lists.spacepope.org" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" class="">yt-users@lists.spacepope.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" class="">http://lists.spacepope.org/lis<wbr class="">tinfo.cgi/yt-users-spacepope.o<wbr class="">rg</a></div></blockquote></div><br class=""></div></div></div><br class="">______________________________<wbr class="">_________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/lis<wbr class="">tinfo.cgi/yt-users-spacepope.o<wbr class="">rg</a><br class="">
<br class=""></blockquote></div><br class=""></div>
______________________________<wbr class="">_________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/lis<wbr class="">tinfo.cgi/yt-users-spacepope.<wbr class="">org</a><br class=""></div></blockquote></div><br class=""></div></div></div><br class="">______________________________<wbr class="">_________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/lis<wbr class="">tinfo.cgi/yt-users-spacepope.<wbr class="">org</a><br class="">
<br class=""></blockquote></div><br class=""></div>
______________________________<wbr class="">_________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/<wbr class="">listinfo.cgi/yt-users-<wbr class="">spacepope.org</a><br class=""></div></blockquote></div><br class=""></div></div></div><br class="">______________________________<wbr class="">_________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/<wbr class="">listinfo.cgi/yt-users-<wbr class="">spacepope.org</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br class=""></div></blockquote></div><br class=""></body></html>