Ignore:
Timestamp:
17/03/08 01:28:05 (13 years ago)
Author:
astephen
Message:

Brand new API but not yet fixed to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/nappy_api.py

    r3616 r3617  
    112112 
    113113 4. General NASA Ames utilities  
     114 
     115# Get the FFI from a NASA Ames file 
     116ffi = nappy.readFFI(na_file) 
     117 
     118# Given a NASA Ames dictionary (na_dict) get an appropriate FFI. 
     119ffi = nappy.chooseFFI(na_dict) 
     120 
    114121 
    115122""" 
     
    385392 
    386393 
    387 """ 
    388  
    389 MOVE TO UTILS AND FIX STRING TWOERS 
    390 def getFileNameWithNewExtension(input_file, format): 
    391     "" 
    392     Takes an input_file name and applies new extension to it by: 
    393     (i) replacing initial extension if there is one, OR 
    394     (ii) just appending new extension. 
    395     "" 
    396     base_name = input_file 
    397     last_four = base_name[-4:] 
    398     found = last_four.find(".") 
    399     if found > -1: 
    400         idx = len(base_name) + found 
    401         base_name = base_name[:idx] 
    402     return base_name + "." + format 
    403  
    404 TODO: 
    405 Need to test all arguments independently and in combinations. 
    406  * mode = "a"??? 
    407 compareNAFiles - do it 
    408   Check comparing 2001.na and 2001.csv and see why it falls over. 
    409 Error classes 
    410 Command-line utils, are they in-line with all changes? 
    411 Make sure annotation is callable at every level of the system. 
    412  
    413  * add no_header = True on write and for all write wrappers. 
    414 * Need uniform float_format and delimiter throughout main code so consistent. 
    415 """ 
Note: See TracChangeset for help on using the changeset viewer.