mirror of https://github.com/ecmwf/eccodes.git
Clean up
This commit is contained in:
parent
f3ae13884d
commit
6916d50aa4
|
@ -21,7 +21,7 @@ char* grib_tool_name="grib_copy";
|
|||
char* grib_tool_usage="[options] grib_file grib_file ... output_grib_file";
|
||||
|
||||
grib_option grib_options[]={
|
||||
/* {id, args, help}, on, command_line, value */
|
||||
/* {id, args, help}, on, command_line, value */
|
||||
{"f",0,0,0,1,0},
|
||||
{"c",0,0,1,0,0},
|
||||
{"r",0,0,0,1,0},
|
||||
|
@ -49,16 +49,19 @@ grib_option grib_options[]={
|
|||
|
||||
int grib_options_count=sizeof(grib_options)/sizeof(grib_option);
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int ret=grib_tool(argc,argv);
|
||||
return ret;
|
||||
}
|
||||
|
||||
int grib_tool_before_getopt(grib_runtime_options* options) {
|
||||
int grib_tool_before_getopt(grib_runtime_options* options)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int grib_tool_init(grib_runtime_options* options) {
|
||||
int grib_tool_init(grib_runtime_options* options)
|
||||
{
|
||||
#if 0
|
||||
if (options->outfile && options->outfile->name) {
|
||||
options->outfile->file = fopen(options->outfile->name,"w");
|
||||
|
@ -71,16 +74,18 @@ int grib_tool_init(grib_runtime_options* options) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int grib_tool_new_filename_action(grib_runtime_options* options,const char* file) {
|
||||
int grib_tool_new_filename_action(grib_runtime_options* options,const char* file)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int grib_tool_new_file_action(grib_runtime_options* options,grib_tools_file* file) {
|
||||
int grib_tool_new_file_action(grib_runtime_options* options,grib_tools_file* file)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) {
|
||||
int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h)
|
||||
{
|
||||
double* v;
|
||||
size_t size=0;
|
||||
if ( options->repack ) {
|
||||
|
@ -100,12 +105,14 @@ int grib_tool_new_handle_action(grib_runtime_options* options, grib_handle* h) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h) {
|
||||
int grib_tool_skip_handle(grib_runtime_options* options, grib_handle* h)
|
||||
{
|
||||
grib_handle_delete(h);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void grib_tool_print_key_values(grib_runtime_options* options,grib_handle* h) {
|
||||
void grib_tool_print_key_values(grib_runtime_options* options,grib_handle* h)
|
||||
{
|
||||
grib_print_key_values(options,h);
|
||||
}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#include "grib_tools.h"
|
||||
|
||||
grib_option grib_options[]={
|
||||
/* {id, args, help}, on, command_line, value*/
|
||||
/* {id, args, help}, on, command_line, value*/
|
||||
{"f",0,0,0,1,0},
|
||||
{"p:",0,0,0,1,0},
|
||||
{"F:",0,0,1,1,"%g"},
|
||||
|
|
Loading…
Reference in New Issue