This commit is contained in:
shahramn 2024-04-04 14:02:50 +01:00
parent 637f8aaae8
commit ebc396fa87
1 changed files with 114 additions and 542 deletions

View File

@ -36,14 +36,6 @@ grib_action* grib_action_create_if(grib_context* context, grib_expression* expre
grib_action* grib_action_create_switch(grib_context* context, grib_arguments* args, grib_case* Case, grib_action* Default);
grib_case* grib_case_new(grib_context* c, grib_arguments* values, grib_action* action);
/* grib_accessor_class_g1fcperiod.cc */
/* grib_accessor_class_g1end_of_interval_monthly.cc */
/* grib_accessor_class_mars_param.cc */
/* action_class_section.cc */
/* action_class_list.cc */
grib_action* grib_action_create_list(grib_context* context, const char* name, grib_expression* expression, grib_action* block);
@ -251,16 +243,6 @@ grib_viarray* grib_viarray_push(grib_context* c, grib_viarray* v, grib_iarray* v
void grib_viarray_delete(grib_context* c, grib_viarray* v);
void grib_viarray_delete_content(grib_context* c, grib_viarray* v);
/* grib_accessor_class_ascii.cc*/
/* grib_accessor_class_bit.cc*/
/* grib_accessor_class_bitmap.cc*/
/* grib_accessor_class_bits.cc*/
/* grib_accessor_class_bits_per_value.cc*/
/* grib_accessor_class_bufr_data_array.cc */
grib_vsarray* accessor_bufr_data_array_get_stringValues(grib_accessor* a);
grib_accessors_list* accessor_bufr_data_array_get_dataAccessors(grib_accessor* a);
@ -282,42 +264,6 @@ void accessor_bufr_data_element_set_elementsDescriptorsIndex(grib_accessor* a, g
int bufr_descriptor_is_marker(bufr_descriptor* d);
bufr_descriptor* accessor_bufr_elements_table_get_descriptor(grib_accessor* a, int code, int* err);
/* grib_accessor_class_bufr_group.cc*/
/* grib_accessor_class_bufr_string_values.cc*/
/* grib_accessor_class_pack_bufr_values.cc*/
/* grib_accessor_class_bufr_extract_area_subsets.cc*/
/* grib_accessor_class_bufr_extract_datetime_subsets.cc*/
/* grib_accessor_class_group.cc*/
/* grib_accessor_class_unpack_bufr_values.cc*/
/* grib_accessor_class_non_alpha.cc*/
/* grib_accessor_class_g1bitmap.cc*/
/* grib_accessor_class_g2bitmap.cc*/
/* grib_accessor_class_concept.cc*/
/* grib_accessor_class_hash_array.cc*/
/* grib_accessor_class_decimal_precision.cc*/
/* grib_accessor_class_divdouble.cc*/
/* grib_accessor_class_budgdate.cc*/
/* grib_accessor_class_validity_date.cc*/
/* grib_accessor_class_validity_time.cc*/
/* grib_accessor_class_bytes.cc*/
/* grib_accessor_class.cc */
grib_section* grib_create_root_section(const grib_context* context, grib_handle* h);
grib_accessor* grib_accessor_factory(grib_section* p, grib_action* creator, const long len, grib_arguments* params);
@ -328,298 +274,34 @@ int grib_get_block_length(grib_section* s, size_t* l);
grib_accessor* find_paddings(grib_section* s);
void grib_update_paddings(grib_section* s);
/* grib_accessor_class_change_scanning_direction.cc*/
/* grib_accessor_class_change_scanning_direction.cc*/
/* grib_accessor_class_check_internal_version.cc*/
/* grib_accessor_class_codeflag.cc*/
/* grib_accessor_class_smart_table.cc */
void grib_smart_table_delete(grib_context* c);
/* grib_accessor_class_smart_table_column.cc*/
/* grib_accessor_class_codetable.cc */
void grib_codetable_delete(grib_context* c);
int codes_codetable_get_contents_malloc(const grib_handle* h, const char* key, code_table_entry** entries, size_t* num_entries);
int codes_codetable_check_code_figure(const grib_handle* h, const char* key, long code_figure);
int codes_codetable_check_abbreviation(const grib_handle* h, const char* key, const char* abbreviation);
/* grib_accessor_class_codetable_units.cc*/
/* grib_accessor_class_codetable_title.cc*/
/* grib_accessor_class_count_file.cc*/
/* grib_accessor_class_count_total.cc*/
/* grib_accessor_class_double.cc*/
/* grib_accessor_class_element.cc*/
/* grib_accessor_class_evaluate.cc*/
/* grib_accessor_class_g1date.cc*/
/* grib_accessor_class_g1monthlydate.cc*/
/* grib_accessor_class_library_version.cc*/
/* grib_accessor_class_when.cc*/
/* grib_accessor_class_g1verificationdate.cc*/
/* grib_accessor_class_g1day_of_the_year_date.cc*/
/* grib_accessor_class_g1_half_byte_codeflag.cc*/
/* grib_accessor_class_g1forecastmonth.cc*/
/* grib_accessor_class_g1step_range.cc */
int grib_g1_step_get_steps(grib_accessor* a, long* start, long* theEnd);
/* grib_accessor_class_g2step_range.cc*/
/* grib_accessor_class_data_g22order_packing.cc*/
/* grib_accessor_class_mars_step.cc*/
/* grib_accessor_class_message_copy.cc*/
/* grib_accessor_class_dictionary.cc*/
/* grib_accessor_class_latlon_increment.cc*/
/* grib_accessor_class_g2date.cc*/
/* grib_accessor_class_g2level.cc*/
/* grib_accessor_class_g2end_step.cc*/
/* grib_accessor_class_g2latlon.cc*/
/* grib_accessor_class_g2lon.cc*/
/* grib_accessor_class_global_gaussian.cc*/
/* grib_accessor_class_gaussian_grid_name.cc*/
/* grib_accessor_class_gen.cc*/
/* grib_accessor_class_gts_header.cc*/
/* grib_accessor_class_ifs_param.cc*/
/* grib_accessor_class_uint16.cc*/
/* grib_accessor_class_uint32.cc*/
/* grib_accessor_class_uint32_little_endian.cc*/
/* grib_accessor_class_uint64.cc*/
/* grib_accessor_class_uint64_little_endian.cc*/
/* grib_accessor_class_uint8.cc*/
/* grib_accessor_class_blob.cc*/
/* grib_accessor_class_julian_day.cc*/
/* grib_accessor_class_julian_date.cc*/
/* grib_accessor_class_latlonvalues.cc*/
/* grib_accessor_class_latitudes.cc*/
/* grib_accessor_class_longitudes.cc*/
/* grib_accessor_class_octahedral_gaussian.cc*/
/* grib_accessor_class_offset_file.cc*/
/* grib_accessor_class_scale.cc*/
/* grib_accessor_class_rdbtime_guess_date.cc*/
/* grib_accessor_class_from_scale_factor_scaled_value.cc*/
/* grib_accessor_class_g2bitmap_present.cc*/
/* grib_accessor_class_ibmfloat.cc*/
/* grib_accessor_class_ieeefloat.cc*/
/* grib_accessor_class_constant.cc*/
/* grib_accessor_class_iterator.cc */
grib_iterator* grib_iterator_new(const grib_handle* h, unsigned long flags, int* error);
/* grib_accessor_class_message.cc*/
/* grib_accessor_class_nearest.cc */
grib_nearest* grib_nearest_new(const grib_handle* h, int* error);
/* grib_accessor_class_ksec1expver.cc*/
/* grib_accessor_class_label.cc*/
/* grib_accessor_class_long.cc*/
/* grib_accessor_class_lookup.cc*/
/* grib_accessor_class_octet_number.cc*/
/* grib_accessor_class_headers_only.cc*/
/* grib_accessor_class_padding.cc*/
/* grib_accessor_class_pad.cc*/
/* grib_accessor_class_padto.cc*/
/* grib_accessor_class_padtoeven.cc*/
/* grib_accessor_class_padtomultiple.cc*/
/* grib_accessor_class_section_padding.cc*/
/* grib_accessor_class_section_pointer.cc*/
/* grib_accessor_class_position.cc*/
/* grib_accessor_class_signed.cc*/
/* grib_accessor_class_signed_bits.cc*/
/* grib_accessor_class_section.cc*/
/* grib_accessor_class_step_in_units.cc*/
/* grib_accessor_class_section_length.cc*/
/* grib_accessor_class_g1_message_length.cc */
int grib_get_g1_message_size(grib_handle* h, grib_accessor* tl, grib_accessor* s4, long* total_length, long* sec4_len);
/* grib_accessor_class_g1_section4_length.cc*/
/* grib_accessor_class_size.cc*/
/* grib_accessor_class_scale_values.cc*/
/* grib_accessor_class_offset_values.cc*/
/* grib_accessor_class_sprintf.cc*/
/* grib_accessor_class_getenv.cc*/
/* grib_accessor_class_round.cc*/
/* grib_accessor_class_spectral_truncation.cc*/
/* grib_accessor_class_time.cc*/
/* grib_accessor_class_transient.cc*/
/* grib_accessor_class_values.cc*/
/* grib_accessor_class_simple_packing_error.cc*/
/* grib_accessor_class_data_simple_packing.cc*/
/* grib_accessor_class_data_ccsds_packing.cc*/
/* grib_accessor_class_count_missing.cc*/
/* grib_accessor_class_data_sh_packed.cc*/
/* grib_accessor_class_data_sh_unpacked.cc*/
/* grib_accessor_class_number_of_values_data_raw_packing.cc*/
/* grib_accessor_class_data_g1simple_packing.cc*/
/* grib_accessor_class_data_g1shsimple_packing.cc*/
/* grib_accessor_class_data_shsimple_packing.cc*/
/* grib_accessor_class_data_dummy_field.cc*/
/* grib_accessor_class_variable.cc */
void accessor_variable_set_type(grib_accessor* a, int type);
/* grib_accessor_class_second_order_bits_per_value.cc*/
/* grib_accessor_class_data_g2simple_packing.cc*/
/* grib_accessor_class_data_g2simple_packing_with_preprocessing.cc*/
/* grib_accessor_class_data_g2shsimple_packing.cc*/
/* grib_accessor_class_data_g2complex_packing.cc*/
/* grib_accessor_class_data_g1second_order_row_by_row_packing.cc*/
/* grib_accessor_class_data_g1second_order_constant_width_packing.cc*/
/* grib_accessor_class_data_g1second_order_general_packing.cc*/
/* grib_accessor_class_data_g1second_order_general_extended_packing.cc*/
/* grib_accessor_class_g2grid.cc*/
/* grib_accessor_class_unexpanded_descriptors.cc*/
/* grib_accessor_class_expanded_descriptors.cc */
int grib_accessor_class_expanded_descriptors_set_do_expand(grib_accessor* a, long do_expand);
bufr_descriptors_array* grib_accessor_class_expanded_descriptors_get_expanded(grib_accessor* a, int* err);
/* grib_accessor_class_bufrdc_expanded_descriptors.cc*/
/* grib_accessor_class_data_apply_bitmap.cc*/
/* grib_accessor_class_data_apply_boustrophedonic.cc*/
/* grib_accessor_class_data_apply_boustrophedonic_bitmap.cc*/
/* grib_accessor_class_data_secondary_bitmap.cc*/
/* grib_accessor_class_data_g1secondary_bitmap.cc*/
/* grib_accessor_class_data_g2secondary_bitmap.cc*/
/* grib_accessor_class_data_jpeg2000_packing.cc*/
/* grib_accessor_class_data_png_packing.cc*/
/* grib_accessor_class_data_raw_packing.cc*/
/* grib_accessor_class_data_complex_packing.cc*/
/* grib_accessor_class_data_g1complex_packing.cc*/
/* grib_accessor_class_gds_not_present_bitmap.cc*/
/* grib_accessor_class_gds_is_present.cc*/
/* grib_accessor_class_select_step_template.cc*/
/* grib_accessor_class_local_definition.cc*/
/* grib_accessor_class_g2_eps.cc*/
/* grib_accessor_class_g2_aerosol.cc*/
/* grib_accessor_class_g2_chemical.cc*/
/* grib_accessor_class_g2_mars_labeling.cc*/
/* grib_accessor_class_transient_darray.cc*/
/* grib_accessor_class_md5.cc*/
/* grib_jasper_encoding.cc */
int grib_jasper_decode(grib_context* c, unsigned char* buf, const size_t* buflen, double* values, const size_t* n_vals);
int grib_jasper_encode(grib_context* c, j2k_encode_helper* helper);
@ -631,10 +313,6 @@ int grib_openjpeg_encode(grib_context* c, j2k_encode_helper* helper);
/* action_class_set_missing.cc */
grib_action* grib_action_create_set_missing(grib_context* context, const char* name);
/* grib_accessor_class_number_of_points.cc*/
/* grib_accessor_class_suppressed.cc*/
/* grib_index.cc */
int grib_index_compress(grib_index* index);
grib_field_tree* grib_read_field_tree(grib_context* c, FILE* fh, grib_file** files, int* err);
@ -662,61 +340,19 @@ int codes_index_set_product_kind(grib_index* index, ProductKind product_kind);
int codes_index_set_unpack_bufr(grib_index* index, int unpack);
int is_index_file(const char* filename);
/* grib_accessor_class_number_of_points_gaussian.cc*/
/* grib_accessor_class_number_of_values.cc*/
/* grib_accessor_class_number_of_coded_values.cc*/
/* grib_accessor_class_g1number_of_coded_values_sh_complex.cc*/
/* grib_accessor_class_g1number_of_coded_values_sh_simple.cc*/
/* grib_accessor_class_dirty.cc*/
/* grib_accessor_class_statistics.cc*/
/* grib_accessor_class_statistics_spectral.cc*/
/* grib_accessor_class_unsigned.cc */
int pack_long_unsigned_helper(grib_accessor* a, const long* val, size_t* len, int check);
/* grib_accessor_class_unsigned_bits.cc*/
/* grib_accessor_class_raw.cc */
void accessor_raw_set_length(grib_accessor* a, size_t len);
long accessor_raw_get_offset(grib_accessor* a);
/* grib_accessor_class_bufr_extract_subsets.cc*/
/* grib_accessor_class_bufr_simple_thinning.cc*/
/* grib_accessor_class_spd.cc*/
/* grib_accessor_class_sum.cc*/
/* grib_accessor_class_to_integer.cc*/
/* grib_accessor_class_to_double.cc*/
/* grib_accessor_class_to_string.cc*/
/* grib_accessor_class_sexagesimal2decimal.cc*/
/* grib_accessor_class_vector.cc*/
/* grib_accessor_class_long_vector.cc*/
/* grib_gaussian_reduced.cc */
void grib_get_reduced_row_wrapper(grib_handle* h, long pl, double lon_first, double lon_last, long* npoints, long* ilon_first, long* ilon_last);
void grib_get_reduced_row_legacy(long pl, double lon_first, double lon_last, long* npoints, long* ilon_first, long* ilon_last);
void grib_get_reduced_row(long pl, double lon_first, double lon_last, long* npoints, long* ilon_first, long* ilon_last);
void grib_get_reduced_row_p(long pl, double lon_first, double lon_last, long* npoints, double* olon_first, double* olon_last);
/* grib_accessor_class_abstract_vector.cc*/
/* grib_accessor_class_abstract_long_vector.cc*/
/* grib_loader_from_handle.cc */
int grib_lookup_long_from_handle(grib_context* gc, grib_loader* loader, const char* name, long* value);
int grib_init_accessor_from_handle(grib_loader* loader, grib_accessor* ga, grib_arguments* default_value);
@ -767,8 +403,6 @@ double grib_long_to_ieee64(unsigned long x);
//int grib_ieee_decode_array_float(grib_context* c, unsigned char* buf, size_t nvals, int bytes, float* val);
int grib_ieee_encode_array(grib_context* c, double* val, size_t nvals, int bytes, unsigned char* buf);
/* grib_accessor_class_reference_value_error.cc*/
/* grib_memory.cc */
void* grib_transient_malloc(const grib_context* c, size_t s);
void* grib_transient_realloc(const grib_context* c, void* p, size_t s);
@ -806,36 +440,6 @@ void grib_dump_values(grib_dumper* d, grib_accessor* a);
void grib_dump_header(grib_dumper* d, const grib_handle* h);
void grib_dump_footer(grib_dumper* d, const grib_handle* h);
/* grib_dumper_class_serialize.cc*/
/* grib_dumper_class_debug.cc*/
/* grib_dumper_class_default.cc*/
/* grib_dumper_class_bufr_encode_C.cc*/
/* grib_dumper_class_bufr_encode_filter.cc*/
/* grib_dumper_class_bufr_encode_fortran.cc*/
/* grib_dumper_class_bufr_encode_python.cc*/
/* grib_dumper_class_bufr_decode_C.cc*/
/* grib_dumper_class_bufr_decode_filter.cc*/
/* grib_dumper_class_bufr_decode_fortran.cc*/
/* grib_dumper_class_bufr_decode_python.cc*/
/* grib_dumper_class_bufr_simple.cc*/
/* grib_dumper_class_json.cc*/
/* grib_dumper_class_grib_encode_C.cc*/
/* grib_dumper_class_wmo.cc*/
/* grib_dumper_class.cc */
grib_dumper* grib_dumper_factory(const char* op, const grib_handle* h, FILE* out, unsigned long option_flags, void* arg);
void grib_dump_accessors_block(grib_dumper* dumper, grib_block_of_accessors* block);
@ -1257,24 +861,6 @@ int grib_nearest_find_generic(grib_nearest* nearest, grib_handle* h, double inla
/* grib_nearest_class.cc */
grib_nearest* grib_nearest_factory(grib_handle* h, grib_arguments* args, int* error);
/* grib_nearest_class_gen.cc*/
/* grib_nearest_class_regular.cc*/
/* grib_nearest_class_reduced.cc*/
/* grib_nearest_class_latlon_reduced.cc*/
/* grib_nearest_class_lambert_conformal.cc*/
/* grib_nearest_class_polar_stereographic.cc*/
/* grib_iterator_class_polar_stereographic.cc*/
/* grib_iterator_class_lambert_azimuthal_equal_area.cc*/
/* grib_iterator_class_lambert_conformal.cc*/
/* grib_iterator.cc */
int grib_get_data(const grib_handle* h, double* lats, double* lons, double* values);
int grib_iterator_next(grib_iterator* i, double* lat, double* lon, double* value);
@ -1287,21 +873,9 @@ int grib_iterator_delete(grib_iterator* i);
/* grib_iterator_class.cc */
grib_iterator* grib_iterator_factory(grib_handle* h, grib_arguments* args, unsigned long flags, int* error);
/* grib_iterator_class_gaussian.cc*/
/* grib_iterator_class_gaussian_reduced.cc*/
/* grib_iterator_class_latlon_reduced.cc*/
/* grib_iterator_class_gen.cc */
int transform_iterator_data(grib_context* c, double* data, long iScansNegatively, long jScansPositively, long jPointsAreConsecutive, long alternativeRowScanning, size_t numPoints, long nx, long ny);
/* grib_iterator_class_latlon.cc*/
/* grib_iterator_class_regular.cc*/
/* grib_iterator_class_space_view.cc*/
/* grib_expression.cc */
int grib_expression_native_type(grib_handle* h, grib_expression* g);
int grib_expression_evaluate_long(grib_handle* h, grib_expression* g, long* result);
@ -1409,8 +983,6 @@ double grib_op_le_d(double a, double b);
FILE* codes_fopen(const char* name, const char* mode);
int codes_access(const char* name, int mode);
/* grib_accessor_class_data_g2bifourier_packing.cc*/
/* grib_optimize_decimal_factor.cc */
int grib_optimize_decimal_factor(grib_accessor* a, const char* reference_value, const double pmax, const double pmin, const int knbit, const int compat_gribex, const int compat_32bit, long* kdec, long* kbin, double* ref);