[Thread Prev][Thread Next][Index]

Re: [ferret_users] what is ferret's limit to the full path name for a netCDF data set



Hi all,
This turned out to be due to the issue of piping a script into Ferret - this is discussed in these messages:
http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2004/msg00008.html
http://ferret.pmel.noaa.gov/Ferret/Mail_Archives/fu_2005/msg00790.html

The workaround for this is to either pass the script to Ferret using the -script startup option, which lets you send arguments to the script as an added bonus, or to pass the name of a "wrapper" script to Ferret which calls the desired script

So either

    ferret -script my_script_name.jnl [arguments]

or

    ferret < wrapper.jnl

where wrapper.jnl contains just a few commands, perhaps just the line:

     go my_script_name.jnl


Ansley Manke wrote:
Hi Janeen,
The length is 256 characters. This allows for long local path names and also long DODS URL's. What version of Ferret are you running? What is the path you are trying to open? I created this directory and put a dataset into it, for a path name around 256 characters, and opened the data successfully.

yes? sp mkdir local_files
yes? sp mkdir datadir

yes? sp mkdir local_files/datadir/a234567890b234567890c234567890d234567890e234567890f234567890g234567890h234567890i234567890j234567890k234567890l234567890m234567890n234567890o234567890p234567890q23456789034567890r234567890s234567890t234567890u234567890v123456

yes? let abc = {1,2,3}
yes? clobber/file=aa.nc abc

yes? sp cp aa.nc local_files/datadir/a234567890b234567890c234567890d234567890e234567890f234567890g234567890h234567890i234567890j234567890k234567890l234567890m234567890n234567890o234567890p234567890q23456789034567890r234567890s234567890t234567890u234567890v123456

yes? use "./local_files/datadir/a234567890b234567890c234567890d234567890e234567890f234567890g234567890h234567890i234567890j234567890k234567890l234567890m234567890n234567890o234567890p234567890q23456789034567890r234567890s234567890t234567890u234567890v123456/aa.nc"

yes? show data
yes? list abc

Janeen wrote:
Hello,

I'm trying to find how long a full path for a data set can be, before ferret can't handle it.

For example, I know that a path of 126 characters is too long, but 92 is still accepted.

Anyone know what the actual number is?

Janeen


--

~> ~> ~> ~> ~> ~> ~> ~> ~> ~> ~>
Ansley Manke, NOAA/PMEL   ansley.b.manke@xxxxxxxx
7600 Sand Point Way NE, Seattle WA
Phone 206-526-6246,  FAX 206-526-6744




[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement