Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MVCM
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
Paolo Veglio
MVCM
Commits
38199ebc
Commit
38199ebc
authored
2 years ago
by
Paolo Veglio
Browse files
Options
Downloads
Patches
Plain Diff
hires module works well in Ocean_Day conditions. moving development back to core
parent
09ec38da
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ancillary.c
+376
-376
376 additions, 376 deletions
ancillary.c
ancillary.pyx
+27
-0
27 additions, 0 deletions
ancillary.pyx
hires_module.py
+3
-3
3 additions, 3 deletions
hires_module.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
407 additions
and
380 deletions
ancillary.c
+
376
−
376
View file @
38199ebc
This diff is collapsed.
Click to expand it.
ancillary.pyx
+
27
−
0
View file @
38199ebc
...
...
@@ -10,6 +10,7 @@ cdef extern void snow_mask(char *, unsigned char)
cdef
extern
float
cithr
(
int
,
float
,
float
)
cdef
extern
void
check_reg_uniformity
(
int
,
int
,
int
,
int
,
int
,
unsigned
char
,
unsigned
char
*
,
float
*
,
float
*
,
unsigned
char
*
,
int
*
,
int
*
,
int
*
,
int
*
)
#cdef extern int get_b1_thresholds(float *, float *, float *, float *)
import
cython
from
cython.view
cimport
array
as
cvarray
...
...
@@ -176,3 +177,29 @@ def py_check_reg_uniformity(np.ndarray[unsigned char, ndim=2] eco_type, np.ndarr
return
scene_uniformity
#@cython.boundscheck(False)
#@cython.wraparound(False)
#@cython.initializedcheck(False)
#def py_get_b1_thresholds(np.ndarray[float, ndim=2] locut, np.ndarray[float, ndim=2] midpt,
# np.ndarray[float, ndim=2] hicut, np.ndarray[float, ndim=2] power):
#
# cdef int i, j
#
# cdef np.ndarray_locut_r = np.zeros((), order='C', dtype=np.float32)
#
# cdef float[:, ::1] locut_mv = locut
# cdef float[:, ::1] midpt_mv = midpt
# cdef float[:, ::1] hicut_mv = hicut
# cdef float[:, ::1] power_mv = power
# lines = 0
# eles = 0
#
# for i in range(lines):
# for j in range(eles):
#
# get_b1_thresholds(&locut[0, 0], &midpt[0, 0], &hicut[0, 0], &power[0, 0])
#
# locut_mv[i][j] = locut
# midpt_mv[i][j] = midpt
# hicut_mv[i][j] = hicut
# power_mv[i][j] = power
This diff is collapsed.
Click to expand it.
hires_module.py
+
3
−
3
View file @
38199ebc
...
...
@@ -183,9 +183,9 @@ def main(*,
longitude
=
([
'
number_of_lines
'
,
'
number_of_pixels
'
],
viirs_data
.
longitude
.
values
),
)
)
#
out_xr.to_netcdf(f'hires_MVCM.{date}.{time}.nc')
out_xr
.
to_netcdf
(
out_fname
)
out_path
=
'
/ships19/hercules/pveglio/mvcm_viirs_hires/outputs
'
out_xr
.
to_netcdf
(
f
'
{
out_path
}
/
hires_MVCM.
{
date
}
.
{
time
}
.nc
'
)
#
out_xr.to_netcdf(out_fname)
# # np.savez(f'{data_path}/pyMVCM_{date}.{time}',
# np.savez(f'{data_path}/outputs/pyMVCM_{date}.{time}',
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
38199ebc
...
...
@@ -31,7 +31,7 @@ include_dirs = ['include',
numpy
.
get_include
(),
]
library_dirs
=
[
'
/opt/hdfeos2/2.20-gcc-8.3/lib
'
,
'
/opt/netcdf4/4.7.0
f
cc-8.3/lib
'
]
'
/opt/netcdf4/4.7.0
-g
cc-8.3/lib
'
]
extensions
=
[
Extension
(
'
ancillary_data
'
,
sourcefiles
,
include_dirs
=
include_dirs
,
...
...
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