[ncl-talk] (no subject)
Mary Haley
haley at ucar.edu
Tue Sep 4 14:07:42 MDT 2018
Just a quick observation: the fatal error was telling you exactly where the
problem was:
fatal:syntax error: line 2 before or near /
eos_file=/
-----------^
you were missing a quote mark before the first "/" in the file path:
It should be (I also added the ".he2" that Dennis pointed out):
ncl 2>
eos_file="/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPROF_GRANULE_P1_R05_E03_F00.+".hdf.he2"
--Mary
On Tue, Sep 4, 2018 at 1:48 PM, Dennis Shea <shea at ucar.edu> wrote:
> eos_file=*"*/home/elham/Desktop/2011040011644_25451_CS_2B-GEOP
> ROF_GRANULE_P1_R05_E03_F00.hdf
>
> *.he2"*
> or
>
> direos = "/home/elham/Desktop/"
> fileos = "2011040011644_25451_CS_2B-GEOPROF_GRANULE_P1_R05_E03_F00.hdf
> *"*
> ptheos = direos+fileos
>
> f = *addfile*
> <http://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml>(
> ptheos*+".he2"*, "r") ; treat as HDF-EOS2 file
> *print*(f)
>
> ===
> Please note: *NCL 6.1.2 is 5.5* years old. Please upgrade to the recently
> released NCL 6.5.0
> There have been *MANY* upgrades and additions to NCL's capabilities.
>
> *http://www.ncl.ucar.edu/current_release.shtml*
> <http://www.ncl.ucar.edu/current_release.shtml>
>
> Click 'Downloads'
>
> ===
> If there are installation problems, post questions to ncl-install at ucar.edu
> You must subscribe to this list before posting.
>
> *http://www.ncl.ucar.edu/Support/email_lists.shtml
> <http://www.ncl.ucar.edu/Support/email_lists.shtml>*
>
>
>
> On Tue, Sep 4, 2018 at 10:01 AM, Elham Ghasemifar <
> elham.ghasemifar at modares.ac.ir> wrote:
>
>> Dear colleges
>> hello
>> i ran hdfeos script for cloudsat data with the script,
>> file_name ="2011040011644_25451_CS_2B-GEOPROF_GRANULE_P1_R05_E03_F00.
>> hdf"
>>
>> eos_file=addfile(“/home/elham/Desktop/2011040011644_25451_CS
>> _2B-GEOPROF_GRANULE_P1_R05_E03_F00.hdf”+ ".he2","r")
>> print(eos_file)
>>
>> but i receipt the such error in line 2, what can i do to remove the erorr
>>
>>
>>
>> root at ephyslab:/home/elham# ncl
>> Copyright (C) 1995-2013 - All Rights Reserved
>> University Corporation for Atmospheric Research
>> NCAR Command Language Version 6.1.2
>> The use of this software is governed by a License Agreement.
>> See http://www.ncl.ucar.edu/ for more details.
>> ncl 0> file_name ="2011040011644_25451_CS_2B-GE
>> OPROF_GRANULE_P1_R05_E03_F00.hdf"
>> ncl 1>
>> ncl 2> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".hdfaddfilencl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".hhdfaddfilncl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".hehdfaddfincl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".he2hdfaddfncl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".he2"hdfaddncl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".he2",hdfadncl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".he2","hdfancl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".he2","rhdfncl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".he2","r"hdncl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".he2","r")hncl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".he2","r") ncl 2>
>> eos_file=/home/elham/Desktop/2011040011644_25451_CS_2B-GEOPR
>> OF_GRANULE_P1_R05_E03_F00.+".he2","r")
>> fatal:syntax error: line 2 before or near /
>> eos_file=/
>> -----------^
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180904/3351c1f8/attachment.html>
More information about the ncl-talk
mailing list