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
23217b27
Commit
23217b27
authored
4 months ago
by
Paolo Veglio
Browse files
Options
Downloads
Patches
Plain Diff
added exception for ncgen to use system default if it exists
parent
226fec16
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#55656
failed with stages
Stage: .pre
Stage: test
in 13 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mvcm/c_tools/include/ancillary.h
+2
-0
2 additions, 0 deletions
mvcm/c_tools/include/ancillary.h
mvcm/write_output.py
+11
-2
11 additions, 2 deletions
mvcm/write_output.py
with
13 additions
and
2 deletions
mvcm/c_tools/include/ancillary.h
+
2
−
0
View file @
23217b27
...
...
@@ -21,6 +21,7 @@ float *g_phis;
float
*
g_tpw1
;
float
*
g_tpw2
;
float
*
g_lst
;
float
*
g_sst
;
float
*
ti_sfct
;
float
*
ti_tpw
;
int
nwp_rows
;
...
...
@@ -30,6 +31,7 @@ long int nwp_cells;
// Ancillary data for entire granule.
struct
granule_ancillary
{
float
*
reynSST
;
float
*
geos_sst
;
float
*
ndvibk
;
unsigned
char
*
eco
;
float
*
sfct
;
...
...
This diff is collapsed.
Click to expand it.
mvcm/write_output.py
+
11
−
2
View file @
23217b27
"""
Write the output data in a netcdf file.
"""
import
logging
from
os.path
import
basename
from
os.path
import
basename
,
isfile
from
subprocess
import
run
import
numpy
as
np
...
...
@@ -364,7 +364,16 @@ def run_mvcm(
ndvi_fname
=
file_names
[
"
NDVI
"
]
anc_dir
=
file_names
[
"
ANC_DIR
"
]
cmd_ncgen
=
[
f
"
{
exe_path
}
/ncgen
"
,
"
-b
"
,
f
"
{
exe_path
}
/mvcm_snpp_viirs.cdl
"
,
"
-o
"
,
f
"
{
out_file
}
"
]
if
isfile
(
"
/opt/netcdf4/4.8.1-gcc-11.2/bin/ncgen
"
):
cmd_ncgen
=
[
"
ncgen
"
,
"
-b
"
,
f
"
{
exe_path
}
/mvcm_snpp_viirs.cdl
"
,
"
-o
"
,
f
"
{
out_file
}
"
]
else
:
cmd_ncgen
=
[
f
"
{
exe_path
}
/ncgen
"
,
"
-b
"
,
f
"
{
exe_path
}
/mvcm_snpp_viirs.cdl
"
,
"
-o
"
,
f
"
{
out_file
}
"
,
]
cmd_mvcm
=
[
f
"
{
mvcm_exe
}
"
,
"
-sat
"
,
...
...
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