Changeset 2679 in lmdz_wrf


Ignore:
Timestamp:
Jul 13, 2019, 10:02:12 PM (5 years ago)
Author:
lfita
Message:

Working frontogenesis!!!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/diagnostics.py

    r2678 r2679  
    5555from optparse import OptionParser
    5656import numpy as np
     57import numpy.ma as ma
    5758from netCDF4 import Dataset as NetCDFFile
    5859import os
     
    10091010        var8 = var08[1] - var08[0]
    10101011
     1012        var5 = var5/var5
     1013        var6 = var6/var6
     1014        var7 = var7/var7
     1015
    10111016        diag1, diag2, diag3, diag4, diag5, diag6, diag7, diag8, diag9, diag10,       \
    10121017          diagoutd, diagoutvd = diag.Forcompute_frontogenesis(var0, var1, var2, var3,\
    10131018          var4, var5, var6, var7, var8, dnames, dvnames)
     1019
     1020        # Removing inf, Nan, ....
     1021        diag1 = ma.masked_invalid(diag1)
     1022        diag2 = ma.masked_invalid(diag2)
     1023        diag3 = ma.masked_invalid(diag3)
     1024        diag4 = ma.masked_invalid(diag4)
     1025        diag5 = ma.masked_invalid(diag5)
     1026        diag6 = ma.masked_invalid(diag6)
     1027        diag7 = ma.masked_invalid(diag7)
     1028        diag8 = ma.masked_invalid(diag8)
     1029        diag9 = ma.masked_invalid(diag9)
     1030        diag10 = ma.masked_invalid(diag10)
    10141031
    10151032        # Removing the nonChecking variable-dimensions from the initial list
Note: See TracChangeset for help on using the changeset viewer.