Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MVCM
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
Paolo Veglio
MVCM
Commits
cdc43656
Commit
cdc43656
authored
6 months ago
by
Paolo Veglio
Browse files
Options
Downloads
Patches
Plain Diff
added more logging info
parent
441b37a6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mvcm/read_data.py
+8
-0
8 additions, 0 deletions
mvcm/read_data.py
with
8 additions
and
0 deletions
mvcm/read_data.py
+
8
−
0
View file @
cdc43656
...
...
@@ -748,19 +748,27 @@ def get_data(
sst_file
=
file_names
[
"
SST
"
],
eco_file
=
file_names
[
"
ECO
"
],
)
logger
.
info
(
"
Ancillary data read successfully
"
)
viirs_data
.
update
(
ancillary
.
pack_data
())
logger
.
info
(
"
Ancillary data added to the dataset
"
)
scene_flags
=
scn
.
find_scene
(
viirs_data
,
geo_data
.
sunglint_angle
.
values
,
thresholds
[
"
Snow_Mask
"
]
)
logger
.
info
(
"
Scene flags created successfully
"
)
scene
=
scn
.
scene_id
(
scene_flags
)
logger
.
info
(
"
Scene IDs processed successfully
"
)
scene_xr
=
xr
.
Dataset
()
for
s
in
scn
.
_scene_list
:
scene_xr
[
s
]
=
((
"
number_of_lines
"
,
"
number_of_pixels
"
),
scene
[
s
])
logger
.
info
(
"
scene coordinates created successfully
"
)
input_data
=
xr
.
Dataset
(
viirs_data
,
coords
=
scene_xr
)
input_data
.
drop_vars
([
"
latitude
"
,
"
longitude
"
])
logger
.
info
(
"
get_data() ran successfully
"
)
return
input_data
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