Re: Intepolation of an array with missing points
- To: mathgroup at smc.vnet.net
- Subject: [mg62363] Re: [mg62323] Intepolation of an array with missing points
- From: "Jose Luis Gomez" <jose.luis.gomez at itesm.mx>
- Date: Tue, 22 Nov 2005 04:42:04 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hello James One possibility could be to use the imsUnstructuredPlot3D and the imsUnstructuredContourPlot, they are designed within the context of the Finite Elements Method, where there appears a similar problem to the one you have: the data to be plotted is not in a rectangular grid, but it is in an unstructured grid. imsUnstructuredPlot3D and imsUnstructuredContourPlot are included in the IMTEK Mathematica Supplement (IMS) IMS is a free Add-On package to Mathematica. You can download it free from: http://www.imtek.de/simulation/mathematica/IMSweb/ After you have downoloaded it, installed it and rebuild Mathematica's help index (as explained during the installation) then you can go to your Mathematica's help browser->Add-ons->Imtek->Utilities->Graphics->Unstructured Plot; there you will see examples of how to use this commands, and IMS has also its own mailing list where you can also ask questions to more expirienced users and the creators of IMS. Hope this helps Bye! José Luis . -----Mensaje original----- De: dkjk at bigpond.net.au [mailto:dkjk at bigpond.net.au] Enviado el: Sábado, 19 de Noviembre de 2005 10:19 p.m. Para: mathgroup at smc.vnet.net Asunto: [mg62323] Intepolation of an array with missing points Hi, I have an array representing the heights of a surface over the x-y plane. Unfortunately, the heights at several points are unknown so have been replaced by empty strings. For an example, see http://users.bigpond.net.au/jdstokes/output.csv arr = Import["output.csv"] // MatrixForm My ultimate goal is to create an interpolating function of this data which will allow me to produce a contour plot. As a very inexperienced user of Mathematica, my initial thoughts have been someting like this: 1. Convert arr to an list of 3-tuples, ignoring the empty entries. (not sure how to do this) 2. Use Interpolation to create an InterpolatingFunction which can be plotted in ContourPlot. Does anyone know of a simple method to achieve 1. and whether or not 2. will work in this case? Thanks. James _______________________________________________ IMTEK Mathematica Supplement (IMS) http://www.imtek.de/simulation/mathematica/IMSweb/ IMS mailing list IMS at elmo.imtek.uni-freiburg.de http://elmo.imtek.uni-freiburg.de/mailman/listinfo/ims