Changeset 3350 for nappy


Ignore:
Timestamp:
09/02/08 21:14:16 (11 years ago)
Author:
astephen
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • nappy/trunk/nappy/Plans for re-factoring 2008.txt

    r3349 r3350  
    66 
    77 * Need to make an egg of it, but in the meantime we also need it installed as: 
    8      
    9  * GET REST FROM WIKI! 
    108 
    119------------------- 
    12 !NAPpy stands for NASA Ames Processing in Python. It is a BADC tool that we use for 
    13  
    14 converting NASA Ames format to NetCDF (and vice versa). Since we intend to base the 
    15  
    16 UKCIP08 output formats on NASA Ames and we are working in python it is sensible for us 
    17  
    18 to extend !NAPpy to do the conversion process. 
    19  
    20 The definition task will involve liaison with the BADC team members working on the data 
    21  
    22 formats tasks. We need to decide what is required in terms of: 
     10We need to decide what is required in terms of: 
    2311 
    2412    * actual formats 
     
    3018        Here is an initial list of issues 
    3119 
    32     *Put in the option to order variables explicitly, rather than relying on nasa_ames_var_number attributes. 
     20    * Put in the option to order variables explicitly, rather than relying on nasa_ames_var_number attributes. 
    3321 
    34     *Support for 2110 – NX for the quickest changing IV needs to be converted to an auxiliary variable which does not fit nicely into the structure. In principle the second independent variable length changes at each first independent variable value but we may need it fixed. 
     22    * Support for 2110 – NX for the quickest changing IV needs to be converted to an auxiliary variable which does not fit nicely into the structure. In principle the second independent variable length changes at each first independent variable value but we may need it fixed. 
    3523 
    3624    * Refactoring to make it clearer and functions shorter but not too short. 
     
    5240 
    5341localRules/aircraft.py - Need to consider how this can be a sub-class of Cdms2NA so that we push all the odd code into separate modules. Need to encapstulate the differences into one or two methods that are small and can be overridden. 
    54  
    55  * dump all aircraft stuff in  an unsupported dir without refactoring in. 
     42 * decided to dump all aircraft stuff in  an unsupported dir without refactoring in - it will probably never be used! 
    5643 
    5744================= 
    5845 
    59 naToCdms.py 
    60 =========== 
    61  
    62 This is a sub-class of all NAFile objects. Bad idea. What we need is to: 
    63  
    64 import convertor 
    65 convertor.writeToNC(blah) 
    66 convertor.convertToCdms(blah): (vars, global_atts) 
     46import nappy  (via nappy_api.py module) 
     47nappy.convertNAToNC(na_file, nc_file) 
     48nappy.convertNCToNA(nc_file, na_file) 
    6749 
    6850================ 
    6951 
    70 Have I broken textParser.py's main function - is it same in old and new. 
     52Have I broken textParser.py's main function - is it same in old and new - need a test for it! 
    7153 
    7254===== 
     
    7456_readData[12] are crying out for useful names 
    7557 
    76 GREP 
    77 ==== 
    78  
    79 Need to do a lot of grepping for inconsistencies. 
    80  
    81 The following need to be set to True or False (not yes,no): 
    82  * _normalizedX  
    83  * time_warning 
    84  
    85 Global find and replace: 
    86  
    87  * float_format 
    88  * na_dict 
    89 ===================== 
    90  
    91 In naToCdms.py.NAToCdms.toCdmsAxis() there is a line naming the id (if too long) as: 
    92  
    93 naAuxVariable.... 
    94  
    95  - need to find where else this string is used and replace all with "naIndVariable" with map-back! 
    96  
    97 =================== 
    98  
    9958Should we leave in the interactive time units checker in na_to_cdms.py - ask Charles 
    100  
    10159 
    10260Unit tests 
Note: See TracChangeset for help on using the changeset viewer.