Skip to content

Commit

Permalink
Merge branch 'develop' into grids
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA authored Oct 4, 2024
2 parents 83a66ed + 1e9a8eb commit a298321
Show file tree
Hide file tree
Showing 100 changed files with 294 additions and 1,707 deletions.
2 changes: 2 additions & 0 deletions aux_progs/grb2.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* 10/2024 Public Domain Wesley Ebisuzaki */

#ifndef INT3
#define INT3(a,b,c) ((1-(int) ((unsigned) (a & 0x80) >> 6)) * (int) (((a & 127) << 16)+(b<<8)+c))
#endif
Expand Down
2 changes: 1 addition & 1 deletion aux_progs/smallest_4.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
//
// 10/2024 Public Domain Wesley Ebisuzaki
// 4 files .. same fields but with different packing
// returns smaller of indiv fields
//
Expand Down
1 change: 1 addition & 0 deletions aux_progs/smallest_grib2.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
// 10/2024 Public Domain Wesley Ebisuzaki
//
// 3 files .. same fields but with different packing
// returns smaller of indiv fields
Expand Down
1 change: 1 addition & 0 deletions aux_progs/uint8.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <stdlib.h>
#include <limits.h>
#include "grb2.h"
/* 10/2024 Public Domain Wesley Ebisuzaki */

unsigned long int uint8(unsigned char *p) {

Expand Down
2 changes: 1 addition & 1 deletion c_api/grb2_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <string.h>
#include "c_wgrib2api.h"

/*
/* 10/2024 Public Domain Wesley Ebisuzaki
* handles arguments for wgrib2
*/

Expand Down
1 change: 1 addition & 0 deletions c_api/grb2_mk_inv.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <stdio.h>
#include "c_wgrib2api.h"

/* 10/2024 Public Domain Wesley Ebisuzaki */
/* C transation of fortran grb2_mk_inv(..) */

int grb2_mk_inv(char *grb, char *inv) {
Expand Down
2 changes: 2 additions & 0 deletions c_api/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#include <stdlib.h>
#include "c_wgrib2api.h"

/* 10/2024 Public Domain Wesley Ebisuzaki */

int main() { /* simple program to read grib2 */
long long int ndata;
int ierr;
Expand Down
2 changes: 1 addition & 1 deletion c_api/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <stdlib.h>
#include "c_wgrib2api.h"
#define GRIDSIZE 1679

/* 10/2024 Public Domain Wesley Ebisuzaki */
int main() { /* simple program write grib2 file */
float data[GRIDSIZE];
char *template;
Expand Down
Loading

0 comments on commit a298321

Please sign in to comment.