ESA.instrument.read_ecmwf_cld
index
/home/lfeng/otool/ESA/instrument/read_ecmwf_cld.py

Functions for reading  ECMWF cloud percentage file 
 
Authors: L. Feng, Edinburgh University
History: v0.9, 2012.06.28
History: v0.95, 2013.02.26
 
Functions
=================================================
 
# file access
 
1. open_ecmwf_cld:  open ECMWF cloud file
2. close_ecmwf_cld: close ECMWD cloud file 
3. get_ecmwf_cld_map: get ecmwf cloud map

 
Modules
       
datetime
ESA.util.gen_plots
numpy
pylab
Scientific.IO.NetCDF

 
Functions
       
close_ecmwf_cld(fl)
close file 
 
Inputs:
=============================================
1. fl:<obj>: file handle
get_ecmwf_cld_map(fl, yyyy, mm, dd, hh, tcc=None)
get ecmwf cloud map 
 
Inputs:
--------------------------------------------
1. fl :<handle>: file handle 
2. yyyy, mm, dd:<integer>: year, month and day 
3. hh: <integer>: hour
4. tcc:<variable, (nt, nlat, nlon)>: time series of the total cloud ratio, 
 
 
Returns:
----------------------------------------------
1. lon:<array, nlon>: longitude grid 
2. lat:<array, nlon>: latitude grid 
3. sel_tcc:<array, (nlon, nlat)>: cloud map at current time  
4. tcc:<variable, (nt, nlat, nlon)>:  time series of cloud map
open_ecmwf_cld(datapath, flnm, yyyy, mm, dd, hh)
open cloud file ecmwf file 
 
Inputs:
=============================================
1. datapath:<str>: path
2. flnm: <str>: file name
3. yyyy, mm, dd, hh:<int>: time 
 
Returns:
===========================================
1. cld_fl:<obj>: cloud file handle