/[escript]/trunk/doc/examples/usersguide/int_save.py
ViewVC logotype

Diff of /trunk/doc/examples/usersguide/int_save.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3371 by jfenwick, Fri Nov 19 05:59:46 2010 UTC revision 3372 by caltinay, Mon Nov 22 23:10:03 2010 UTC
# Line 23  __url__="https://launchpad.net/escript-f Line 23  __url__="https://launchpad.net/escript-f
23    
24  # This example demonstrates both interpolation and saving data in CSV format  # This example demonstrates both interpolation and saving data in CSV format
25    
26  from esys.escript import saveDataCSV, sup  from esys.escript import saveDataCSV, sup, interpolateTable
27  import numpy  import numpy
28  from esys.finley import Rectangle  from esys.finley import Rectangle
29    
# Line 65  st=numpy.array(sine_table) Line 65  st=numpy.array(sine_table)
65  table=[st, 0.5*st, 0*st ]   #Note that this table is 2D  table=[st, 0.5*st, 0*st ]   #Note that this table is 2D
66    
67  #The y dimension should be the outer the dimension of the table  #The y dimension should be the outer the dimension of the table
 result2=interpolateTable(table, x (minval,0), (0.55, step), toobig)  
 saveDataCSV("2d.csv",inp0=x0, inp2=x1, out=result2)  
68    result2=interpolateTable(table, x, (minval,0), (0.55, step), toobig)
69    saveDataCSV("2d.csv",inp0=x0, inp2=x1, out=result2)

Legend:
Removed from v.3371  
changed lines
  Added in v.3372

  ViewVC Help
Powered by ViewVC 1.1.26