NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
<html><div style='background-color:'><DIV></DIV> <DIV></DIV> <P>Hello,</P> <P>Examples (P4_01)</P> <P> latitude = new RealType("latitude",SI.meter,null);<BR> longitude = new RealType("longitude",SI.meter,null);</P> <P> domain_tuple = new RealTupleType(latitude, longitude);</P> <P> temperature = new RealType("temperature",SI.kelvin,null);<BR> altitude = new RealType("altitude",SI.meter,null);</P> <P> // Create the range tuple ( altitude, temperature )<BR> // Use RealTupleType( RealType[] )</P> <P> range_tuple = new RealTupleType( altitude, temperature );</P> <P> // Create a FunctionType (domain_tuple -> range_tuple )<BR> // Use FunctionType(MathType domain, MathType range)</P> <P> func_domain_range = new FunctionType( domain_tuple, range_tuple);</P> <P> // Create the domain Set<BR> // Use LinearDSet(MathType type, double first1, double last1, int lengthX,<BR> // double first2, double last2, int lengthY)</P> <P> int NCOLS = 50;<BR> int NROWS = NCOLS;</P> <P> domain_set = new Linear2DSet(domain_tuple, -Math.PI, Math.PI, NROWS,<BR> -Math.PI, Math.PI, NCOLS);<BR> // Get the Set samples to facilitate the calculations</P> <P> float[][] set_samples = domain_set.getSamples( true );</P> <P> ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////</P> <P class=MsoNormal><SPAN lang=EN-CA style="mso-ansi-language: EN-CA">How I can read data set (domain_typle) from a file? When I don?t use Linear2Dset (.. )<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P> <P>thanks.<BR><BR></P><WAIT...> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <DIV></DIV> <CENTER><A href="http://www.visualrevolutions.com/vr.htm"><IMG src="http://ad.vconnexions.com/cgi-bin/ad.cgi" border=0><IMG height=1 src="http://ad.vconnexions.com/cgi-bin/advr.cgi" width=1 border=0 1></A> <DIV></DIV></CENTER></div><br clear=all><hr>Chat with friends online, try MSN Messenger: <a href='http://g.msn.com/1HM505401/43'>Click Here</a><br></html>
visad
archives: