#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <cmath>
#include <glib.h>
#include <netcdf.hh>
#include <png.h>
#include <popt.h>
#include "thumbpal.h"
#include "writepng.h"
Go to the source code of this file.
Classes | |
class | raw_image |
class | raw_image_tmpl< NC_VAR_TYP > |
Defines | |
#define | SCAN_V_DIRECT 0x0001 |
#define | SCAN_V_QUICK 0x0002 |
#define | SCAN_V_HORIZONTAL 0x0004 |
#define | SCAN_V_PERIODIC 0x0008 |
#define | SCAN_V_LOG 0x0010 |
#define | SCAN_V_DIFFERENTIAL 0x0020 |
#define | SCAN_V_PLANESUB 0x0040 |
#define | THUMB_X 96 |
#define | THUMB_Y 91 |
#define | MIMA(J, I) do{ z = rowdata[J][I]; if (ma < z) { u++; ma = z; } if (mi > z) { l++; mi = z; } }while(0) |
Enumerations | |
enum | GXSM_NETCDF_STATUS { NC_READ_OK, NC_OPEN_FAILED, NC_NOT_FROM_GXSM } |
Functions | |
int | min (int x, int y) |
int | max (int x, int y) |
GXSM_NETCDF_STATUS | netcdf_read (const gchar *file_name, raw_image **img, int thumb, int new_x, int x_off, int y_off, int width) |
int | write_png (gchar *file_name, raw_image *img) |
int | main (int argc, const char *argv[]) |
|
Referenced by raw_image::soft(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 463 of file nctopng.C. References FALSE, filename, NC_NOT_FROM_GXSM, NC_OPEN_FAILED, NC_READ_OK, netcdf_read(), raw_image::quick_rgb(), width, and write_png(). |
|
|
|
|
|
Definition at line 372 of file nctopng.C. References NC_NOT_FROM_GXSM, and NC_OPEN_FAILED. Referenced by main(). |
|