ESA.util.otool_obj | index /home/lfeng/otool/ESA/util/otool_obj.py |
Module for constant and managing function for objects defined in toolkit
Authors: L. Feng, Edinburgh University
History: v0.9, 2012.06.30
History: v0.95, 2013.01.06
1. Parameters
===========================================
# filling values
1. fill_val_float=-999.0
2. fill_val=-999.0
3. fill_val_int=-999
4. fill_val_str=""
# python types
5. ot_int=1
6. ot_float=2
7. ot_string=3
8. ot_list=4
9. ot_array=5
10.ot_slice=6
# ot types
11. ot_numeric=9
12. ot_axis=100
13. ot_grid=200
14. ot_field=300
15. ot_world=400
16. ot_profile=500
17. ot_vintpl=600
18. ot_hinterp=700
19. ot_slice=800
20. ot_iovar=900
21. ot_fdesc=1010
22. ot_ncfdesc=1010
23. ot_ak=1030
24. ot_err=1040
25. ot_cloud=1050
26. ot_aod=1060
27. ot_no_ot_type=fill_val_int
28. ot_bf=1070
29. ot_obs_op=1080
30. ot_stv=1090
31. ot_menu=1100
32. ot_def=1200
33. ot_lc=1300
2. Functions:
=======================================================
1.get_ot_type: get type of the obj
2.check_type : check whether the obj has the type as required
3.compare_type: check whether two objects have the same type
4.compare_attr: compare attributes of the ot object
5.is_attr_matched: compare
6. check_ot_shape: check whether obj has the required shape.
7. translate_dict_ID: find ID for given names from a ID dictionary
Modules | ||||||
|
Functions | ||
|
Data | ||
fill_val = -999.0 fill_val_float = -999.0 fill_val_int = -999 fill_val_str = '' ot_ak = 1030 ot_aod = 1060 ot_array = 5 ot_axis = 100 ot_bf = 1070 ot_cloud = 1050 ot_def = 1200 ot_err = 1040 ot_fdesc = 1010 ot_field = 300 ot_float = 2 ot_grid = 200 ot_hinterp = 800 ot_int = 1 ot_iovar = 900 ot_lc = 1300 ot_list = 4 ot_menu = 1100 ot_ncfdesc = 1020 ot_no_ot_type = -1000 ot_numeric = 9 ot_obs_op = 1080 ot_profile = 500 ot_slice = 600 ot_str = 3 ot_string = 3 ot_stv = 1090 ot_vintpl = 700 ot_world = 400 |