# HG changeset patch
# User abarth93
# Date 1375177319 0
# Node ID 6f80e9b5a5cb50d4cf58ce343177e365f0bfb194
# Parent 4af8f704c931f71eb2b08233b3d08e3192d17e7c
add copyright (2)
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/format2mode.m
--- a/main/netcdf/inst/private/format2mode.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/format2mode.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function mode = format2mode(format)
mode = netcdf_getConstant("NC_NOCLOBBER");
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/nc2octtype.m
--- a/main/netcdf/inst/private/nc2octtype.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/nc2octtype.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function otype = nc2octtype(nctype)
if nctype == netcdf_getConstant("NC_CHAR")
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/ncloc.m
--- a/main/netcdf/inst/private/ncloc.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/ncloc.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
% resolves a location (variable or group) by name
function [gid,varid] = ncloc(ncid,name)
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/ncvarid.m
--- a/main/netcdf/inst/private/ncvarid.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/ncvarid.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function [gid,varid] = ncvarid(ncid,varname)
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/oct2nctype.m
--- a/main/netcdf/inst/private/oct2nctype.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/oct2nctype.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function nctype = oct2nctype(otype)
typemap.int8 = 'byte';
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_attributes.m
--- a/main/netcdf/inst/private/test_netcdf_attributes.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_attributes.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function test_netcdf_attributes()
import_netcdf
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_constant.m
--- a/main/netcdf/inst/private/test_netcdf_constant.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_constant.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
% test netcdf constants
function test_netcdf_constant()
import_netcdf
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_create.m
--- a/main/netcdf/inst/private/test_netcdf_create.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_create.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function test_netcdf_create
import_netcdf
fname = [tempname '-octave-netcdf.nc'];
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_datatypes.m
--- a/main/netcdf/inst/private/test_netcdf_datatypes.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_datatypes.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function test_netcdf_datatypes()
test_netcdf_type('byte','int8');
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_high_level_interface.m
--- a/main/netcdf/inst/private/test_netcdf_high_level_interface.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_high_level_interface.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
fname = [tempname '-octave-netcdf.nc'];
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_low_level_interface.m
--- a/main/netcdf/inst/private/test_netcdf_low_level_interface.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_low_level_interface.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function test_netcdf_low_level_interface
import_netcdf
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_ncwriteschema.m
--- a/main/netcdf/inst/private/test_netcdf_ncwriteschema.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_ncwriteschema.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
fname = [tempname '-octave-netcdf-scheme-unlim.nc'];
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_ncwriteschema_chunking.m
--- a/main/netcdf/inst/private/test_netcdf_ncwriteschema_chunking.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_ncwriteschema_chunking.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
fname = [tempname '-octave-netcdf-scheme-chunk.nc'];
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_ncwriteschema_group.m
--- a/main/netcdf/inst/private/test_netcdf_ncwriteschema_group.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_ncwriteschema_group.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
fname = [tempname '-octave-netcdf-scheme-group.nc'];
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_ncwriteschema_unlim.m
--- a/main/netcdf/inst/private/test_netcdf_ncwriteschema_unlim.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_ncwriteschema_unlim.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
fname = [tempname '-octave-netcdf-scheme-unlim.nc'];
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_netcdf_scalar_variable.m
--- a/main/netcdf/inst/private/test_netcdf_scalar_variable.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_netcdf_scalar_variable.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function test_netcdf_scalar_variable()
import_netcdf
diff -r 4af8f704c931 -r 6f80e9b5a5cb main/netcdf/inst/private/test_scalar_variable.m
--- a/main/netcdf/inst/private/test_scalar_variable.m Tue Jul 30 08:18:00 2013 +0000
+++ b/main/netcdf/inst/private/test_scalar_variable.m Tue Jul 30 09:41:59 2013 +0000
@@ -1,3 +1,18 @@
+%% Copyright (C) 2013 Alexander Barth
+%%
+%% This program is free software; you can redistribute it and/or modify
+%% it under the terms of the GNU General Public License as published by
+%% the Free Software Foundation; either version 2 of the License, or
+%% (at your option) any later version.
+%%
+%% This program is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+%% GNU General Public License for more details.
+%%
+%% You should have received a copy of the GNU General Public License
+%% along with this program; If not, see .
+
function test_netcdf_scalar_variable()
import_netcdf