grdwindinversion 0.2.3.post12__tar.gz → 0.2.3.post13__tar.gz
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-0.2.3.post12/grdwindinversion.egg-info → grdwindinversion-0.2.3.post13}/PKG-INFO +1 -1
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/config_prod.yaml +5 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/config_prod_recal.yaml +16 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/inversion.py +12 -26
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/main.py +2 -5
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13/grdwindinversion.egg-info}/PKG-INFO +1 -1
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion.egg-info/SOURCES.txt +0 -1
- grdwindinversion-0.2.3.post12/grdwindinversion/config_luts.yaml +0 -4
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/.editorconfig +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/.github/dependabot.yml +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/.github/workflows/publish.yml +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/.gitignore +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/.pre-commit-config.yaml +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/AUTHORS.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/CONTRIBUTING.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/HISTORY.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/LICENSE +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/MANIFEST.in +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/Makefile +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/README.md +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/ci/requirements/docs.yaml +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/ci/requirements/environment.yaml +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/Makefile +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/_static/css/grdwindinversion.css +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/algorithm.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/authors.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/conf.py +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/contributing.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/examples/wind-inversion-from-grd.ipynb +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/history.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/index.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/installation.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/make.bat +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/modules.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/readme.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/docs/usage.rst +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/.github/ISSUE_TEMPLATE.md +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/.gitignore +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/.travis.yml +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/__init__.py +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/data_config.yaml +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/load_config.py +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/utils.py +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion.egg-info/dependency_links.txt +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion.egg-info/entry_points.txt +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion.egg-info/requires.txt +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion.egg-info/top_level.txt +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/pyproject.toml +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/requirements_dev.txt +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/requirements_doc.txt +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/setup.cfg +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/tests/__init__.py +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/tests/test_grdwindinversion.py +0 -0
- {grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/tox.ini +0 -0
|
@@ -5,6 +5,10 @@ S1A:
|
|
|
5
5
|
apply_flattening: True
|
|
6
6
|
recalibration: True
|
|
7
7
|
ancillary: "ecmwf"
|
|
8
|
+
inc_step: 0.1
|
|
9
|
+
wspd_step: 0.1
|
|
10
|
+
phi_step: 1.0
|
|
11
|
+
resolution: "high"
|
|
8
12
|
S1B:
|
|
9
13
|
GMF_VV_NAME: "gmf_cmod5n"
|
|
10
14
|
GMF_VH_NAME: "gmf_s1_v2"
|
|
@@ -12,6 +16,10 @@ S1B:
|
|
|
12
16
|
apply_flattening: True
|
|
13
17
|
recalibration: True
|
|
14
18
|
ancillary: "ecmwf"
|
|
19
|
+
inc_step: 0.1
|
|
20
|
+
wspd_step: 0.1
|
|
21
|
+
phi_step: 1.0
|
|
22
|
+
resolution: "high"
|
|
15
23
|
RS2:
|
|
16
24
|
GMF_VV_NAME: "gmf_cmod5n"
|
|
17
25
|
GMF_VH_NAME: "gmf_rs2_v2"
|
|
@@ -19,6 +27,10 @@ RS2:
|
|
|
19
27
|
apply_flattening: False
|
|
20
28
|
recalibration: True
|
|
21
29
|
ancillary: "ecmwf"
|
|
30
|
+
inc_step: 0.1
|
|
31
|
+
wspd_step: 0.1
|
|
32
|
+
phi_step: 1.0
|
|
33
|
+
resolution: "high"
|
|
22
34
|
RCM:
|
|
23
35
|
GMF_VV_NAME: "gmf_cmod5n"
|
|
24
36
|
GMF_VH_NAME: "gmf_rcm_noaa"
|
|
@@ -26,3 +38,7 @@ RCM:
|
|
|
26
38
|
apply_flattening: True
|
|
27
39
|
recalibration: True
|
|
28
40
|
ancillary: "ecmwf"
|
|
41
|
+
inc_step: 0.1
|
|
42
|
+
wspd_step: 0.1
|
|
43
|
+
phi_step: 1.0
|
|
44
|
+
resolution: "high"
|
{grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/inversion.py
RENAMED
|
@@ -487,7 +487,7 @@ def makeL2asOwi(xr_dataset, dual_pol, copol, crosspol):
|
|
|
487
487
|
return xr_dataset, encoding
|
|
488
488
|
|
|
489
489
|
|
|
490
|
-
def preprocess(filename, outdir, config_path,
|
|
490
|
+
def preprocess(filename, outdir, config_path, overwrite=False, resolution='1000m'):
|
|
491
491
|
"""
|
|
492
492
|
Main function to generate L2 product.
|
|
493
493
|
|
|
@@ -499,8 +499,6 @@ def preprocess(filename, outdir, config_path, config_luts_path, overwrite=False,
|
|
|
499
499
|
output folder
|
|
500
500
|
config_path : str
|
|
501
501
|
configuration file path
|
|
502
|
-
config_luts_path : str
|
|
503
|
-
configuration LUTs file path
|
|
504
502
|
overwrite : bool, optional
|
|
505
503
|
overwrite existing file
|
|
506
504
|
resolution : str, optional
|
|
@@ -515,16 +513,6 @@ def preprocess(filename, outdir, config_path, config_luts_path, overwrite=False,
|
|
|
515
513
|
sensor, sensor_longname, fct_meta, fct_dataset = getSensorMetaDataset(
|
|
516
514
|
filename)
|
|
517
515
|
|
|
518
|
-
if os.path.exists(config_luts_path):
|
|
519
|
-
with open(config_luts_path, 'r') as file:
|
|
520
|
-
config_luts = yaml.load(
|
|
521
|
-
file,
|
|
522
|
-
Loader=yaml.FullLoader
|
|
523
|
-
)
|
|
524
|
-
else:
|
|
525
|
-
raise FileNotFoundError(
|
|
526
|
-
'config_luts_path do not exists, got %s ' % config_luts_path)
|
|
527
|
-
|
|
528
516
|
if os.path.exists(config_path):
|
|
529
517
|
with open(config_path, 'r') as file:
|
|
530
518
|
config_base = yaml.load(
|
|
@@ -747,10 +735,10 @@ def preprocess(filename, outdir, config_path, config_luts_path, overwrite=False,
|
|
|
747
735
|
xr_dataset["path_aux_cal_old"] = os.path.basename(os.path.dirname(
|
|
748
736
|
os.path.dirname(xsar_dataset.datatree['recalibration'].attrs['path_aux_cal_old'])))
|
|
749
737
|
|
|
750
|
-
return xr_dataset, dual_pol, copol, crosspol, copol_gmf, crosspol_gmf, model_vv, model_vh, sigma0_ocean_cross, dsig_cross, sensor_longname, out_file, config
|
|
738
|
+
return xr_dataset, dual_pol, copol, crosspol, copol_gmf, crosspol_gmf, model_vv, model_vh, sigma0_ocean_cross, dsig_cross, sensor_longname, out_file, config
|
|
751
739
|
|
|
752
740
|
|
|
753
|
-
def makeL2(filename, outdir, config_path,
|
|
741
|
+
def makeL2(filename, outdir, config_path, overwrite=False, generateCSV=True, resolution='1000m'):
|
|
754
742
|
"""
|
|
755
743
|
Main function to generate L2 product.
|
|
756
744
|
|
|
@@ -762,8 +750,6 @@ def makeL2(filename, outdir, config_path, config_luts_path, overwrite=False, gen
|
|
|
762
750
|
output folder
|
|
763
751
|
config_path : str
|
|
764
752
|
configuration file path
|
|
765
|
-
config_luts_path : str
|
|
766
|
-
configuration LUTs file path
|
|
767
753
|
overwrite : bool, optional
|
|
768
754
|
overwrite existing file
|
|
769
755
|
generateCSV : bool, optional
|
|
@@ -779,17 +765,17 @@ def makeL2(filename, outdir, config_path, config_luts_path, overwrite=False, gen
|
|
|
779
765
|
final dataset
|
|
780
766
|
"""
|
|
781
767
|
|
|
782
|
-
xr_dataset, dual_pol, copol, crosspol, copol_gmf, crosspol_gmf, model_vv, model_vh, sigma0_ocean_cross, dsig_cross, sensor_longname, out_file, config
|
|
783
|
-
filename, outdir, config_path,
|
|
768
|
+
xr_dataset, dual_pol, copol, crosspol, copol_gmf, crosspol_gmf, model_vv, model_vh, sigma0_ocean_cross, dsig_cross, sensor_longname, out_file, config = preprocess(
|
|
769
|
+
filename, outdir, config_path, overwrite, resolution)
|
|
784
770
|
|
|
785
771
|
kwargs = {
|
|
786
|
-
"inc_step_lr":
|
|
787
|
-
"wpsd_step_lr":
|
|
788
|
-
"phi_step_lr":
|
|
789
|
-
"inc_step":
|
|
790
|
-
"wpsd_step":
|
|
791
|
-
"phi_step":
|
|
792
|
-
"resolution":
|
|
772
|
+
"inc_step_lr": config.pop("inc_step_lr", None),
|
|
773
|
+
"wpsd_step_lr": config.pop("wspd_step_lr", None),
|
|
774
|
+
"phi_step_lr": config.pop("phi_step_lr", None),
|
|
775
|
+
"inc_step": config.pop("inc_step", None),
|
|
776
|
+
"wpsd_step": config.pop("wspd_step", None),
|
|
777
|
+
"phi_step": config.pop("phi_step", None),
|
|
778
|
+
"resolution": config.pop("resolution", None),
|
|
793
779
|
}
|
|
794
780
|
|
|
795
781
|
# need to load gmfs before
|
|
@@ -13,9 +13,6 @@ def processor_starting_point():
|
|
|
13
13
|
parser.add_argument('--input_file', help='input file path', required=True)
|
|
14
14
|
parser.add_argument('--config_file',
|
|
15
15
|
help='config file path [if not provided will take config file based on input file]', required=True)
|
|
16
|
-
parser.add_argument('--config_file_luts',
|
|
17
|
-
help='config file (luts) path', required=True)
|
|
18
|
-
|
|
19
16
|
parser.add_argument('--resolution', required=False, default='1000m',
|
|
20
17
|
help='set resolution ["full" | "1000m" | "xXxm"]')
|
|
21
18
|
|
|
@@ -45,14 +42,14 @@ def processor_starting_point():
|
|
|
45
42
|
# raise Exception('this processor only handle acquisitions with VV or VV+VH polarization for now.')
|
|
46
43
|
|
|
47
44
|
config_file = args.config_file
|
|
48
|
-
config_file_luts = args.config_file_luts
|
|
49
45
|
out_folder = args.outputdir
|
|
50
46
|
resolution = args.resolution
|
|
51
47
|
if resolution == "full":
|
|
52
48
|
resolution = None
|
|
53
49
|
|
|
54
|
-
out_file, outputds = makeL2(input_file, out_folder, config_file,
|
|
50
|
+
out_file, outputds = makeL2(input_file, out_folder, config_file,
|
|
55
51
|
overwrite=args.overwrite, resolution=resolution, generateCSV=args.no_generate_csv)
|
|
52
|
+
|
|
56
53
|
logging.info('out_file: %s', out_file)
|
|
57
54
|
logging.info('current memory usage: %s ', get_memory_usage(var='current'))
|
|
58
55
|
logging.info('done in %1.3f min', (time.time() - t0) / 60.)
|
|
@@ -33,7 +33,6 @@ docs/examples/wind-inversion-from-grd.ipynb
|
|
|
33
33
|
grdwindinversion/.gitignore
|
|
34
34
|
grdwindinversion/.travis.yml
|
|
35
35
|
grdwindinversion/__init__.py
|
|
36
|
-
grdwindinversion/config_luts.yaml
|
|
37
36
|
grdwindinversion/config_prod.yaml
|
|
38
37
|
grdwindinversion/config_prod_recal.yaml
|
|
39
38
|
grdwindinversion/data_config.yaml
|
|
File without changes
|
|
File without changes
|
{grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/.github/workflows/publish.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/ci/requirements/environment.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/.travis.yml
RENAMED
|
File without changes
|
{grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/__init__.py
RENAMED
|
File without changes
|
{grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/data_config.yaml
RENAMED
|
File without changes
|
{grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/grdwindinversion/load_config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{grdwindinversion-0.2.3.post12 → grdwindinversion-0.2.3.post13}/tests/test_grdwindinversion.py
RENAMED
|
File without changes
|
|
File without changes
|