Home > atmlab > arts > netcdf > arts_nc_read_tensor4.m

arts_nc_read_tensor4

PURPOSE ^

ARTS_NC_READ_TENSOR4 Read Tensor4 from ARTS NetCDF file.

SYNOPSIS ^

function [ret, gattr] = arts_nc_read_tensor4 (filename)

DESCRIPTION ^

 ARTS_NC_READ_TENSOR4   Read Tensor4 from ARTS NetCDF file.

    Reads a Tensor4 from a NetCDF file saved with Arts.

 FORMAT   ret = arts_nc_read_tensor4(filename)
        
 OUT   ret      Tensor4
 OUT   gattr    Global attributes
       
 IN    filename Name of NetCDF input file.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

arts_nc_read_tensor4.m

SOURCE CODE ^

0001 % ARTS_NC_READ_TENSOR4   Read Tensor4 from ARTS NetCDF file.
0002 %
0003 %    Reads a Tensor4 from a NetCDF file saved with Arts.
0004 %
0005 % FORMAT   ret = arts_nc_read_tensor4(filename)
0006 %
0007 % OUT   ret      Tensor4
0008 % OUT   gattr    Global attributes
0009 %
0010 % IN    filename Name of NetCDF input file.
0011 
0012 % 2010-02-02   Created by Oliver Lemke.
0013 
0014 function [ret, gattr] = arts_nc_read_tensor4 (filename)
0015 
0016 gattr = loadncglobalattr (filename);
0017 
0018 v = loadncvar (filename, 'Tensor4');
0019 d = size(v);
0020 ret = permute (reshape (v, [d(2) d(3) d(4) d(1)]), [4 3 2 1]);

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005