Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Rink
python
Commits
7f91fe57
Commit
7f91fe57
authored
3 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
minor...
parent
53b5ac7f
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/amv/caliop_clavrx_amv.py
+6
-5
6 additions, 5 deletions
modules/amv/caliop_clavrx_amv.py
with
6 additions
and
5 deletions
modules/amv/caliop_clavrx_amv.py
+
6
−
5
View file @
7f91fe57
...
...
@@ -9,6 +9,10 @@ half_width = 30 # search box centered on CALIOP profile (FGF coordinates)
num_elems
=
5424
num_lines
=
5424
amv_fmwk_exmpl_file
=
'
/ships19/cloud/scratch/4TH_AMV_INTERCOMPARISON/FMWK2_AMV/GOES16_ABI_2KM_FD_2019293_0020_34_WINDS_AMV_EN-14CT.nc
'
amv_ops_exmpl_file
=
'
/ships19/cloud/scratch/AMV_FAST_BIAS/OPS_AMVS/OR_ABI-L2-DMWF-M6C14_G16_s20201050000166_e20201050009474_c20201050023226.nc
'
caliop_clvrx_exmpl_file
=
'
/data/Personal/rink/clavrx_calipso/g16_s20201050200_06kmCLay.matchup.calipso.h5
'
def
get_search_box
(
cc
,
ll
):
...
...
@@ -41,7 +45,6 @@ def match_calipso_clavrx_to_amvs(calipso_clavrx_ds, calipso_clavrx_file, amv_fil
nom_time
=
calipso_clavrx_ds
.
get_datetime
(
calipso_clavrx_file
).
timestamp
()
calipso_clavrx_nc4
=
Dataset
(
calipso_clavrx_file
)
# amv_fname, ftime, f_idx = amv_files.get_file_containing_time(nom_time)
amv_fname
,
ftime
,
f_idx
=
amv_files
.
get_file
(
nom_time
)
if
f_idx
is
None
:
return
None
...
...
@@ -155,10 +158,8 @@ def create_file(match_dct, output_path, target_filepath, caliop_clavrx_params, a
amvs_cnt
=
np
.
array
(
amvs_cnt
)
# Sample file to retrieve and copy variable attributes
# rg_exmpl = Dataset('/ships19/cloud/scratch/4TH_AMV_INTERCOMPARISON/FMWK2_AMV/GOES16_ABI_2KM_FD_2019293_0020_34_WINDS_AMV_EN-14CT.nc', 'r')
rg_exmpl
=
Dataset
(
'
/ships19/cloud/scratch/AMV_FAST_BIAS/OPS_AMVS/OR_ABI-L2-DMWF-M6C14_G16_s20201050000166_e20201050009474_c20201050023226.nc
'
)
caliop_clavrx_exmpl
=
Dataset
(
'
/data/Personal/rink/clavrx_calipso/g16_s20201050200_06kmCLay.matchup.calipso.h5
'
,
'
r
'
)
rg_exmpl
=
Dataset
(
amv_ops_exmpl_file
)
caliop_clavrx_exmpl
=
Dataset
(
caliop_clvrx_exmpl_file
,
'
r
'
)
# the top level group for the output file
rootgrp
=
Dataset
(
output_filepath
,
'
w
'
,
format
=
'
NETCDF4
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment