Re: [ncl-install] Moving NCL installation directory

From: Mateus Teixeira <mateus.teixeira_at_nyahnyahspammersnyahnyah>
Date: Tue Jun 15 2010 - 20:54:14 MDT

Hi Helen,

I made some tests in my system changing the location of the ncl files. In
the first test, I changed their location to the directory /ncarg and
everything worked well, but it didn't work when I moved them to a directory
which name had blank spaces.

I created a directory /pc test/ncarg, but the ncl didn't work with

setenv NCARG_ROOT /"pc test"/ncarg

or

setenv NCARG_ROOT /pc\ test/ncarg

However, when I moved the files to the directory /ncarg, setting NCARG_ROOT
as

setenv NCARG_ROOT /ncarg

NCL has worked.

So, try to change the name of the directory where you are copying NCL files.

I'm really not sure if linux accepts, in environmental variables, directory
names with blank spaces, but here, in my system, they didn't work.

I hope it helps you!

Best regards,

Mateus

2010/6/15 Helen Parish <hparish@ess.ucla.edu>

> Hi Mateus,
>
> Sorry - I probably should not have mentioned the memory issues, which was
> not my question.
>
> (I have always been running with the data and script files in another
> directory as they are far too large to fit into my home directory !. When
> one runs ncl in the home directory one can watch it use up space in the home
> directory as it runs. It doesnt matter where the files and scripts are kept.
> My system administrator confirmed a few days ago that the only thing I could
> do to help was move ncl out of my home directory onto another disk).
>
> Please could you tell me what I need to do to allow me to run ncl from
> another directory?.
>
> Thanks,
> Helen.
>
>
>
> On Jun 15, 2010, at 7:12 AM, Mateus Teixeira wrote:
>
> Hi Helen,
>
> If I have understood correctly, you want to move to another directory
> because of memory. I think that the memory that you refer is about disk
> space. As soon as I know, the directory of the ncl files does not affect it.
>
> If you are experiencing problems with your disk space executing your
> scripts in your home directory, try to move only your data and script files
> to another directory, keeping the ncl files in the initial location, i.e.,
> the locations in your old .cshrc.
>
> If you are experiencing problems with memory, I think that you should talk
> with your system administrator, since the location of a program does not
> interfere in the memory usage.
>
> I hope have helped you.
>
> Best regards,
>
> Mateus
>
>
> 2010/6/15 Helen Parish <hparish@ess.ucla.edu>
>
>> Mateus,
>>
>> Here are the lines from the old .cshrc file which work:
>>
>> setenv NCARG_ROOT /Users/helenparish/nc
>> set path=(/Users/helenparish/nc/bin $path)
>> set path=(/Users/helenparish/bin $path)
>>
>> Here are the lines from the new .cshrc:
>>
>> setenv NCARG_ROOT /Volumes/"HP Mac Disk 2"/nc
>> set path=(/Volumes/"HP Mac Disk 2"/nc/bin $path)
>> set path=(/Volumes/"HP Mac Disk 2"/bin $path)
>>
>> Note that the directory /bin simply contains the following:
>>
>> g95 -> /Users/helenparish/g95-install/bin/powerpc-apple-darwin6.8-g95
>>
>> I was not sure exactly how to alter that line when moving directories,
>> even though I had copied the
>> g95 directory to the new disk (as well as leaving a copy in the old home
>> directory) so I also tried the following:
>>
>> setenv NCARG_ROOT /Volumes/"HP Mac Disk 2"/nc
>> set path=(/Volumes/"HP Mac Disk 2"/nc/bin $path)
>> set path=(/Users/helenparish/bin $path)
>>
>> keeping the /bin in its original location.
>>
>> I need to move ncl so that it will run from another directory, because it
>> does not have sufficient memory
>> when running from the home directory (especially given the sizes of the
>> files that i need to process using
>> ncl). I am not sure what happens even if I am still attempting to run g95
>> from the home directory given that I cannot
>> alter the g95 -> statement above, or whether this matters in terms of how
>> much memory is used in the home
>> directory. I am not sure if this has anything to do with the reason that
>> the ncl command is not understood though. The
>> command ncl is not recognised as soon as I type it in.
>>
>> Any help would be appreciated.
>>
>> Thanks,
>> Helen.
>>
>>
>> On Jun 12, 2010, at 3:07 PM, Mateus Teixeira wrote:
>>
>> Helen,
>>
>> Can you provide the lines in both new and old .cshrc files?
>>
>> One alternative is to set NCARG_ROOT and PATH in the /etc/profile or other
>> general configuration file available in your system. To avoid problems with
>> different users I usually set these environmental variables in the
>> /etc/profile of the system.
>>
>> Mateus
>>
>>
>>
>> 2010/6/12 Helen Parish <hparish@ess.ucla.edu>
>>
>>> I have been using NCL successfully for a while, with it installed in
>>> my home (login) directory. I now want to be able to run the code from
>>> another directory on the same computer.
>>>
>>> I have moved the /nc directory to the disk where I want to use the
>>> code from. In my home directory I have changed the statements in
>>> the .cshrc file beginning "setenv NCARG_ROOT" and "set path =" , to
>>> contain the new directory paths.
>>> However, the command "ncl" is no longer recognised. If I move the /nc
>>> directory back to its original location and replace the new .cshrc
>>> with the old one then ncl works again.
>>>
>>> Does anyone know if there is something else I need to do in order to
>>> get ncl working from a new directory ?.
>>>
>>> Thanks,
>>> Helen.
>>> _______________________________________________
>>> ncl-install mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>>>
>>
>>
>>
>> --
>> Mateus da Silva Teixeira
>>
>> Registered Linux User #466740 (http://counter.li.org/)
>>
>> --
>> This message has been scanned for viruses and
>> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
>>
>> believed to be clean.
>>
>>
>>
>
>
> --
> Mateus da Silva Teixeira
>
> Registered Linux User #466740 (http://counter.li.org/)
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
>
>
>

-- 
Mateus da Silva Teixeira
Registered Linux User #466740 (http://counter.li.org/)

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jun 15 20:54:21 2010

This archive was generated by hypermail 2.1.8 : Wed Jun 16 2010 - 15:28:33 MDT