diff --git a/modules/util/util.py b/modules/util/util.py index f00099d9c2607b742051df7ed194df1ea06b4596..ac3baed1a140e13389a7dc228205ac98b52c48b6 100644 --- a/modules/util/util.py +++ b/modules/util/util.py @@ -433,14 +433,26 @@ exmp_file_fd = '/Users/tomrink/data/OR_ABI-L1b-RadF-M6C16_G16_s20212521800223_e2 # # UR from Taiwan # lon, lat = 131.117451, 32.850718 # elem_ur, line_ur = (2317, 1087) +taiwan_x0 = 1260 +taiwan_y0 = 1085 +taiwan_lenx = 1024 +taiwan_leny = 1024 +taiwain_extent = [-2420, -1420, 1992, 2992] # GEOS coordinates, not line, elem # ------------ This code will not be needed when we implement a Fully Connected CNN ----------------------------------- def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain='FD'): w_x = 16 w_y = 16 + i_0 = 0 + j_0 = 0 geos, xlen, xmin, xmax, ylen, ymin, ymax = get_cartopy_crs(satellite, domain) + if satellite == 'H08': + xlen = taiwan_lenx + ylen = taiwan_leny + i_0 = taiwan_x0 + j_0 = taiwan_y0 grd_dct = {name: None for name in name_list} @@ -459,9 +471,6 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain n_x = int(xlen/w_x) n_y = int(ylen/w_y) - i_0 = 0 - j_0 = 0 - cc = [] ll = []