Cleanup and comments

This commit is contained in:
Shahram Najm 2022-12-08 14:16:51 +00:00
parent 22fddeb3f3
commit 4374387c21
27 changed files with 49 additions and 71 deletions

View File

@ -9,9 +9,8 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile
* *
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,7 +9,7 @@
*/
/***************************************************************************
* Enrico Fucile *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"

View File

@ -11,7 +11,6 @@
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile *
* *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -10,7 +10,6 @@
/***************************************************************************
* Enrico Fucile 2012 *
* *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,9 +9,8 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile
* *
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,9 +9,8 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile
* *
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,8 +9,7 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* *
* Jean Baptiste Filippi - 01.11.2005 *
***************************************************************************/
#include "grib_api_internal.h"

View File

@ -9,8 +9,7 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* *
* Jean Baptiste Filippi - 01.11.2005 *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,8 +9,7 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* *
* Jean Baptiste Filippi - 01.11.2005 *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,8 +9,7 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* *
* Jean Baptiste Filippi - 01.11.2005 *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,8 +9,7 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* *
* Jean Baptiste Filippi - 01.11.2005 *
***************************************************************************/
#include "grib_api_internal.h"

View File

@ -9,8 +9,7 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* *
* Jean Baptiste Filippi - 01.11.2005 *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,8 +9,7 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* *
* Jean Baptiste Filippi - 01.11.2005 *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,9 +9,8 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile
* *
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"

View File

@ -9,7 +9,7 @@
*/
/***************************************************************************
* Enrico Fucile *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,7 +9,7 @@
*/
/***************************************************************************
* Enrico Fucile *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,7 +9,7 @@
*/
/***************************************************************************
* Enrico Fucile *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,7 +9,7 @@
*/
/***************************************************************************
* Enrico Fucile *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,7 +9,7 @@
*/
/***************************************************************************
* Enrico Fucile *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,8 +9,7 @@
*/
/***************************************************************************
* Enrico Fucile
* *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,9 +9,8 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile
* *
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"

View File

@ -9,7 +9,7 @@
*/
/***************************************************************************
* Enrico Fucile *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,9 +9,8 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile
* *
* Jean Baptiste Filippi - 01.11.2005 *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"

View File

@ -9,8 +9,7 @@
*/
/***************************************************************************
* Jean Baptiste Filippi - 01.11.2005 *
* *
* Jean Baptiste Filippi - 01.11.2005 *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -9,7 +9,7 @@
*/
/***************************************************************************
* Enrico Fucile *
* Enrico Fucile *
***************************************************************************/
#include "grib_api_internal.h"
/*

View File

@ -11,7 +11,6 @@
* Enrico Fucile
**************************************/
#include "grib_api_internal.h"
#include <math.h>
@ -37,10 +36,8 @@ or edit "iterator.class" and rerun ./make_class.pl
*/
static void init_class (grib_iterator_class*);
static int init (grib_iterator* i,grib_handle*,grib_arguments*);
static void init_class (grib_iterator_class*);
static int init (grib_iterator* i,grib_handle*,grib_arguments*);
typedef struct grib_iterator_gaussian{
grib_iterator it;
@ -83,10 +80,10 @@ grib_iterator_class* grib_iterator_class_gaussian = &_grib_iterator_class_gaussi
static void init_class(grib_iterator_class* c)
{
c->next = (*(c->super))->next;
c->previous = (*(c->super))->previous;
c->reset = (*(c->super))->reset;
c->has_next = (*(c->super))->has_next;
c->next = (*(c->super))->next;
c->previous = (*(c->super))->previous;
c->reset = (*(c->super))->reset;
c->has_next = (*(c->super))->has_next;
}
/* END_CLASS_IMP */

View File

@ -32,11 +32,9 @@ or edit "iterator.class" and rerun ./make_class.pl
*/
static void init_class (grib_iterator_class*);
static int init (grib_iterator* i,grib_handle*,grib_arguments*);
static int next (grib_iterator* i, double *lat, double *lon, double *val);
static void init_class (grib_iterator_class*);
static int init (grib_iterator* i,grib_handle*,grib_arguments*);
static int next (grib_iterator* i, double *lat, double *lon, double *val);
typedef struct grib_iterator_latlon{
grib_iterator it;
@ -79,9 +77,9 @@ grib_iterator_class* grib_iterator_class_latlon = &_grib_iterator_class_latlon;
static void init_class(grib_iterator_class* c)
{
c->previous = (*(c->super))->previous;
c->reset = (*(c->super))->reset;
c->has_next = (*(c->super))->has_next;
c->previous = (*(c->super))->previous;
c->reset = (*(c->super))->reset;
c->has_next = (*(c->super))->has_next;
}
/* END_CLASS_IMP */
@ -137,14 +135,14 @@ static int init(grib_iterator* iter, grib_handle* h, grib_arguments* args)
long jScansPositively;
long lai;
const char* s_lat1 = grib_arguments_get_name(h, args, self->carg++);
const char* s_jdir = grib_arguments_get_name(h, args, self->carg++);
const char* s_jScansPos = grib_arguments_get_name(h, args, self->carg++);
const char* s_jPtsConsec = grib_arguments_get_name(h, args, self->carg++);
const char* s_isRotatedGrid = grib_arguments_get_name(h, args, self->carg++);
const char* s_angleOfRotation= grib_arguments_get_name(h, args, self->carg++);
const char* s_latSouthernPole= grib_arguments_get_name(h, args, self->carg++);
const char* s_lonSouthernPole= grib_arguments_get_name(h, args, self->carg++);
const char* s_lat1 = grib_arguments_get_name(h, args, self->carg++);
const char* s_jdir = grib_arguments_get_name(h, args, self->carg++);
const char* s_jScansPos = grib_arguments_get_name(h, args, self->carg++);
const char* s_jPtsConsec = grib_arguments_get_name(h, args, self->carg++);
const char* s_isRotatedGrid = grib_arguments_get_name(h, args, self->carg++);
const char* s_angleOfRotation = grib_arguments_get_name(h, args, self->carg++);
const char* s_latSouthernPole = grib_arguments_get_name(h, args, self->carg++);
const char* s_lonSouthernPole = grib_arguments_get_name(h, args, self->carg++);
self->angleOfRotation = 0;
self->isRotated = 0;