Cosmetics

This commit is contained in:
shahramn 2024-11-15 13:40:57 +00:00
parent b37ced3950
commit 7d1f7f8920
5 changed files with 2 additions and 19 deletions

View File

@ -213,7 +213,7 @@ void grib_accessor_expanded_descriptors_t::__expand(bufr_descriptors_array* unex
Assert( uidx->F == 1 );
Assert( uidx->Y == 0 );
// ECC-1958 and ECC-1054:
// Here size can exceed 63 (num bits in X is 6)
// Here X is used to store the size which can exceed 63. The normal X is 6 bits wide so max=63
// We need to set X but not the descriptor code
uidx->X = (int)(size - 1);
if (size < 64)

View File

@ -799,17 +799,6 @@ grib_expression* new_sub_string_expression(grib_context* c, const char* value, s
//int grib_nearest_get_radius(grib_handle* h, double* radiusInKm);
//void grib_binary_search(const double xx[], const size_t n, double x, size_t* ju, size_t* jl);
//int grib_nearest_find_multiple(const grib_handle* h, int is_lsm, const double* inlats, const double* inlons, long npoints, double* outlats, double* outlons, double* values, double* distances, int* indexes);
//int grib_nearest_find_generic(grib_nearest* nearest, grib_handle* h, double inlat, double inlon, unsigned long flags,
// const char* values_keyname,
// double** out_lats,
// int* out_lats_count,
// double** out_lons,
// int* out_lons_count,
// double** out_distances,
// double* outlats, double* outlons, double* values, double* distances, int* indexes, size_t* len);
/* grib_nearest_class.cc */
//eccodes::geo_nearest::Nearest* grib_nearest_factory(grib_handle* h, grib_arguments* args, int* error);
/* grib_iterator.cc */
int grib_get_data(const grib_handle* h, double* lats, double* lons, double* values);

View File

@ -227,9 +227,7 @@ int LatlonReduced::find_global(grib_handle* h,
if (!distances_)
return GRIB_OUT_OF_MEMORY;
//void grib_binary_search(const double xx[], const size_t n, double x, size_t* ju, size_t* jl)
grib_binary_search(lats_, ilat - 1, inlat,
&(j_[0]), &(j_[1]));
grib_binary_search(lats_, ilat - 1, inlat, &(j_[0]), &(j_[1]));
nlon = 0;
for (jj = 0; jj < j_[0]; jj++)

View File

@ -36,14 +36,12 @@ int Mercator::find(grib_handle* h,
{
return grib_nearest_find_generic(
h, inlat, inlon, flags, /* inputs */
values_key_, /* outputs to set the 'self' object */
&(lats_),
&(lats_count_),
&(lons_),
&(lons_count_),
&(distances_),
outlats, outlons, /* outputs of the find function */
values, distances, indexes, len);
}

View File

@ -36,14 +36,12 @@ int PolarStereographic::find(grib_handle* h,
{
return grib_nearest_find_generic(
h, inlat, inlon, flags, /* inputs */
values_key_, /* outputs to set the 'self' object */
&(lats_),
&(lats_count_),
&(lons_),
&(lons_count_),
&(distances_),
outlats, outlons, /* outputs of the find function */
values, distances, indexes, len);
}