grdwindinversion 0.3.8__py3-none-any.whl → 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- grdwindinversion/__init__.py +11 -8
- grdwindinversion/config_prod_recal.yaml +72 -8
- grdwindinversion/config_prod_recal_streaks_nrcsmod.yaml +70 -5
- grdwindinversion/config_prod_streaks.yaml +66 -5
- grdwindinversion/config_prod_streaks_nrcsmod.yaml +66 -5
- grdwindinversion/config_prod_v3.yaml +43 -0
- grdwindinversion/data_config.yaml +22 -5
- grdwindinversion/inversion.py +484 -204
- grdwindinversion/main.py +3 -1
- grdwindinversion/utils.py +8 -6
- {grdwindinversion-0.3.8.dist-info → grdwindinversion-1.0.0.dist-info}/METADATA +1 -1
- grdwindinversion-1.0.0.dist-info/RECORD +22 -0
- {grdwindinversion-0.3.8.dist-info → grdwindinversion-1.0.0.dist-info}/WHEEL +1 -1
- {grdwindinversion-0.3.8.dist-info → grdwindinversion-1.0.0.dist-info}/licenses/AUTHORS.rst +1 -5
- grdwindinversion/config_prod.yaml +0 -52
- grdwindinversion-0.3.8.dist-info/RECORD +0 -23
- {grdwindinversion-0.3.8.dist-info → grdwindinversion-1.0.0.dist-info}/entry_points.txt +0 -0
- {grdwindinversion-0.3.8.dist-info → grdwindinversion-1.0.0.dist-info}/licenses/LICENSE +0 -0
- {grdwindinversion-0.3.8.dist-info → grdwindinversion-1.0.0.dist-info}/top_level.txt +0 -0
grdwindinversion/main.py
CHANGED
|
@@ -84,7 +84,7 @@ def processor_starting_point():
|
|
|
84
84
|
if resolution == "full":
|
|
85
85
|
resolution = None
|
|
86
86
|
|
|
87
|
-
out_file, outputds = makeL2(
|
|
87
|
+
out_file, outputds, return_status = makeL2(
|
|
88
88
|
input_file,
|
|
89
89
|
out_folder,
|
|
90
90
|
config_file,
|
|
@@ -97,6 +97,8 @@ def processor_starting_point():
|
|
|
97
97
|
logging.info("current memory usage: %s ", get_memory_usage(var="current"))
|
|
98
98
|
logging.info("done in %1.3f min", (time.time() - t0) / 60.0)
|
|
99
99
|
|
|
100
|
+
sys.exit(return_status)
|
|
101
|
+
|
|
100
102
|
|
|
101
103
|
if __name__ == "__main__":
|
|
102
104
|
processor_starting_point()
|
grdwindinversion/utils.py
CHANGED
|
@@ -21,12 +21,12 @@ except ImportError:
|
|
|
21
21
|
def convert_polarization_name(pol):
|
|
22
22
|
"""
|
|
23
23
|
Convert polarization name to the format used in the output filename
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
Parameters
|
|
26
26
|
----------
|
|
27
27
|
pol : str
|
|
28
28
|
polarization name
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
Returns
|
|
31
31
|
-------
|
|
32
32
|
str
|
|
@@ -43,6 +43,7 @@ def convert_polarization_name(pol):
|
|
|
43
43
|
else:
|
|
44
44
|
return "xx"
|
|
45
45
|
|
|
46
|
+
|
|
46
47
|
def check_incidence_range(incidence, models, **kwargs):
|
|
47
48
|
"""
|
|
48
49
|
Check if the incidence range of the dataset is within the range of the LUT of the model.
|
|
@@ -80,8 +81,8 @@ def check_incidence_range(incidence, models, **kwargs):
|
|
|
80
81
|
if inc_range[0] >= lut_range[0] and inc_range[1] <= lut_range[1]:
|
|
81
82
|
rets.append(True)
|
|
82
83
|
else:
|
|
83
|
-
logging.
|
|
84
|
-
f"incidence range {inc_range} is not within the range of the LUT of the model {model_name} {lut_range} : inversion will be approximate using LUT minmium|maximum incidences"
|
|
84
|
+
logging.warning(
|
|
85
|
+
f"check_incidence_range warning : incidence range {inc_range} is not within the range of the LUT of the model {model_name} {lut_range} : inversion will be approximate using LUT minmium|maximum incidences"
|
|
85
86
|
)
|
|
86
87
|
rets.append(False)
|
|
87
88
|
|
|
@@ -115,7 +116,7 @@ def get_pol_ratio_name(model_co):
|
|
|
115
116
|
vvgmf, res, polrationame = match.groups()
|
|
116
117
|
return polrationame
|
|
117
118
|
else:
|
|
118
|
-
logging.
|
|
119
|
+
logging.warning(
|
|
119
120
|
f"String format is not correct for polarization ratio name = {s}\nReturning '/'"
|
|
120
121
|
)
|
|
121
122
|
return "/"
|
|
@@ -145,7 +146,8 @@ def timing(logger=logger.debug):
|
|
|
145
146
|
if mem_monitor:
|
|
146
147
|
endrss = process.memory_info().rss
|
|
147
148
|
mem_str = "mem: %+.1fMb" % ((endrss - startrss) / (1024**2))
|
|
148
|
-
logger("timing %s : %.2fs. %s" %
|
|
149
|
+
logger("timing %s : %.2fs. %s" %
|
|
150
|
+
(f.__name__, endtime - starttime, mem_str))
|
|
149
151
|
return result
|
|
150
152
|
|
|
151
153
|
wrapper.__doc__ = f.__doc__
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
grdwindinversion/.gitignore,sha256=vmDRHGeESYckUdUztsPr7u6ZNfBYMCVR3GE3AJCBnsY,1204
|
|
2
|
+
grdwindinversion/__init__.py,sha256=pQ3rvsuY5HqPMMi-ucT0oGfltpL3M903X2zZRV3QIi0,395
|
|
3
|
+
grdwindinversion/config_prod_recal.yaml,sha256=WBvaYjPEzTWkEjwYlP0-xj_D6xgzaavCe6dVFXPJbnw,3129
|
|
4
|
+
grdwindinversion/config_prod_recal_streaks_nrcsmod.yaml,sha256=8PwGHnVmaJa-j5jX59BXtUvRIPt0IFCoylMmWvMGjsQ,3127
|
|
5
|
+
grdwindinversion/config_prod_streaks.yaml,sha256=imd4XFSLwZ2TH9Rw9bBKOZZHRJ42wW9ckMe5xYgMQKI,3134
|
|
6
|
+
grdwindinversion/config_prod_streaks_nrcsmod.yaml,sha256=mme6YulYxc_HD8uX9XCpn1tfJpN-D5GSa_2mZ3X7220,3133
|
|
7
|
+
grdwindinversion/config_prod_v3.yaml,sha256=YdIYJcQhX8bM2vhU4pDmT4BI8O0Mn4DVSS_LvB0CbgI,3136
|
|
8
|
+
grdwindinversion/data_config.yaml,sha256=WUkJPt5BGi9TF05xRs_uuzCAR4i4mEmoFL9dcGESD_4,1375
|
|
9
|
+
grdwindinversion/gradientFeatures.py,sha256=NIeAJzb1zrlJPBq1th7wjEZoNJMxwqDpNHLMWP6FQN0,18198
|
|
10
|
+
grdwindinversion/inversion.py,sha256=k7JqFU1M69MJ4zQWiOrzmCGf5Ty3Mkp29i5tPZ4gSkY,72724
|
|
11
|
+
grdwindinversion/load_config.py,sha256=ZPozOWt0rf2Pmyc6P2D75cE_9wKUfKfr7RUzlE3WoiY,833
|
|
12
|
+
grdwindinversion/main.py,sha256=OtfohM-CWgXD6Zyw2vOFZMDyBXII5qPRZIA8u_dKB4I,3298
|
|
13
|
+
grdwindinversion/utils.py,sha256=zcAqpGyyqUleM8YUqyofaEvm2Hua1n-JjY-j83R2az8,4393
|
|
14
|
+
grdwindinversion/utils_memory.py,sha256=NA0bvkpCTkEiqCcJuldG1XsrP40-3AQUUt3HLeoRpbY,1432
|
|
15
|
+
grdwindinversion/.github/ISSUE_TEMPLATE.md,sha256=qiM_a7CCUz3fSrz3Q20Se1nwPNFS8QCc8tkwK_0DSCo,327
|
|
16
|
+
grdwindinversion-1.0.0.dist-info/licenses/AUTHORS.rst,sha256=C9EFY6YdOu5qAe6pNIvCvviXH91vCej-WxOobYftoMk,155
|
|
17
|
+
grdwindinversion-1.0.0.dist-info/licenses/LICENSE,sha256=-B8mBiTeY3J7OLuayiV1myqmc7yeijBc7s34kc8RTmg,1075
|
|
18
|
+
grdwindinversion-1.0.0.dist-info/METADATA,sha256=Gf4VC2pR5gOqb8Xh8LEPVHGzCPHCObjVTWTMjWdBowY,2529
|
|
19
|
+
grdwindinversion-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
+
grdwindinversion-1.0.0.dist-info/entry_points.txt,sha256=2rjvlVCy0iasRXjOz3kOIGuy2OCGQ-VTNuwuViQ6cMM,95
|
|
21
|
+
grdwindinversion-1.0.0.dist-info/top_level.txt,sha256=z6lPix3QPEYOo37qq8plA2hY7S3C8MQZY81agRlksMI,17
|
|
22
|
+
grdwindinversion-1.0.0.dist-info/RECORD,,
|
|
@@ -5,10 +5,6 @@ Authors
|
|
|
5
5
|
Development Lead
|
|
6
6
|
----------------
|
|
7
7
|
|
|
8
|
-
* Vincent Lheureux <
|
|
8
|
+
* Vincent Lheureux <vinc.lheureux@gmail.com>
|
|
9
9
|
* Antoine Grouazel <antoine.grouazel@ifremer.fr>
|
|
10
10
|
|
|
11
|
-
Contributors
|
|
12
|
-
------------
|
|
13
|
-
|
|
14
|
-
None yet. Why not be the first?
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
no_subdir: True
|
|
2
|
-
winddir_convention: "meteorological"
|
|
3
|
-
add_gradientsfeatures: False
|
|
4
|
-
add_nrcs_model: False
|
|
5
|
-
S1A:
|
|
6
|
-
GMF_HH_NAME: "nc_lut_gmf_cmod5n_Rhigh_hh_mouche1"
|
|
7
|
-
GMF_VV_NAME: "gmf_cmod5n"
|
|
8
|
-
GMF_VH_NAME: "gmf_s1_v2"
|
|
9
|
-
dsig_VH_NAME: "gmf_s1_v2"
|
|
10
|
-
apply_flattening: True
|
|
11
|
-
recalibration: False
|
|
12
|
-
ancillary: "ecmwf"
|
|
13
|
-
inc_step: 0.1
|
|
14
|
-
wspd_step: 0.1
|
|
15
|
-
phi_step: 1.0
|
|
16
|
-
resolution: "high"
|
|
17
|
-
S1B:
|
|
18
|
-
GMF_HH_NAME: "nc_lut_gmf_cmod5n_Rhigh_hh_mouche1"
|
|
19
|
-
GMF_VV_NAME: "gmf_cmod5n"
|
|
20
|
-
GMF_VH_NAME: "gmf_s1_v2"
|
|
21
|
-
dsig_VH_NAME: "gmf_s1_v2"
|
|
22
|
-
apply_flattening: True
|
|
23
|
-
recalibration: False
|
|
24
|
-
ancillary: "ecmwf"
|
|
25
|
-
inc_step: 0.1
|
|
26
|
-
wspd_step: 0.1
|
|
27
|
-
phi_step: 1.0
|
|
28
|
-
resolution: "high"
|
|
29
|
-
RS2:
|
|
30
|
-
GMF_HH_NAME: "nc_lut_gmf_cmod5n_Rhigh_hh_mouche1"
|
|
31
|
-
GMF_VV_NAME: "gmf_cmod5n"
|
|
32
|
-
GMF_VH_NAME: "gmf_rs2_v2"
|
|
33
|
-
dsig_VH_NAME: "gmf_rs2_v2"
|
|
34
|
-
apply_flattening: False
|
|
35
|
-
recalibration: False
|
|
36
|
-
ancillary: "ecmwf"
|
|
37
|
-
inc_step: 0.1
|
|
38
|
-
wspd_step: 0.1
|
|
39
|
-
phi_step: 1.0
|
|
40
|
-
resolution: "high"
|
|
41
|
-
RCM:
|
|
42
|
-
GMF_HH_NAME: "nc_lut_gmf_cmod5n_Rhigh_hh_mouche1"
|
|
43
|
-
GMF_VV_NAME: "gmf_cmod5n"
|
|
44
|
-
GMF_VH_NAME: "gmf_rcm_noaa"
|
|
45
|
-
dsig_VH_NAME: "gmf_s1_v2"
|
|
46
|
-
apply_flattening: True
|
|
47
|
-
recalibration: False
|
|
48
|
-
ancillary: "ecmwf"
|
|
49
|
-
inc_step: 0.1
|
|
50
|
-
wspd_step: 0.1
|
|
51
|
-
phi_step: 1.0
|
|
52
|
-
resolution: "high"
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
grdwindinversion/.gitignore,sha256=vmDRHGeESYckUdUztsPr7u6ZNfBYMCVR3GE3AJCBnsY,1204
|
|
2
|
-
grdwindinversion/__init__.py,sha256=LEeSGGPADHTtjujV48PD3lRVXxe-dg5_z1zWQTvBJNw,415
|
|
3
|
-
grdwindinversion/config_prod.yaml,sha256=VEAgtJt894v3u4AhYOlcCWjb379vPDMfwBb4PKeDmAw,1314
|
|
4
|
-
grdwindinversion/config_prod_recal.yaml,sha256=74n2J4tzSx1I5vaat3ydwig1jyfDgxGTGDxxw8ALC-U,1222
|
|
5
|
-
grdwindinversion/config_prod_recal_streaks_nrcsmod.yaml,sha256=ob0YmzHrwkI4GLxaR9HzidYtXBrTOAlEYwPYdCK7AqA,1092
|
|
6
|
-
grdwindinversion/config_prod_streaks.yaml,sha256=lJMl4qH6XYqO8ich7yW0WDQsQDrjmWThlLyx1xZy1DA,1313
|
|
7
|
-
grdwindinversion/config_prod_streaks_nrcsmod.yaml,sha256=4yC4KcsC7rUumYHwhpKxM8_LDMe_Je-RIu4-9e1ayp8,1312
|
|
8
|
-
grdwindinversion/config_prod_v3.yaml,sha256=J6lb8swIa7M-P4DjnTqKP1Bzp3b2XWNZp_E1FCrPGXQ,1953
|
|
9
|
-
grdwindinversion/data_config.yaml,sha256=FnglUHbAtGwHWg8w86hwZt3-vo-dY8uIjxqyI1jZpv8,567
|
|
10
|
-
grdwindinversion/gradientFeatures.py,sha256=NIeAJzb1zrlJPBq1th7wjEZoNJMxwqDpNHLMWP6FQN0,18198
|
|
11
|
-
grdwindinversion/inversion.py,sha256=4AM5CUyLexHW4yX7yMspfW2osA4DTGm8I0KTWZbPiUA,61752
|
|
12
|
-
grdwindinversion/load_config.py,sha256=ZPozOWt0rf2Pmyc6P2D75cE_9wKUfKfr7RUzlE3WoiY,833
|
|
13
|
-
grdwindinversion/main.py,sha256=Cwmxxz-PEt53JvpTL0Jx1WKLJpWvlIXZ9xtnyGKrGHY,3254
|
|
14
|
-
grdwindinversion/utils.py,sha256=2BRq_UEbKbP5yCy_0X-nV-SQFmmp4aKrFaRgrs5MqJo,4347
|
|
15
|
-
grdwindinversion/utils_memory.py,sha256=NA0bvkpCTkEiqCcJuldG1XsrP40-3AQUUt3HLeoRpbY,1432
|
|
16
|
-
grdwindinversion/.github/ISSUE_TEMPLATE.md,sha256=qiM_a7CCUz3fSrz3Q20Se1nwPNFS8QCc8tkwK_0DSCo,327
|
|
17
|
-
grdwindinversion-0.3.8.dist-info/licenses/AUTHORS.rst,sha256=KmhW_5LBKGTIGwWEVkoTm1qx_bvdDR3yYL-1cwbDOFQ,218
|
|
18
|
-
grdwindinversion-0.3.8.dist-info/licenses/LICENSE,sha256=-B8mBiTeY3J7OLuayiV1myqmc7yeijBc7s34kc8RTmg,1075
|
|
19
|
-
grdwindinversion-0.3.8.dist-info/METADATA,sha256=Zhr0ANP7Ek5Kb5zzEBoh8cheWMmvI91EwfbclEOlens,2529
|
|
20
|
-
grdwindinversion-0.3.8.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
21
|
-
grdwindinversion-0.3.8.dist-info/entry_points.txt,sha256=2rjvlVCy0iasRXjOz3kOIGuy2OCGQ-VTNuwuViQ6cMM,95
|
|
22
|
-
grdwindinversion-0.3.8.dist-info/top_level.txt,sha256=z6lPix3QPEYOo37qq8plA2hY7S3C8MQZY81agRlksMI,17
|
|
23
|
-
grdwindinversion-0.3.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|