[MITgcm-support] MITgcm-support Digest, Vol 105, Issue 7

Yael Amitai yael.amitai at mail.huji.ac.il
Mon Mar 19 09:07:11 EDT 2012


Thank you all for the suggestions,
I'll try to rewrite the mnc_assembly.m for the new API uses (looking on
rdmnc.m as Martin suggested), and will attach it to this mailing list if it
will work ok.

The same issue John had with the glumnc script, occurred to me.
Regarding his mnc_assembly.m, it still relay on an external to matlab
netcdf toolbox.
But again, thanks

Yael

On Mon, Mar 19, 2012 at 1:24 PM, <mitgcm-support-request at mitgcm.org> wrote:

> Send MITgcm-support mailing list submissions to
>        mitgcm-support at mitgcm.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://mitgcm.org/mailman/listinfo/mitgcm-support
> or, via email, send a message with subject or body 'help' to
>        mitgcm-support-request at mitgcm.org
>
> You can reach the person managing the list at
>        mitgcm-support-owner at mitgcm.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MITgcm-support digest..."
>
>
> Today's Topics:
>
>   1. Re: Combine netcdf output using matlab version    2010a
>      (fancer fancer)
>   2. Re: Combine netcdf output using matlab    version 2010a
>      (Martin Losch)
>   3. Re: Combine netcdf output using   matlab  version 2010a
>      (Lauderdale, Jonathan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 19 Mar 2012 09:58:20 +0400
> From: fancer fancer <fancer.lancer at gmail.com>
> To: mitgcm-support at mitgcm.org
> Subject: Re: [MITgcm-support] Combine netcdf output using matlab
>        version 2010a
> Message-ID:
>        <CAMPMW8quTLOej43usZXivBwGbOZXe32Qd4hQ6LCA39LgQ5xPTw at mail.gmail.com
> >
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi, Yeal.
>
> Could you copy the error message to this list? I have been given the
> following:
> ??? Undefined function or method 'netcdf' for input arguments of type
> 'char'.
>
> Error in ==> mnc_assembly at 91
>  fnc = netcdf(fnm, 'nowrite');
>
> The mnc_assembly.m uses old API for reading netCDF files. It looks like
> this script needs to be rewritten using new functionality.
>
> Sincerely,
> Serge V. Semin
>
> On Sun, Mar 18, 2012 at 1:57 PM, Yael Amitai <yael.amitai at mail.huji.ac.il
> >wrote:
>
> > Hi,
> > When trying to assembly the *.nc output of my run in matlab 7.10 (R2010a)
> > it gives me an error massage.
> > Does anyone try to use the mnc_assembly.m code in that version (or
> > similar, that contain the netcdf built in toolbox) of matlab and can help
> > me with that?
> > Thank you
> > Yael
> >
> >
> > --
> > Yael Amitai, PhD candidate
> > Oceanography department, Earth Science institute
> >  The Hebrew University of Jerusalem
> > Phone: 972-(0)2-6586516
> > Home page <http://earth.huji.ac.il/staff-main.asp?student=1&id=444>
> >
> >
> > _______________________________________________
> > MITgcm-support mailing list
> > MITgcm-support at mitgcm.org
> > http://mitgcm.org/mailman/listinfo/mitgcm-support
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mitgcm.org/pipermail/mitgcm-support/attachments/20120319/73c75012/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Mon, 19 Mar 2012 09:50:05 +0100
> From: Martin Losch <Martin.Losch at awi.de>
> To: mitgcm-support at mitgcm.org
> Subject: Re: [MITgcm-support] Combine netcdf output using matlab
>        version 2010a
> Message-ID: <D31332E6-70B2-4272-B728-032619457B9A at awi.de>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi Yeal,
>
> Serge is right, the function mnc_assembly relies on the "old" mexcdf53
> file, that was not part of "official" matlab distributions (so one needed
> to install it as a separate toolbox). With newer matlab distributions, this
> mexcdf53 stuff is usually no longer necessary, because matlab now has it
> own build-in netcdf API, so mexcdf53 is usually not installed. For you it
> means, that you either install it yourself or, which I would do in your
> case, rewrite mnc_assembly to use the new API. It's not that hard. Have a
> look at rdmnc.m for examples, or at the attached ncload.m, where I tried to
> do something similar.
>
> Alternatively, you can use the scripts gluemnc/xplodemnc to glue your
> files together (usually faster than matlab, but requires the nco
> operations).
>
> Martin
>
> On Mar 19, 2012, at 6:58 AM, fancer fancer wrote:
>
> > Hi, Yeal.
> >
> > Could you copy the error message to this list? I have been given the
> following:
> > ??? Undefined function or method 'netcdf' for input arguments of type
> 'char'.
> >
> > Error in ==> mnc_assembly at 91
> >   fnc = netcdf(fnm, 'nowrite');
> >
> > The mnc_assembly.m uses old API for reading netCDF files. It looks like
> this script needs to be rewritten using new functionality.
> >
> > Sincerely,
> > Serge V. Semin
> >
> > On Sun, Mar 18, 2012 at 1:57 PM, Yael Amitai <
> yael.amitai at mail.huji.ac.il> wrote:
> > Hi,
> > When trying to assembly the *.nc output of my run in matlab 7.10
> (R2010a) it gives me an error massage.
> > Does anyone try to use the mnc_assembly.m code in that version (or
> similar, that contain the netcdf built in toolbox) of matlab and can help
> me with that?
> > Thank you
> > Yael
> >
> >
> > --
> > Yael Amitai, PhD candidate
> > Oceanography department, Earth Science institute
> > The Hebrew University of Jerusalem
> > Phone: 972-(0)2-6586516
> > Home page
> >
> >
> > _______________________________________________
> > 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
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: ncload.m
> Type: application/octet-stream
> Size: 4450 bytes
> Desc: not available
> URL: <
> http://mitgcm.org/pipermail/mitgcm-support/attachments/20120319/6bd46a7b/attachment-0001.obj
> >
>
> ------------------------------
>
> Message: 3
> Date: Mon, 19 Mar 2012 11:24:32 +0000
> From: "Lauderdale, Jonathan" <J.Lauderdale at liverpool.ac.uk>
> To: "<mitgcm-support at mitgcm.org>" <mitgcm-support at mitgcm.org>
> Subject: Re: [MITgcm-support] Combine netcdf output using       matlab
>        version 2010a
> Message-ID: <C0EF518C-2B83-423A-8D15-F65EEA4DDA5B at liverpool.ac.uk>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello,
>
> I recently had issues with the gluemnc/mnc_assembly matlab routines -
> specifically mnc_assembly is written for the "netcdf" toolbox which seems
> to be having problems operating under the native matlab netcdf interface,
> in my case, it ran fine but the resulting netcdf file was empty. With the
> help of John Evans (http://mexcdf.sourceforge.net/) I've adjusted
> mnc_assembly to work with the newer/ apparently easier-to-support SNCTOOLS
> toolbox.
>
> I attach it here to save you having to "reinvent the wheel". It works fine
> for my purposes (coarse res, regular domain) but I've not tested it on
> anything bigger or with a CS grid, so your milage may vary.
>
> Cheers,
>
> Jon
>
> ___________________________________________________________________________
> Dr. Jonathan M. Lauderdale
> Postdoctoral Research Associate
> School of Environmental Sciences: Oceans and Ecosystems
> University of Liverpool
> 4 Brownlow Street,
> Liverpool, L69 3GP, U.K.
> Tel: +44 (0)151 794 4086
> Email: <mailto:jonathan.lauderdale at liverpool.ac.uk>
>
> UK Polar Network: <http://www.polarnetwork.org/about>
> Association of Polar Early Career Scientists <http://www.apecs.is/>
> ___________________________________________________________________________
>
> On 19 Mar 2012, at 08:50, Martin Losch wrote:
>
> Hi Yeal,
>
> Serge is right, the function mnc_assembly relies on the "old" mexcdf53
> file, that was not part of "official" matlab distributions (so one needed
> to install it as a separate toolbox). With newer matlab distributions, this
> mexcdf53 stuff is usually no longer necessary, because matlab now has it
> own build-in netcdf API, so mexcdf53 is usually not installed. For you it
> means, that you either install it yourself or, which I would do in your
> case, rewrite mnc_assembly to use the new API. It's not that hard. Have a
> look at rdmnc.m for examples, or at the attached ncload.m, where I tried to
> do something similar.
>
> Alternatively, you can use the scripts gluemnc/xplodemnc to glue your
> files together (usually faster than matlab, but requires the nco
> operations).
>
> Martin
>
> On Mar 19, 2012, at 6:58 AM, fancer fancer wrote:
>
> Hi, Yeal.
>
> Could you copy the error message to this list? I have been given the
> following:
> ??? Undefined function or method 'netcdf' for input arguments of type
> 'char'.
>
> Error in ==> mnc_assembly at 91
>  fnc = netcdf(fnm, 'nowrite');
>
> The mnc_assembly.m uses old API for reading netCDF files. It looks like
> this script needs to be rewritten using new functionality.
>
> Sincerely,
> Serge V. Semin
>
> On Sun, Mar 18, 2012 at 1:57 PM, Yael Amitai <yael.amitai at mail.huji.ac.il
> <mailto:yael.amitai at mail.huji.ac.il>> wrote:
> Hi,
> When trying to assembly the *.nc output of my run in matlab 7.10 (R2010a)
> it gives me an error massage.
> Does anyone try to use the mnc_assembly.m code in that version (or
> similar, that contain the netcdf built in toolbox) of matlab and can help
> me with that?
> Thank you
> Yael
>
>
> --
> Yael Amitai, PhD candidate
> Oceanography department, Earth Science institute
> The Hebrew University of Jerusalem
> Phone: 972-(0)2-6586516
> Home page
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org<mailto:MITgcm-support at mitgcm.org>
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org<mailto:MITgcm-support at mitgcm.org>
> http://mitgcm.org/mailman/listinfo/mitgcm-support
> <ncload.m>_______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org<mailto:MITgcm-support at mitgcm.org>
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mitgcm.org/pipermail/mitgcm-support/attachments/20120319/e37b452f/attachment.htm
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: mnc_assembly.m
> Type: application/octet-stream
> Size: 26897 bytes
> Desc: mnc_assembly.m
> URL: <
> http://mitgcm.org/pipermail/mitgcm-support/attachments/20120319/e37b452f/attachment.obj
> >
>
> ------------------------------
>
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
> End of MITgcm-support Digest, Vol 105, Issue 7
> **********************************************
>



-- 
Yael Amitai, PhD candidate
Oceanography department, Earth Science institute
 The Hebrew University of Jerusalem
Phone: 972-(0)2-6586516
Home page <http://earth.huji.ac.il/staff-main.asp?student=1&id=444>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20120319/2bf9f6c4/attachment.htm>


More information about the MITgcm-support mailing list