<h2>org.autoplot.pngwalk.RichPngUtil</h2><p>At the 2012 MMS meeting at UNH, a group of us proposed that we embed a little metadata within PNG images which provides lookup information in JSON format. Here is an example: <blockquote><pre> { "size":[722,639], "numberOfPlots":1, "plots": [ { "title":"AC/MFI [PRELIMINARY VALUES - BROWSE USE ONLY] B-field magnitude", "xaxis": { "label":"", "min":"2014-01-02T00:00:00.000Z", "max":"2014-01-03T00:00:00.000Z", "left":78, "right":644, "type":"lin", "units":"UTC" }, "yaxis": { "label":"[PRELIM] <|B|> (nT)", "min":4.440892098500626E-16, "max":8.9, "top":52, "bottom":587, "type":"lin", "units":"nT" } } ] } </pre></blockquote> See http://autoplot.org/richPng</p> <h2>RichPngUtil( )</h2> <p></p> <hr> <a name="getRange"></a> <h2>getRange</h2> getRange( JSONObject axis ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/DatumRange.html'>DatumRange</a> <p>return the range setting of the axis. This looks at the "min" and "max" keys of the axis node.</p> <h3>Parameters</h3> axis - a JSONObject <h3>Returns:</h3> the axis range <br><br> <a href="https://github.com/autoplot/dev/search?q=getRange&unscoped_q=getRange">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/pngwalk/RichPngUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/pngwalk/RichPngUtil.html#getRange">[view on old javadoc]</a> <br> <br> <hr> <a name="getXRange"></a> <h2>getXRange</h2> getXRange( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> json ) → <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/datum/DatumRange.html'>DatumRange</a> <p>attempt to get the time range of the plots, looking at each x axis for a timerange.</p> <h3>Parameters</h3> json - rich png ascii string <h3>Returns:</h3> null or the range found. <br><br> <a href="https://github.com/autoplot/dev/search?q=getXRange&unscoped_q=getXRange">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/pngwalk/RichPngUtil.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/pngwalk/RichPngUtil.html#getXRange">[view on old javadoc]</a> <br> <br>