| |
Methods defined here:
- __init__(self, datapath, flnm, yyyy, mm, dd, bf_get=<function read_bf>, bfcl=None, lon_nm='lon', lat_nm='lat', flux_nm='flux', fio_keywords={}, **keywords)
- initialization
Inputs:
------------------------------------------------------
1. datapath:<str>: file path for aod data
2. flnm: <flnm>: file name for aod file
3. yyyy: <int>: year
4. mm:<]int>: month
5. dd:<int>: day
6. bf_get:<func>: function for reading basis function (or ensemble function)
7. bfcl:<bf_cl>: basis function class
8. lon_nm:<str>: name of longitude
9. lat_nm:<str>: name of latitude
10. flux_nm:<str>: name of flux
11. fio_keywords: <dict>: extra inputs for file accessing
12. keywords:<dict>: attribute
- copy(self, yyyy, mm, dd, **keywords)
- Make a copy of itself, and replace the keywords
Inputs:
---------------------------------------------
1. yyyy, mm, dd:<int>: date
2. keywords:<dict>: extra inputs
Returns
-------------------------------------------
cl_new:<x2flux_cl>: a copy of itself
- load_flux_from_file(self, **keywords)
- Inputs:
---------------------------------------------
1. datapath:<str>: file path for aod data
2. flnm: <flnm>: file name for aod file
3. keywords:<dict>: extra inputs
---reserved keys:
--->lon_nm:<str>: name of longitude
--->lat_nm:<str>: name of latitude
--->flux_nm:<str>: name of flux
--->flnm:<str>: name of flux file
--->path:<str>: name of data path
--->yyyy, mm, dd:<int>: year, month, day
Notes:
--------------------------------------------
1. if existing self.bfcl, self.bfck.load_bf will be called.
otherwise, self.bf_get will be invoked.
- x2flux(self, x, flux=None, locz_wgt=None, keep_flux=False, **keywords)
- Inputs:
------------------------------------------
1. x:<array, (ne, (ne))>: coefficient matrix
2. flux:<array, (nlon, nlat, ne)>: flux basis function or ensemble
3. locz_wgt:<array, (nlon, nlat)>: localization scaling factor
4. keep_flux:<T/F>: if true, flux will be saved
|