Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fusion_matlab
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
geoffc_sips
fusion_matlab
Commits
c76ce32a
Commit
c76ce32a
authored
6 years ago
by
Geoff Cureton
Browse files
Options
Downloads
Patches
Plain Diff
Some further tweaks to get the Fusion quicklooks working for JPSS-1 / NOAA-20.
parent
ebcfefe9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
example_local_prepare.py
+4
-1
4 additions, 1 deletion
example_local_prepare.py
example_local_prepare_ql.py
+4
-1
4 additions, 1 deletion
example_local_prepare_ql.py
source/flo/__init__.py
+5
-1
5 additions, 1 deletion
source/flo/__init__.py
with
13 additions
and
3 deletions
example_local_prepare.py
+
4
−
1
View file @
c76ce32a
...
...
@@ -22,8 +22,9 @@ comp = FUSION_MATLAB()
#interval = TimeInterval(granule, granule+timedelta(minutes=0))
satellite
=
'
snpp
'
#satellite = 'jpss1'
#satellite = 'aqua'
version
=
'
1.0dev
7
'
# base VIIRS level-1b
version
=
'
1.0dev
10
'
# base VIIRS level-1b
def
local_execute_example
(
interval
,
satellite
,
version
,
skip_prepare
=
False
,
skip_execute
=
False
,
verbosity
=
2
):
...
...
@@ -31,6 +32,8 @@ def local_execute_example(interval, satellite, version, skip_prepare=False, skip
if
satellite
==
'
snpp
'
:
LOG
.
info
(
"
We are doing NPP...
"
)
if
satellite
==
'
jpss1
'
:
LOG
.
info
(
"
We are doing JPSS-1 / NOAA-20...
"
)
elif
satellite
==
'
aqua
'
:
LOG
.
info
(
"
We are doing AQUA...
"
)
else
:
...
...
This diff is collapsed.
Click to expand it.
example_local_prepare_ql.py
+
4
−
1
View file @
c76ce32a
...
...
@@ -22,8 +22,9 @@ comp = FUSION_MATLAB_QL()
#interval = TimeInterval(granule, granule+timedelta(minutes=0))
satellite
=
'
snpp
'
#satellite = 'jpss1'
#satellite = 'aqua'
version
=
'
1.0dev
5
'
# base VIIRS level-1b
version
=
'
1.0dev
7
'
# base VIIRS level-1b
def
local_execute_example
(
interval
,
satellite
,
version
,
skip_prepare
=
False
,
skip_execute
=
False
,
verbosity
=
2
):
...
...
@@ -31,6 +32,8 @@ def local_execute_example(interval, satellite, version, skip_prepare=False, skip
if
satellite
==
'
snpp
'
:
LOG
.
info
(
"
We are doing NPP...
"
)
if
satellite
==
'
jpss1
'
:
LOG
.
info
(
"
We are doing JPSS-1 / NOAA-20...
"
)
elif
satellite
==
'
aqua
'
:
LOG
.
info
(
"
We are doing AQUA...
"
)
else
:
...
...
This diff is collapsed.
Click to expand it.
source/flo/__init__.py
+
5
−
1
View file @
c76ce32a
...
...
@@ -92,7 +92,7 @@ class FUSION_MATLAB(Computation):
def
find_contexts
(
self
,
time_interval
,
satellite
,
version
):
'''
Here we assume that the granule boundaries fall along 6-minute (snpp/jpss1) or
Here we assume that the granule boundaries fall along 6-minute (snpp/jpss1) or
5-minute (aqua) increments, starting at the top of the hour:
SNPP: [0., 6., 12., 18., 24., 30., 36., 42., 48., 54.]
...
...
@@ -1158,12 +1158,16 @@ class FUSION_MATLAB_QL(Computation):
geo_keys
=
[
key
for
key
in
inputs
.
keys
()
if
'
geo
'
in
key
]
geo_inputs
=
{
key
:
inputs
[
key
]
for
key
in
geo_keys
}
symlink_inputs_to_working_dir
(
geo_inputs
)
for
geo_file
in
glob
(
'
VJ103*.nc
'
):
shutil
.
move
(
geo_file
,
geo_file
.
replace
(
'
VJ103
'
,
'
VNP03
'
))
os
.
chdir
(
current_dir
)
os
.
chdir
(
fsn_dir
)
fsn_keys
=
[
key
for
key
in
inputs
.
keys
()
if
'
l1b
'
in
key
]
fsn_inputs
=
{
key
:
inputs
[
key
]
for
key
in
fsn_keys
}
symlink_inputs_to_working_dir
(
fsn_inputs
)
for
geo_file
in
glob
(
'
VJ102*.nc
'
):
shutil
.
move
(
geo_file
,
geo_file
.
replace
(
'
VJ102
'
,
'
VNP02
'
))
os
.
chdir
(
current_dir
)
# Setup the require keyword arguments for the fusion_matlab package
...
...
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