[MITgcm-devel] problem with gluemnc ?
Jean-Michel Campin
jmc at ocean.mit.edu
Wed Aug 12 18:33:26 EDT 2009
Hi Ryan,
On Wed, Aug 12, 2009 at 05:37:50PM -0400, Ryan Abernathey wrote:
> It might be easy to make it compatible with both version by changing the
> grep...
>
> How does the out output of `ncdump -h` compare between the two versions?
2 problems:
1) my ncdump (4.0) does not like when file name start with a number:
> danton{tmp}% ncdump -h 10state.0000036000.t001.nc
> ncdump: name begins with space or control-character: 1
2) and it does not like when applied to multiple files:
> danton{tmp}% ls
> state.0000036000.t001.nc state.0000036000.t002.nc
> danton{tmp}% ncdump -h state.0000036000.t00?.nc
> ncdump [-c|-h] [-v ...] [[-b|-f] [c|f]] [-l len] [-n name] [-p n[,n]] [-x] [-k] file
> [-c] Coordinate variable data and header information
> [-h] Header information only, no data
> [-v var1[,...]] Data for variable(s) <var1>,... only
> [-b [c|f]] Brief annotations for C or Fortran indices in data
> [-f [c|f]] Full annotations for C or Fortran indices in data
> [-l len] Line length maximum in data section (default 80)
> [-n name] Name for netCDF (default derived from file name)
> [-p n[,n]] Display floating-point values with less precision
> [-x] Output XML (NcML) instead of CDL
> [-k] Output kind of netCDF file
> file Name of netCDF file
> netcdf library version "4.0" of Feb 26 2009 03:56:01 $
Cheers,
Jean-Michel
>
>
>
> On Aug 12, 2009, at 5:38 PM, Jean-Michel Campin wrote:
>
>>
>> Looks like it's related to the version of ncdump/netcdf:
>> It does not work with my version:
>>> netcdf library version "4.0" of Feb 26 2009 03:56:01 $
>> but on beagle it works with:
>>> netcdf library version "3.6.2" of Oct 26 2007 12:30:01 $
>>
>> Jean-Michel
>>
>> On Wed, Aug 12, 2009 at 12:24:52PM -0400, Jean-Michel Campin wrote:
>>> Hi,
>>>
>>> I tried to use gluemnc for the output of exp. ideal_2D_oce
>>> and also global_ocean.90x40x15 , statring with "state.*.t*.nc" files.
>>>
>>> I did not get the right single netcdf file at the end,
>>> but when I comment out the 2 lines 277,278 in gluemnc:
>>>> withY=$(ncdump -h $countxx.$somevar.$somepre.*.nc | grep "Y =")
>>>> withYp1=$(ncdump -h $countxx.$somevar.$somepre.*.nc | grep
>>>> "Yp1 =")
>>> then it seems to work much better.
>>>
>>> Is there something wrong there ? Or did I miss something ?
>>>
>>> Jean-Michel
>>>
>>>
>>> _______________________________________________
>>> MITgcm-devel mailing list
>>> MITgcm-devel at mitgcm.org
>>> http://mitgcm.org/mailman/listinfo/mitgcm-devel
>
More information about the MITgcm-devel
mailing list