From afe95104aee7d05f61ce9102d358b733fd16b921 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sun, 10 Oct 2021 12:11:59 -0500
Subject: [PATCH] snapshot...

---
 modules/util/util.py | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/modules/util/util.py b/modules/util/util.py
index f00099d9..ac3baed1 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 = []
 
-- 
GitLab