Changeset 1294 in lmdz_wrf


Ignore:
Timestamp:
Nov 9, 2016, 8:23:42 PM (8 years ago)
Author:
lfita
Message:

Adding CFification of `DYNAMICO'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/model_graphics.py

    r1292 r1294  
    915915                if db:
    916916                    for s1out in output: print s1out
     917            # At this stage, let's be simple. It might be necessary to complicate it! Since
     918            #   DYNAMICO might have 'time_counter' or 'time_instant'
     919            elif minf.name == 'DYNAMICO':
     920                try:
     921                    with gen.Capturing() as output:
     922                        ncvar.LMDZ_toCF(Tunits + '!since!' + Tref, ifilen)
     923                except:
     924                    print errmsg
     925                    print 'LMDZ_toCF('+ Tunits +'!since!'+ Tref + ', ' + ifilen + ')'
     926                    for s1out in output: print s1out
     927                    # Removing file in order to make sure that it will be redone
     928                    print '  ' + fname + " removing file '" + ifilen + "' ..."
     929                    sub.call('rm ' + ifilen + ' >& /dev/null', shell=True)
     930                    quit(-1)
     931                if db:
     932                    for s1out in output: print s1out
    917933            else:
    918934                print errmsg
    919935                print '  ' + fname + ": no CFification for model '" +minf.name+ "' !!"
    920                 print "    available ones: 'WRF', 'WRF_LMDZ', 'LMDZ'"
     936                print "    available ones: 'WRF', 'WRF_LMDZ', 'LMDZ', 'DYNAMICO'"
    921937                quit(-1)
    922938
Note: See TracChangeset for help on using the changeset viewer.