Re: Remote file access

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Jun 24 2010 - 07:51:10 MDT

    fname =
systemfunc("sftp....usrid....@....ipaddress....:/.....path....../.......filename.nc")

    f = addfile(fname, "r")

See The Mini-Language manual at
   http://www.ncl.ucar.edu/Document/Manuals/

On 6/24/10 4:38 AM, gibies george wrote:
> Hello NCL users.
>
> I have a dataset kept in a remote server. I would like to access it
> using NCL in my pc and get the output plot saved at a folder in my pc. I
> tried the following script.
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> begin
>
> file1= addfile("sftp
> ....usrid....@....ipaddress....:/.....path....../.......filename.nc
> <http://filename.nc>", "r")
>
> ......................................................................
> ...............analysis script .........................
> ......................................................................
>
> end
>
> But it shows an error message as follows.
>
> fatal:_NclCreateFile: Requested file does not exist as (sftp
> ....usrid....@....ipaddress....:/.....path....../.......filename.nc
> <http://filename.nc>) or as (sftp
> ....usrid....@....ipaddress....:/.....path....../.......filename), can't
> add file
>
> Can anybody suggest a solution for this problem ?
>
> Thanking you in Advance.
>
> Gibies George,CSIR-RF,
> Climate and Global Modelling Division,
> Indian Institute of Tropical Meteorology,
> Dr. Homi Bhabha Road,
> NCL (P. O.), Pashan,
> Pune 411008, India.
>
> http://sites.google.com/site/gibiesge/
>
> Think about the environment. Please don't print this e-mail unless it is
> necessary.
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jun 24 07:51:19 2010

This archive was generated by hypermail 2.1.8 : Thu Jun 24 2010 - 14:10:27 MDT