Imported Upstream version 0.6.6
Youhei SASAKI
12 years ago
|
0 |
Sun Feb 19 2011 T Horinouchi
|
|
1 |
* ruby-netcdf-0.6.6 released (relase tag: ruby-netcdf-0_6_6)
|
|
2 |
* lib/netcdf.rb: method pack: debug of enbug made
|
|
3 |
when 1.1 -> 1.2 (cvs tag) commited in Jan 2010.
|
|
4 |
* netcdfraw.c: Added macro NC_RAISE2. Enhanced error
|
|
5 |
messaging in NetCDF_open and NetCDF_create to show file name.
|
|
6 |
|
0 | 7 |
Thu Feb 17 2011 T Horinouchi
|
1 | 8 |
* ruby-netcdf-0.6.5 released (relase tag: ruby-netcdf-0_6_5)
|
2 | 9 |
Thu Feb 17 2011 T Horinouchi
|
202 | 202 |
}
|
203 | 203 |
|
204 | 204 |
#define NC_RAISE(status) rb_raise(err_status2class(status),(nc_strerror(status)))
|
|
205 |
#define NC_RAISE2(status, str) rb_raise(err_status2class(status),"%s (%s)",nc_strerror(status),(str) )
|
205 | 206 |
|
206 | 207 |
static VALUE mNumRu = 0;
|
207 | 208 |
static VALUE cNetCDF;
|
|
1032 | 1033 |
c_omode=NUM2INT(omode);
|
1033 | 1034 |
|
1034 | 1035 |
status = nc_open(c_filename,c_omode,&ncid);
|
1035 | |
if(status !=NC_NOERR){NC_RAISE(status);}
|
|
1036 |
if(status !=NC_NOERR){NC_RAISE2(status,c_filename);}
|
1036 | 1037 |
|
1037 | 1038 |
ncfile = NetCDF_init(ncid,c_filename);
|
1038 | 1039 |
retval = Data_Wrap_Struct(cNetCDF,0,NetCDF_free,ncfile);
|
|
1055 | 1056 |
c_cmode=NUM2INT(cmode);
|
1056 | 1057 |
|
1057 | 1058 |
status = nc_create(c_filename,c_cmode,&ncid);
|
1058 | |
if(status != NC_NOERR) NC_RAISE(status);
|
|
1059 |
if(status != NC_NOERR) NC_RAISE2(status, c_filename);
|
1059 | 1060 |
|
1060 | 1061 |
ncfile = NetCDF_init(ncid,c_filename);
|
1061 | 1062 |
return( Data_Wrap_Struct(cNetCDF,0,NetCDF_free,ncfile) );
|