<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 26, 2017 at 10:07 AM, Marianne Corvellec <span dir="ltr"><<a href="mailto:marianne.corvellec@gmail.com" target="_blank">marianne.corvellec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear community,<br>
<br>
Back in March, I started a thread with the same subject on the<br>
Discussion list [1].<br>
<br>
As recommended in the guidelines [2], I'm dropping you a line to let<br>
you know that I have started working on a netcdf frontend.<br>
<br>
I'm pushing the work in progress on a feature branch of my fork [3].<br>
<br>
I'm about to load the input file with `netCDF4.Dataset()` in<br>
`data_structures.py` and I'll use the length and time units as parsed<br>
from the metadata.<br>
<br>
There is no mass unit though.  Is there any way to mark it as 'not<br>
applicable'?  Setting the mass unit to `None` currently leads to an<br>
error.<br></blockquote><div><br></div><div>Apologies for not replying, this message ended up in my spam folder for some reason.</div><div><br></div><div>No, we currently require you to supply mass units.</div><div><br></div><div>Are there really no quantities with units of mass or density in your data? If so then just leaving the mass unit as a dummy value should work.</div><div><br></div><div>Can you explain a little bit more why it doesn't make sense to define a mass unit for your data?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I thought that the default `_particle_reader = False` in `io.py` would<br>
let you not consider particles and masses...<br>
<br>
Happy to continue the conversation on Slack!<br>
<br>
Thank you,<br>
Marianne<br>
<br>
[1] <a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2017-March/thread.html" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>pipermail/yt-users-spacepope.<wbr>org/2017-March/thread.html</a><br>
[2] <a href="http://yt-project.org/doc/developing/creating_frontend.html#data-meaning-structures" rel="noreferrer" target="_blank">http://yt-project.org/doc/<wbr>developing/creating_frontend.<wbr>html#data-meaning-structures</a><br>
[3] <a href="https://github.com/mkcor/yt/tree/netcdf-autoloader/yt/frontends/netcdf" rel="noreferrer" target="_blank">https://github.com/mkcor/yt/<wbr>tree/netcdf-autoloader/yt/<wbr>frontends/netcdf</a><br>
______________________________<wbr>_________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-dev-spacepope.<wbr>org</a><br>
</blockquote></div><br></div></div>