Changeset 3346


Ignore:
Timestamp:
08/02/08 23:02:49 (11 years ago)
Author:
astephen
Message:
 
File:
1 edited

Legend:

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

    r3342 r3346  
    5555 * dump all aircraft stuff in  an unsupported dir without refactoring in. 
    5656 
    57 ====== 
    58  
    59 CDMS stuff is most of the mess 
    60 ============================== 
    61  
    62 1. naToCdms.py holds: 
    63  
    64 AbstractNAToCdms CLASS 
    65 toCdmsFile 
    66 createCdmsVariables 
    67 toCdmsVariable 
    68 createCdmsAuxVariables 
    69 auxToCdmsVariable 
    70 createCdmsAxes 
    71 toCdmsAxes 
    72  
    73 2. na2cdms.py: 
    74  
    75 Command-line script 
    76  
    77 3. bin/na2nc: 
    78  
    79 Same as na2cdms.py ??? 
    80  
    81 4. cdms2na.py is the mother of all modules: 
    82  
    83 compareAxes --> areAxesIdentical(a,b) cdms_utils 
    84 compareVariables --> areDomainsIdentical(v1, v2) cdms_utils 
    85 isAuxAndVar --> isAuxVarAndVar  
    86 arrayToList utils 
    87 listOfListsCreator utils 
    88 getBestName cdms_utils - need some advice and compare with Dom 
    89 getMissingValue cdms_utils 
    90 fixHeaderLengthNowDefunct # Can destroy 
    91 flatten2DTimeData aircraft 
    92 modifyNADictCopy - needs a better name as it is specific 
    93 cdms2na - 200 lines of code to do main conversion, needs to be split out into other stuff. 
    94  * getVariableCollections(f and varlist) --> (ordered_vars, other_vars) 
    95  * buildNADicts() 
    96  * writeToOutputFiles() 
    97  
    98 class CdmsToNABuilder --> NAContentCollector: (naDict, varIDs, varBin) 
    99 __init__ --> sets everything up and runs it move some to --> analyse() 
    100 analyseVariables 
    101 defineNAVars 
    102 defineNAAuxVars 
    103 getAxisDefinition 
    104 defineNAGlobals 
    105 defineNAComments 
    106 defineGeneralHeader 
    107 _useLocalRule --> Remove this and put it all in aircraft contrib bit 
    108  
    10957================= 
    11058 
     
    11866convertor.convertToCdms(blah): (vars, global_atts) 
    11967 
    120 class NAToCdms 
    121  
    122 toCdmsFile 
    123 createCdmsVariables - does all 
    124 toCdmsVariable - does each in turn 
    125 CreateCdmsAuxVariables - does all 
    126 auxToCdmsVariables - does each in turn 
    127 createCdmsAxes - does all 
    128 toCdmsAxes - does each in turn 
    129  
    13068================ 
    13169 
     
    13472===== 
    13573 
    136 NAFile2010: 
    13774_readData[12] are crying out for useful names 
    13875 
     
    14885Global find and replace: 
    14986 
    150 floatFormat 
    151 naDict 
     87 * floatFormat 
     88 * naDict 
    15289===================== 
    15390 
     
    16299Should we leave in the interactive time units checker in na_to_cdms.py - ask Charles 
    163100 
    164 ===== 
    165 cdms_map is not all done in the config file dict. 
    166101 
    167102Unit tests 
Note: See TracChangeset for help on using the changeset viewer.