Ignore:
Timestamp:
15/06/07 16:02:42 (13 years ago)
Author:
spascoe
Message:

Improved tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/tests/make_data.py

    r2594 r2596  
    1414def make_var(grid): 
    1515    """ 
    16     Make a variable on a given grid with an X in it 
     16    Make a variable on a given grid with an X in it. 
     17    The first column and row are filled with their respective axis values. 
    1718 
    1819    """ 
    1920    i = N.indices(grid.shape) 
    20     a = N.where(i[0] == i[1], 10, 1) 
    21     a = N.where(i[0][-1::-1,:] == i[1], 10, a) 
     21    a = N.where(i[0] == i[1], 1000., 1.) 
     22    a = N.where(i[0][-1::-1,:] == i[1], 1000., a) 
     23 
     24    a[0] = grid.getLatitude().getValue() 
     25    a[:,0] = grid.getLongitude().getValue() 
     26 
    2227    a = N.array([a]) 
    2328 
Note: See TracChangeset for help on using the changeset viewer.