[MITgcm-support] Problem with gluemnc.m / mnc_assembly.m

Martin Losch Martin.Losch at awi.de
Mon Jul 13 06:59:48 EDT 2009


You cannot use rdmnc with the build-in netcdf library, you still need  
the (same) netcdf toolbox that you used for older matlabs.

However for glueing netcdf files I recommend to use Baylor's fantastic  
gluemnc/xplodemnc scripts (in utils/scripts). For them to work you  
need to have nco (netcdf operators) installed.

M.

On Jul 9, 2009, at 8:57 PM, Ryan Abernathey wrote:

> Apparently it does work in MATLAB R2007a but not in R2008a. I  
> believe that R2008a includes a built-in netcdf library. I guess it  
> is incompatible with the mnc_assembly.m code.
>
> On Jul 8, 2009, at 4:45 PM, Ryan Abernathey wrote:
>
>> Dear GCM People,
>>
>> I am trying to use gluemnc.m to glue together my output netcdf  
>> files. The script runs with no errors, but the resulting output  
>> file is an empty netcdf file. This is very frustrating because I  
>> can't look at the output of my model in one piece. Does anyone have  
>> any idea what could be wrong?
>>
>> I have confirmed that the problem is inside mnc_assembly.m by just  
>> running the commands of gluemnc.m manually from the command line. I  
>> am using MATLAB 7.6.0.324 (R2008a).
>>
>> Many thanks for the help,
>> Ryan
>>
>> >> gluemnc('state','0000000000');
>>
>> theResult =
>>
>> Columns 1 through 9
>>
>>   'T'    'iter'    'Xp1'    'Y'    'Z'    'U'    'X'    'Yp1'    'V'
>>
>> Columns 10 through 14
>>
>>   'Temp'    'S'    'Eta'    'Zl'    'W'
>>
>> Found 4 files matching the pattern:  "state.0000000000.t%03d.nc"
>> Looking for variable:   T
>> Looking for variable:   iter
>> Looking for variable:   Xp1
>> Looking for variable:   Y
>> Looking for variable:   Z
>> Looking for variable:   U
>> Looking for variable:   X
>> Looking for variable:   Yp1
>> Looking for variable:   V
>> Looking for variable:   Temp
>> Looking for variable:   S
>> Looking for variable:   Eta
>> Looking for variable:   Zl
>> Looking for variable:   W
>> Warning: FINITE is obsolete and will be removed in future versions.
>> Use ISFINITE instead.
>> > In ncdim.ncdim at 70
>> In netcdf.subsasgn at 91
>> In mnc_assembly at 337
>> In gluemnc at 33
>> Warning: FINITE is obsolete and will be removed in future versions.
>> Use ISFINITE instead.
>> > In ncdim.ncdim at 70
>> In netcdf.subsasgn at 91
>> In mnc_assembly at 337
>> In gluemnc at 33
>> Warning: FINITE is obsolete and will be removed in future versions.
>> Use ISFINITE instead.
>> > In ncdim.ncdim at 70
>> In netcdf.subsasgn at 91
>> In mnc_assembly at 337
>> In gluemnc at 33
>> Warning: FINITE is obsolete and will be removed in future versions.
>> Use ISFINITE instead.
>> > In ncdim.ncdim at 70
>> In netcdf.subsasgn at 91
>> In mnc_assembly at 337
>> In gluemnc at 33
>> Warning: FINITE is obsolete and will be removed in future versions.
>> Use ISFINITE instead.
>> > In ncdim.ncdim at 70
>> In netcdf.subsasgn at 91
>> In mnc_assembly at 337
>> In gluemnc at 33
>> Warning: FINITE is obsolete and will be removed in future versions.
>> Use ISFINITE instead.
>> > In ncdim.ncdim at 70
>> In netcdf.subsasgn at 91
>> In mnc_assembly at 337
>> In gluemnc at 33
>> Warning: FINITE is obsolete and will be removed in future versions.
>> Use ISFINITE instead.
>> > In ncdim.ncdim at 70
>> In netcdf.subsasgn at 91
>> In mnc_assembly at 337
>> In gluemnc at 33
>> Copying variable:   T
>> Copying variable:   iter
>> Copying variable:   Xp1
>> Copying variable:   Y
>> Copying variable:   Z
>> Copying variable:   U
>> Copying variable:   X
>> Copying variable:   Yp1
>> Copying variable:   V
>> Copying variable:   Temp
>> Copying variable:   S
>> Copying variable:   Eta
>> Copying variable:   Zl
>> Copying variable:   W
>> delete the original tiled files? [y/n] n
>> >> ls -l
>> total 1704
>> -rw-------  1 rpa  rpa   14204 Jul  8 15:40 monitor. 
>> 0000000000.t001.nc
>> -rw-------  1 rpa  rpa  209024 Jul  8 15:23 state.0000000000.t001.nc
>> -rw-------  1 rpa  rpa  209024 Jul  8 15:23 state.0000000000.t002.nc
>> -rw-------  1 rpa  rpa  209024 Jul  8 15:23 state.0000000000.t003.nc
>> -rw-------  1 rpa  rpa  209024 Jul  8 15:23 state.0000000000.t004.nc
>> -rw-r--r--  1 rpa  rpa    4096 Jul  8 16:32 state_0000000000.nc
>>
>>
>> _______________________________________________
>> MITgcm-support mailing list
>> MITgcm-support at mitgcm.org
>> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support




More information about the MITgcm-support mailing list