Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
3fb1875c
Commit
3fb1875c
authored
Oct 19, 2015
by
Uwe Schulzweida
Browse files
renamed percentiles.c to percentiles_hist.c
parent
e157b541
Changes
13
Hide whitespace changes
Inline
Side-by-side
.gitattributes
View file @
3fb1875c
...
...
@@ -628,8 +628,8 @@ src/nth_element.h -text
src/operator_help.h -text
src/par_io.c -text
src/par_io.h -text
src/percentiles.c -text
src/percentiles.h -text
src/percentiles
_hist
.c -text
src/percentiles
_hist
.h -text
src/pipe.c -text
src/pipe.h -text
src/pragma_omp_atomic_update.h -text
...
...
src/Makefile.am
View file @
3fb1875c
...
...
@@ -90,8 +90,8 @@ libcdo_la_SOURCES = \
operator_help.h
\
par_io.c
\
par_io.h
\
percentiles.c
\
percentiles.h
\
percentiles
_hist
.c
\
percentiles
_hist
.h
\
pipe.c
\
pipe.h
\
pragma_omp_atomic_update.h
\
...
...
src/Makefile.in
View file @
3fb1875c
...
...
@@ -147,7 +147,7 @@ am_libcdo_la_OBJECTS = libcdo_la-cdo_pthread.lo libcdo_la-cdo_vlist.lo \
libcdo_la-merge_sort2.lo libcdo_la-modules.lo \
libcdo_la-namelist.lo libcdo_la-normal.lo \
libcdo_la-nth_element.lo libcdo_la-par_io.lo \
libcdo_la-percentiles.lo libcdo_la-pipe.lo \
libcdo_la-percentiles
_hist
.lo libcdo_la-pipe.lo \
libcdo_la-process.lo libcdo_la-pstream.lo \
libcdo_la-pthread_debug.lo libcdo_la-readline.lo \
libcdo_la-realtime.lo libcdo_la-remaplib.lo \
...
...
@@ -573,25 +573,25 @@ libcdo_la_SOURCES = cdo_int.h compare.h cdo_pthread.c cdo_vlist.c \
grid_search.c grid_search.h kvlist.c kvlist.h list.c list.h \
merge_sort2.c merge_sort2.h modules.c modules.h namelist.c \
namelist.h normal.c nth_element.c nth_element.h \
operator_help.h par_io.c par_io.h percentiles
.c percentiles.h
\
pipe.c pipe.h pragma_omp_atomic_update.h
printinfo.h process.c
\
pr
ocess.h pstream.c pstream
.h pstream
_write.h
pstream
_int
.h \
pt
h
rea
d_debug.c pthread_debug.h readline.c realtime.c remap
.h \
re
maplib.c remapsort.c remap_scrip_io.c remap_search_reg2d
.c \
remap_s
earch_latbins.c remap_store_link.c remap_store_link.h
\
remap_store_link
_cnsrv.c
remap_store_link_cnsrv.
h
\
remap_conserv.c remap_conserv_scrip.c
remap_distwgt.c
\
remap_bicubic_scrip.c remap_bilinear_scrip.c
stdnametable.c
\
stdnametable.h specspace.c specspace.h
statistic.c statistic.h
\
table.c text.c text.h timebase.h
timer.c userlog.c util.c
\
util.h zaxis.c kdtreelib/kdtree.h
kdtreelib/kdtree_cartesian.c
\
kdtreelib/kdtree_c
ommo
n.c kdtreelib/kdtree_
spherical
.c \
kdtreelib/
pmergesort.c kdtreelib/pqueue
.c kdtreelib/p
queue.h
\
clipping/clipping.c clipping/clipping
.h clipping/
area
.c \
clipping/area.
h
clipping/
ensure_array_size.c
\
clipping/ensure_array_size.
h
clipping/
geometry
.h \
clipping/grid.h clipping/points.h
clipping/dep_list.h
\
clipping/grid_cell.c clipping/grid_cell.h \
operator_help.h par_io.c par_io.h percentiles
_hist.c
\
percentiles_hist.h
pipe.c pipe.h pragma_omp_atomic_update.h \
pr
intinfo.h process.c process
.h pstream
.c
pstream.h \
p
s
trea
m_write.h pstream_int.h pthread_debug.c pthread_debug
.h \
re
adline.c realtime.c remap.h remaplib.c remapsort
.c \
remap_s
crip_io.c remap_search_reg2d.c remap_search_latbins.c
\
remap_store_link
.c remap_store_link.h
remap_store_link_cnsrv.
c
\
remap_store_link_cnsrv.h
remap_conserv.c remap_conserv_scrip.c \
remap_distwgt.c
remap_bicubic_scrip.c remap_bilinear_scrip.c \
stdnametable.c
stdnametable.h specspace.c specspace.h \
statistic.c statistic.h
table.c text.c text.h timebase.h \
timer.c userlog.c util.c
util.h zaxis.c kdtreelib/kdtree.h \
kdtreelib/kdtree_c
artesia
n.c kdtreelib/kdtree_
common
.c \
kdtreelib/
kdtree_spherical
.c kdtreelib/p
mergesort.c
\
kdtreelib/pqueue.c kdtreelib/pqueue
.h clipping/
clipping
.c \
clipping/clipping.h
clipping/area.
c
clipping/
area.h
\
clipping/ensure_array_size.
c
clipping/
ensure_array_size
.h \
clipping/geometry.h
clipping/grid.h clipping/points.h \
clipping/dep_list.h
clipping/grid_cell.c clipping/grid_cell.h \
clipping/intersection.c clipping/utils.c clipping/utils.h
#
cdo_SOURCES = cdo.c Adisit.c Afterburner.c Arith.c Arithc.c \
...
...
@@ -1064,7 +1064,7 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdo_la-normal.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdo_la-nth_element.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdo_la-par_io.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdo_la-percentiles.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdo_la-percentiles
_hist
.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdo_la-pipe.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdo_la-process.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcdo_la-pstream.Plo@am__quote@
...
...
@@ -1492,12 +1492,12 @@ libcdo_la-par_io.lo: par_io.c
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcdo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcdo_la-par_io.lo `test -f 'par_io.c' || echo '$(srcdir)/'`par_io.c
libcdo_la-percentiles.lo: percentiles.c
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcdo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libcdo_la-percentiles.lo -MD -MP -MF $(DEPDIR)/libcdo_la-percentiles.Tpo -c -o libcdo_la-percentiles.lo `test -f 'percentiles.c' || echo '$(srcdir)/'`percentiles.c
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcdo_la-percentiles.Tpo $(DEPDIR)/libcdo_la-percentiles.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='percentiles.c' object='libcdo_la-percentiles.lo' libtool=yes @AMDEPBACKSLASH@
libcdo_la-percentiles
_hist
.lo: percentiles
_hist
.c
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcdo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libcdo_la-percentiles
_hist
.lo -MD -MP -MF $(DEPDIR)/libcdo_la-percentiles
_hist
.Tpo -c -o libcdo_la-percentiles
_hist
.lo `test -f 'percentiles
_hist
.c' || echo '$(srcdir)/'`percentiles
_hist
.c
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcdo_la-percentiles
_hist
.Tpo $(DEPDIR)/libcdo_la-percentiles
_hist
.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='percentiles
_hist
.c' object='libcdo_la-percentiles
_hist
.lo' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcdo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcdo_la-percentiles.lo `test -f 'percentiles.c' || echo '$(srcdir)/'`percentiles.c
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcdo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libcdo_la-percentiles
_hist
.lo `test -f 'percentiles
_hist
.c' || echo '$(srcdir)/'`percentiles
_hist
.c
libcdo_la-pipe.lo: pipe.c
@am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libcdo_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libcdo_la-pipe.lo -MD -MP -MF $(DEPDIR)/libcdo_la-pipe.Tpo -c -o libcdo_la-pipe.lo `test -f 'pipe.c' || echo '$(srcdir)/'`pipe.c
...
...
src/Seaspctl.c
View file @
3fb1875c
...
...
@@ -26,7 +26,7 @@
#include
"cdo.h"
#include
"cdo_int.h"
#include
"pstream.h"
#include
"percentiles.h"
#include
"percentiles
_hist
.h"
#include
"util.h"
...
...
src/Timpctl.c
View file @
3fb1875c
...
...
@@ -30,7 +30,7 @@
#include
"cdo.h"
#include
"cdo_int.h"
#include
"pstream.h"
#include
"percentiles.h"
#include
"percentiles
_hist
.h"
static
...
...
src/Timselpctl.c
View file @
3fb1875c
...
...
@@ -26,7 +26,7 @@
#include
"cdo.h"
#include
"cdo_int.h"
#include
"pstream.h"
#include
"percentiles.h"
#include
"percentiles
_hist
.h"
void
*
Timselpctl
(
void
*
argument
)
...
...
src/Ydaypctl.c
View file @
3fb1875c
...
...
@@ -26,7 +26,7 @@
#include
"cdo.h"
#include
"cdo_int.h"
#include
"pstream.h"
#include
"percentiles.h"
#include
"percentiles
_hist
.h"
#define NDAY 373
...
...
src/Ydrunpctl.c
View file @
3fb1875c
...
...
@@ -25,7 +25,7 @@
#include
"cdo.h"
#include
"cdo_int.h"
#include
"pstream.h"
#include
"percentiles.h"
#include
"percentiles
_hist
.h"
#define NDAY 373
...
...
src/Ymonpctl.c
View file @
3fb1875c
...
...
@@ -25,7 +25,7 @@
#include
"cdo.h"
#include
"cdo_int.h"
#include
"pstream.h"
#include
"percentiles.h"
#include
"percentiles
_hist
.h"
#define NMONTH 17
...
...
src/Yseaspctl.c
View file @
3fb1875c
...
...
@@ -25,7 +25,7 @@
#include
"cdo.h"
#include
"cdo_int.h"
#include
"pstream.h"
#include
"percentiles.h"
#include
"percentiles
_hist
.h"
#include
"util.h"
#define NSEAS 4
...
...
src/nth_element.c
View file @
3fb1875c
...
...
@@ -45,12 +45,9 @@ double nth_element(double *array, int length, int n)
m
=
(
k
+
l
)
>>
1
;
SWAP
(
array
[
m
],
array
[
k
+
1
]);
if
(
array
[
k
]
>
array
[
l
]
)
SWAP
(
array
[
k
],
array
[
l
])
if
(
array
[
k
+
1
]
>
array
[
l
]
)
SWAP
(
array
[
k
+
1
],
array
[
l
])
if
(
array
[
k
]
>
array
[
k
+
1
]
)
SWAP
(
array
[
k
],
array
[
k
+
1
])
if
(
array
[
k
]
>
array
[
l
]
)
SWAP
(
array
[
k
],
array
[
l
])
if
(
array
[
k
+
1
]
>
array
[
l
]
)
SWAP
(
array
[
k
+
1
],
array
[
l
])
if
(
array
[
k
]
>
array
[
k
+
1
]
)
SWAP
(
array
[
k
],
array
[
k
+
1
])
i
=
k
+
1
;
j
=
l
;
...
...
src/percentiles.c
→
src/percentiles
_hist
.c
View file @
3fb1875c
...
...
@@ -23,7 +23,7 @@
#include
"cdo.h"
#include
"cdo_int.h"
#include
"nth_element.h"
#include
"percentiles.h"
#include
"percentiles
_hist
.h"
#define NBINS_DEFAULT 101
#define NBINS_MINIMUM 11
...
...
src/percentiles.h
→
src/percentiles
_hist
.h
View file @
3fb1875c
...
...
@@ -15,8 +15,8 @@
GNU General Public License for more details.
*/
#ifndef PERCENTILES_H_
#define PERCENTILES_H_
#ifndef PERCENTILES_
HIST_
H_
#define PERCENTILES_
HIST_
H_
#include
"field.h"
...
...
@@ -47,4 +47,4 @@ void hsetDefVarLevelBounds(HISTOGRAM_SET *hset, int varID, int levelID, const fi
void
hsetAddVarLevelValues
(
HISTOGRAM_SET
*
histField
,
int
varID
,
int
levelID
,
const
field_t
*
field
);
void
hsetGetVarLevelPercentiles
(
field_t
*
field
,
const
HISTOGRAM_SET
*
hset
,
int
varID
,
int
levelID
,
double
pn
);
#endif
/*PERCENTILES_H
_
*/
#endif
/*
PERCENTILES_H
IST_H_
*/
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment