Hi everyone,
I am using MATLAB for reading netcdf file in my pc. Now I am trying to read netcdf file in the UNIX computer. So I set path in the matlab (in UNIX computer). However, it doesn't work. I downloaded 'netcdf-3.6.2' and 'mexcdf' from website and set path to these folders. It worked in PC but not in UNIX. Did I wrong? Any suggestion will be appreciated.
Lee
reading netcdf file in matlab
-
- Posts: 17
- Joined: Wed Apr 22, 2009 6:01 pm
- Location: National Institute for Environmental Studies
Re: reading netcdf file in matlab
Hi Lee,
Can I make some questions? We need more information in detail;
1) What is version of your MATLAB?
2) Why don't you use (download) the newest netCDF Library: netcdf-4.0.1 so far?
3) I can't understand the meaning of your sentence clearly as follows: "It worked in PC but not in UNIX.". Pls. tell me in detail.
I'm looking forward to seeing your answers.
Cheers,
Hiroshi
Can I make some questions? We need more information in detail;
1) What is version of your MATLAB?
2) Why don't you use (download) the newest netCDF Library: netcdf-4.0.1 so far?
3) I can't understand the meaning of your sentence clearly as follows: "It worked in PC but not in UNIX.". Pls. tell me in detail.
I'm looking forward to seeing your answers.
Cheers,
Hiroshi
Re: reading netcdf file in matlab
Recent versions of Matlab have support built in for reading netcdf files. A very convenient set of high level utilities that exploits the built-in functions is "snctools" available at http://mexcdf.sourceforge.net/downloads/
The roms plotting routines I have posted elsewhere on the roms user forum uses these snctools as the underlying method for reading roms output.
The roms plotting routines I have posted elsewhere on the roms user forum uses these snctools as the underlying method for reading roms output.
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu
Re: reading netcdf file in matlab
Hi dhtjtks
Dear my friend best guide for set netcdf library for your machine refer to downloading "toolboxes" in following address,
http://roms.mpl.ird.fr/download.php in "Roms_Agrif"
download "mexnc" and "mex60" and set netcdf library in "/home/.../Roms_tools/mexnc/mexopts.sh" and make sure path for "matlab(R2007a) for linux" if you face to error massage for reading let me know.
Best Regards
F.Daryabor
Dear my friend best guide for set netcdf library for your machine refer to downloading "toolboxes" in following address,
http://roms.mpl.ird.fr/download.php in "Roms_Agrif"
download "mexnc" and "mex60" and set netcdf library in "/home/.../Roms_tools/mexnc/mexopts.sh" and make sure path for "matlab(R2007a) for linux" if you face to error massage for reading let me know.
Best Regards
F.Daryabor
Re: reading netcdf file in matlab
Hi Wilkin:
Thanks, it works now. I really appreciate.
Thanks again.
Lee
Thanks, it works now. I really appreciate.
Thanks again.
Lee
Last edited by dhtjtks on Mon Sep 28, 2009 3:22 pm, edited 1 time in total.
Re: reading netcdf file in matlab
Hi Hiroshi:
Thanks for your interest. I just followed Wilkin's solution and it works now. Thanks anyway.
Lee
Thanks for your interest. I just followed Wilkin's solution and it works now. Thanks anyway.
Lee
hyy wrote:Hi Lee,
Can I make some questions? We need more information in detail;
1) What is version of your MATLAB?
2) Why don't you use (download) the newest netCDF Library: netcdf-4.0.1 so far?
3) I can't understand the meaning of your sentence clearly as follows: "It worked in PC but not in UNIX.". Pls. tell me in detail.
I'm looking forward to seeing your answers.
Cheers,
Hiroshi