Ignore:
Timestamp:
31/01/07 10:48:22 (13 years ago)
Author:
domlowe
Message:

subsetting seems to be working, but needs more testing and tidying of code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/API/csmlutils.py

    r1939 r2081  
    1515def fixLongitude(request, kwargs): 
    1616    for key in request.keys(): 
    17         if key == 'longitude': #how do we test if it is longitude properly? 
    18             for val in dc[key]: 
     17        if key == 'Lon': #how do we test if it is longitude properly? 
     18            for val in request[key]: 
    1919                if val < 0: 
    2020                    pass 
     
    2424                    if kwargs[key][1] < 0: 
    2525                        kwargs[key]=(kwargs[key][0],kwargs[key][1]+360) 
    26         return kwargs 
     26    return kwargs 
Note: See TracChangeset for help on using the changeset viewer.