Changeset 713


Ignore:
Timestamp:
05/04/16 13:50:22 (8 years ago)
Author:
llmlod
Message:

Check that empty orbit are not save in netcdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/file_Tbcorr_daily.py

    r712 r713  
    1313import os 
    1414from pylab import date2num 
    15 from numpy import arange, size, hstack, dstack, dtype, argsort, mean, nanmean, isnan 
     15from numpy import arange, size, hstack, dstack, dtype, argsort, mean, nanmean, isnan, floor 
    1616from dateutil.rrule import rrule, DAILY 
    1717from useCorrTb_daily import applycorr2orb, SatName, areaname 
     
    215215        for cc, ich in enumerate(ch): 
    216216            # Index to remove orbites completly  
    217             iorb = (mean(tbcorr[cc,:,:].squeeze(),axis=0) != fvalue) 
     217            iorb = (floor(mean(tbcorr[cc,:,:].squeeze(),axis=0)) > fvalue) 
    218218            nsat = satvec[iorb].size 
    219219            # Output file name 
Note: See TracChangeset for help on using the changeset viewer.