ocssw
V2022
|
sort_gring.py
Go to the documentation of this file.
21 parser = argparse.ArgumentParser(prog='sort_gring',formatter_class=argparse.RawTextHelpFormatter,
28 parser.add_argument('-i','--ifile', type=str, metavar="FILE",default=None, help="name of file with gring data from l1info")
33 args = parser.parse_args()
40 lines = ifile.readlines()
70 distance = np.atleast_1d(points) - np.atleast_1d(center)
72 angles = np.arctan2(distance[:,0],distance[:,1])
74 deg_angles = np.degrees(angles)
75 idx = np.where(deg_angles < 0)
78 gringsequence = np.argsort(deg_angles, axis=0)[::-1]
85 sorted_lon = np.array2string(np.take_along_axis(np.degrees(gringpointlongitude), gringsequence, axis=0), precision=5, separator=',')
86 sorted_lat = np.array2string(np.take_along_axis(np.degrees(gringpointlatitude), gringsequence, axis=0), precision=5, separator=',')
list(APPEND LIBS ${PGSTK_LIBRARIES}) add_executable(atteph_info_modis atteph_info_modis.c) target_link_libraries(atteph_info_modis $
Definition: CMakeLists.txt:7
void filter(fctlstr *fctl, l1qstr *l1que, l1str *l1rec, int32_t dscan)
Definition: filter.c:1396