|
Methods defined here:
- __init__(self, datapath, flnm, yyyy, mm, dd, varname_dict={'cloud': 'val', 'lat': 'lat', 'lon': 'lon'}, fopen=<function open_cloud_file>, fread=<function read_cloud_file>, fclose=<function close_cloud_file>, fget=<function get_cloud_data>, fio_keywords={}, **keywords)
- initialization
Inputs:
------------------------------------------------------
1. datapath:<str>: file path for cloud data
2. flnm: <flnm>: file name for cloud file
3. yyyy: <int>: year
4. mm:<int>: month
5. dd:<int>: day
6. read_to_array:<T/F>: if True, data will be read from file as arrays.
7. use_current_time:<T/F>:
---if True, input time (yyyy, mm, dd) will be used to read data.
---if False, default time will be used to read data
8. fopen:<func>: open data file
9. fread:<func>: read data into
10. fclose:<func>: close file
11. fget: <func>: get cloud at given locations
12. keywords:<dict>: attribute
- get_data(self, olon, olat, oyyyy, omm, odd, osec, **keywords)
- get cloud coverage at given location
Inputs:
---------------------------------------------
1.olon:<array, (nob,)>: longitude
2.olat:<array, (nob,)>: latitude
3.oyyyy:<int/array, (nob,)>: year (Note 2)
4.omm:<int/array, (nob,)>: month (Note 2)
5.odd:<int/array, (nob,)>: day (Note 2)
6.osec:<int/array, (nob,)>: seconds in the day (Note 2).
7. keywords:<dict>: extra inputs
---Reserved Entries
-->common_ref:<str/numeric>: the reference shared by observations.
Returns:
------------------------------------------
1. pcld: <array, (nob)>: cloud coverage percentage
Notes:
--------------------------------------------
1. keywords passed to self.fget will be self.fio_keywords+keywords
2. time (yyyy, mm, dd, sec) can be single values while olon and olat
two arrays of same sizes.
- load_data(self, datapath, flnm, yyyy, mm, dd, **keywords)
- read data from file to array/table
Inputs:
------------------------------------------------------
1. datapath:<str>: file path for cloud data
2. flnm: <flnm>: file name for cloud file
3. yyyy: <int>: year
4. mm:<int>: month
5. dd:<int>: day
6. keywords:<dict>: extra inputs for reading file
Returns:
-------------------------------------
1. is_ready:<T/F>: True if data are read successifully.
Notes:
-----------------------------------------------
|