loaddap & writedap using Matlab

182 views
Skip to first unread message

Kaushik Sasmal

unread,
Dec 21, 2010, 11:35:57 PM12/21/10
to sup...@opendap.org

Is it possible that the bug is in the NCEP script and not loaddap? 

Please tell me the version of Matlab and the NCEP program you're using. Also, I'll need to know where to get the NCEP sftware.

James

####################################################

My Matlab version is           7.8.0.347 (R2009a)

I am sending you the matlab NCEP programs in a tar file attached with this mail

please find it






--
***************************************************************
kaushik Sasmal
Dept. of Ocean Engineering and Naval Architecture
IIT Kharagpur
India -721302
****************************************************************
Aforc_NCEP.tar.gz

Gallagher James

unread,
Dec 22, 2010, 6:07:53 PM12/22/10
to Kaushik Sasmal, support@opendap.org support

On Dec 21, 2010, at 9:35 PM, Kaushik Sasmal wrote:

>
> Is it possible that the bug is in the NCEP script and not loaddap?
>
> Please tell me the version of Matlab and the NCEP program you're
> using. Also, I'll need to know where to get the NCEP sftware.
>
> James
>
> ####################################################
>
> My Matlab version is 7.8.0.347 (R2009a)
>
> I am sending you the matlab NCEP programs in a tar file attached
> with this mail
>
> please find it

I tried running 'make_NCEP' but it failed - I'm not sure how to use
this program and the documentation looks pretty daunting. Can you send
me an example of how you're running it? That would help me quite a bit.

Also, can you try the following loaddap commands, especially the one
with -V (uppercase 'V') because that will help.

Here's my output

*** First I tested loaddap (3.7.0 in Matlab 7.8.0.347 (R2009a))

>> addpath /usr/local/bin
>> loaddap('-V')
loaddap: 3.7.0
>> url='http://test.opendap.org/dap/data/nc/fnoc1.nc'

url =

http://test.opendap.org/dap/data/nc/fnoc1.nc

>> ce='lat'

ce =

lat

>> loaddap([url '?' ce])
Creating vector lat with 17 elements.
>> who

Your variables are:

ce lat url

>> lat

lat =

50.0000
47.5000
45.0000
42.5000
40.0000
37.5000
35.0000
32.5000
30.0000
27.5000
25.0000
22.5000
20.0000
17.5000
15.0000
12.5000
10.0000

>>

*** running NCEP

>> addpath /Users/jimg/Desktop/Aforc_NCEP/
>> make_NCEP
??? Undefined function or variable 'romstools_param'.

Error in ==> make_NCEP at 47
romstools_param

>>

James


>
>
>
>
>
>
> --
> ***************************************************************
> kaushik Sasmal
> Dept. of Ocean Engineering and Naval Architecture
> IIT Kharagpur
> India -721302
> ****************************************************************

> <Aforc_NCEP.tar.gz>

--
James Gallagher
jgallagher at opendap.org
406.723.8663

Kaushik Sasmal

unread,
Dec 23, 2010, 2:42:54 AM12/23/10
to sup...@opendap.org
Also, can you try the following loaddap commands, especially the one with -V (uppercase 'V') because that will help.

Here's my output

*** First I tested loaddap (3.7.0 in Matlab 7.8.0.347 (R2009a))

>> addpath /usr/local/bin
>> loaddap('-V')
loaddap: 3.7.0
>> url='http://test.opendap.org/dap/data/nc/fnoc1.nc'

url =

http://test.opendap.org/dap/data/nc/fnoc1.nc

>> ce='lat'

ce =

lat

>> loaddap([url '?' ce])
Creating vector lat with 17 elements.

######################################################
As you told to test loaddap with V

I did 
>> addpath /usr/local/bin

>> loaddap('-V')
loaddap: 3.7.0

>> url='http://test.opendap.org/dap/data/nc/fnoc1.nc'

url =

http://test.opendap.org/dap/data/nc/fnoc1.nc

>> ce='lat'

ce =

lat

>> loaddap([url '?' ce])
Error: Communication with the loaddap helper application writedap:
Resource temporarily unavailable
This may be due to an earlier error. However, if there was no previous
error message, please report this to support at opendap.org.



In my case I think  problem starts from here

############################################
*** running NCEP

>> addpath /Users/jimg/Desktop/Aforc_
NCEP/
>> make_NCEP
??? Undefined function or variable 'romstools_param'.

Error in ==> make_NCEP at 47
romstools_param

>>

James
......................................................................................

This is because the romstools_params.m is not in the path

Please have a look in the link              

http://roms.mpl.ird.fr/

Download the ROMSTOOLS_v2.1 toolbox from the download option and the required datasets

Please follow the documentation given in the link as USER's Guide

I have done upto the short and long time simulation

But I am still in problem with the Inter-Annual simulations



--
***************************************************************
Kaushik Sasmal

Gallagher James

unread,
Dec 27, 2010, 1:03:19 PM12/27/10
to Kaushik Sasmal, sup...@opendap.org
Kaushik,

There is something really strange about this. From my cursory look at the NCEP code, you're going to need loaddap working and for some reason it's not working on your computer. You can run writedap from the command line successfully. The version response shows that loaddap itself runs.

Two questions: Have you previously installed an older version of loaddap? Where are the loaddap.mex* and writedap programs?

James

Kaushik Sasmal

unread,
Dec 27, 2010, 11:47:10 PM12/27/10
to sup...@opendap.org
Kaushik,

There is something really strange about this. From my cursory look at the NCEP code, you're going to need loaddap working and for some reason it's not working on your computer. You can run writedap from the command line successfully. The version response shows that loaddap itself runs.

Two questions: Have you previously installed an older version of loaddap? Where are the loaddap.mex* and writedap programs?

James



##############################################################


Finally loaddap and writedap is working with Matlab

I think the problem was with a linking library

From terminal when run matlab It was showing some problem with libstdc++.so.6

I copied libstdc++.so.6 to         /usr/local/lib

Now loaddap is working in Matlab


I thank you once again for your unending help to install loaddap and writedap. 
Reply all
Reply to author
Forward
0 new messages