[ncl-talk] (no subject)

Karin Meier-Fleischer meier-fleischer at dkrz.de
Mon Sep 10 03:48:55 MDT 2018


Hi Elham,

it doesn't work because you reference the variables to the wrong file 
name. You reference the opened file

     f = addfile( ptheos+".he2", "r")

then you have to reference the variables of the file to f

     lon =  f->Longitude_2B_GEOPROF
     lev = f->Height_2B_GEOPROF

NCL tells you exactly what is going wrong so read the messages carefully 
and it will be easier for you to solve the problems.

By the way, you can run an NCL script, e.g. myscript.ncl, not by copying 
it to the interactive session but in teh terminal doing

     ncl myscript.ncl

-Karin


Am 10.09.18 um 11:03 schrieb Elham Ghasemifar:
>
> Dear colleges
>
> hello
>
> i ran the script but i dont know why the error are occured, please 
> help me.
>
>
>
> cript started on lun 10 sep 2018 10:58:22 CEST
> ]0;root at ephyslab: /home/elhamroot 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> direos = "/home/elham/Desktop/"
> ncl 1>  eos_file= 
> "2011040011644_25451_CS_2B-GEOPROF_GRANULE_P1_R05_E03_F00.hdf"
> ncl 2> ptheos = direos+ eos_file
> ncl 3> f = addfile( ptheos+".he2", "r")   ; treat as HDF-EOS2 file
> ncl 4> print(f)
>
> Variable: f
> Type: file
> filename:  2011040011644_25451_CS_2B-GEOPROF_GRANULE_P1_R05_E03_F00.hdf
> path: 
>  /home/elham/Desktop/2011040011644_25451_CS_2B-GEOPROF_GRANULE_P1_R05_E03
> _F00.hdf
>    file global attributes:
>       sem_MDSignal_missop_2B_GEOPROF : ==
>       sem_MDSignal_missing_2B_GEOPROF : 9999
>       sem_MDSignal_valid_range_2B_GEOPROF : ( -35, -20 )
>       sem_MDSignal_units_2B_GEOPROF : dBZe
>       sem_MDSignal_long_name_2B_GEOPROF : minimum detectable signal
>       sem_MDSignal_offset_2B_GEOPROF :  0
>       sem_MDSignal_factor_2B_GEOPROF :  1
>       Clutter_reduction_flag_long_name_2B_GEOPROF : 
> Clutter_reduction_flag
>       Clutter_reduction_flag_offset_2B_GEOPROF :  0
>       Clutter_reduction_flag_factor_2B_GEOPROF :  1
>       Navigation_land_sea_flag_valid_range_2B_GEOPROF : ( 1, 4 )
>       Navigation_land_sea_flag_units_2B_GEOPROF : --
>       Navigation_land_sea_flag_long_name_2B_GEOPROF : Land Sea Flag
>       Navigation_land_sea_flag_offset_2B_GEOPROF :  0
>       Navigation_land_sea_flag_factor_2B_GEOPROF :  1
>       sem_NoiseGate_missop_2B_GEOPROF : ==
> --More--       sem_NoiseGate_missing_2B_GEOPROF : 0
>       sem_NoiseGate_long_name_2B_GEOPROF : Noise Floor and Noise 
> Variance estima
> te  based on window of a fixed size centered at this range bin.
>       sem_NoiseGate_offset_2B_GEOPROF :  0
>       sem_NoiseGate_factor_2B_GEOPROF :  1
>       sem_NoiseFloorVar_missop_2B_GEOPROF : ==
>       sem_NoiseFloorVar_missing_2B_GEOPROF :  0
>       sem_NoiseFloorVar_long_name_2B_GEOPROF : Noise Variance in 
> measured return
>  (i.e. Echo) power
>       sem_NoiseFloorVar_offset_2B_GEOPROF :  0
>       sem_NoiseFloorVar_factor_2B_GEOPROF :  1
> --More-- sem_NoiseFloor_missop_2B_GEOPROF : ==
>       sem_NoiseFloor_missing_2B_GEOPROF :  0
>       sem_NoiseFloor_long_name_2B_GEOPROF : Noise Floor calculated in 
> Cloud_Mask
> ing Routine
>       sem_NoiseFloor_offset_2B_GEOPROF :  0
>       sem_NoiseFloor_factor_2B_GEOPROF :  1
>       CPR_Echo_Top_missop_2B_GEOPROF : ==
>       CPR_Echo_Top_missing_2B_GEOPROF : -9
>       CPR_Echo_Top_valid_range_2B_GEOPROF : ( 0, 5 )
>       CPR_Echo_Top_long_name_2B_GEOPROF : CPR Echo Top Characterizations
>       CPR_Echo_Top_offset_2B_GEOPROF :  0
>       CPR_Echo_Top_factor_2B_GEOPROF :  1
>       MODIS_scene_var_missop_2B_GEOPROF : ==
>       MODIS_scene_var_missing_2B_GEOPROF : -9
>       MODIS_scene_var_valid_range_2B_GEOPROF : ( 0, 5 )
>       MODIS_scene_var_long_name_2B_GEOPROF : MODIS scene variability
>       MODIS_scene_var_offset_2B_GEOPROF :  0
>       MODIS_scene_var_factor_2B_GEOPROF :  1
>       MODIS_scene_char_missop_2B_GEOPROF : ==
>       MODIS_scene_char_missing_2B_GEOPROF : -9
>       MODIS_scene_char_valid_range_2B_GEOPROF : ( 0, 9 )
>       MODIS_scene_char_long_name_2B_GEOPROF : MODIS scene 
> characterizations
>       MODIS_scene_char_offset_2B_GEOPROF :  0
> --More-- 53 MODIS_scene_char_factor_2B_GEOPROF :  1
>       MODIS_Cloud_Fraction_missop_2B_GEOPROF : ==
>       MODIS_Cloud_Fraction_missing_2B_GEOPROF : -99
>       MODIS_Cloud_Fraction_valid_range_2B_GEOPROF : ( 0, 100 )
>       MODIS_Cloud_Fraction_long_name_2B_GEOPROF : MODIS 250m Cloud 
> Fraction
>       MODIS_Cloud_Fraction_offset_2B_GEOPROF :  0
>       MODIS_Cloud_Fraction_factor_2B_GEOPROF :  1
>       MODIS_cloud_flag_missop_2B_GEOPROF : ==
>       MODIS_cloud_flag_missing_2B_GEOPROF : 99
>       MODIS_cloud_flag_valid_range_2B_GEOPROF : ( 0, 3 )
>       MODIS_cloud_flag_units_2B_GEOPROF : None
>       MODIS_cloud_flag_long_name_2B_GEOPROF : MOD35_bit_2and3_cloud_flag
>       MODIS_cloud_flag_offset_2B_GEOPROF :  0
>       MODIS_cloud_flag_factor_2B_GEOPROF :  1
>       Sigma_Zero_missop_2B_GEOPROF : ==
>       Sigma_Zero_missing_2B_GEOPROF : -9999
>       Sigma_Zero_valid_range_2B_GEOPROF : ( -1000, 4000 )
>       Sigma_Zero_units_2B_GEOPROF : dB*100
>       Sigma_Zero_long_name_2B_GEOPROF : Sigma-Zero
>       Sigma_Zero_offset_2B_GEOPROF :  0
>       Sigma_Zero_factor_2B_GEOPROF :  1
>       Radar_Reflectivity_missop_2B_GEOPROF : ==
>       Radar_Reflectivity_missing_2B_GEOPROF : -8888
> --More--  
> ...skipping one line
>        Radar_Reflectivity_units_2B_GEOPROF : dBZe
>       Radar_Reflectivity_long_name_2B_GEOPROF : Radar Reflectivity Factor
>       Radar_Reflectivity_offset_2B_GEOPROF :  0
>       Radar_Reflectivity_factor_2B_GEOPROF : 100
>       Gaseous_Attenuation_missop_2B_GEOPROF : ==
>       Gaseous_Attenuation_missing_2B_GEOPROF : -9999
>       Gaseous_Attenuation_valid_range_2B_GEOPROF : ( 0, 1000 )
>       Gaseous_Attenuation_units_2B_GEOPROF : dBZe
>       Gaseous_Attenuation_long_name_2B_GEOPROF : Gaseous_Attenuation
>       Gaseous_Attenuation_offset_2B_GEOPROF :  0
>       Gaseous_Attenuation_factor_2B_GEOPROF : 100
>       CPR_Cloud_mask_missop_2B_GEOPROF : ==
>       CPR_Cloud_mask_missing_2B_GEOPROF : -9
>       CPR_Cloud_mask_valid_range_2B_GEOPROF : ( 0, 40 )
>       CPR_Cloud_mask_long_name_2B_GEOPROF : CPR Cloud Mask
>       CPR_Cloud_mask_offset_2B_GEOPROF :  0
>       CPR_Cloud_mask_factor_2B_GEOPROF :  1
>       SurfaceHeightBin_fraction_missing_2B_GEOPROF :  0
>       SurfaceHeightBin_fraction_units_2B_GEOPROF : none
>       SurfaceHeightBin_fraction_long_name_2B_GEOPROF : 
> SurfaceHeightBin_fraction
>       SurfaceHeightBin_fraction_offset_2B_GEOPROF :  0
>       SurfaceHeightBin_fraction_factor_2B_GEOPROF :  1
>       SurfaceHeightBin_missop_2B_GEOPROF : ==
> --More--  
> ...skipping 23 lines
>        Data_quality_offset_2B_GEOPROF :  0
>       Data_quality_factor_2B_GEOPROF :  1
>       Roll_offset_valid_range_2B_GEOPROF : ( -90, 90 )
>       Roll_offset_units_2B_GEOPROF : degrees
>       Roll_offset_long_name_2B_GEOPROF : Nominal satellite roll angle 
> offset fro
> m nadir
>       Roll_offset_offset_2B_GEOPROF :  0
>       Roll_offset_factor_2B_GEOPROF :  1
>       Pitch_offset_valid_range_2B_GEOPROF : ( -90, 90 )
>       Pitch_offset_units_2B_GEOPROF : degrees
>       Pitch_offset_long_name_2B_GEOPROF : Nominal satellite pitch 
> angle offset f
> rom nadir
>       Pitch_offset_offset_2B_GEOPROF :  0
>       Pitch_offset_factor_2B_GEOPROF :  1
>       Vertical_binsize_missop_2B_GEOPROF : ==
>       Vertical_binsize_missing_2B_GEOPROF : -9999
>       Vertical_binsize_units_2B_GEOPROF : m
>       Vertical_binsize_offset_2B_GEOPROF :  0
>       Vertical_binsize_factor_2B_GEOPROF :  1
>       DEM_elevation_missop_2B_GEOPROF : ==
>       DEM_elevation_missing_2B_GEOPROF : 9999
>       DEM_elevation_valid_range_2B_GEOPROF : ( -9999, 8850 )
>       DEM_elevation_units_2B_GEOPROF : meters
> --More-- DEM_elevation_long_name_2B_GEOPROF : Digital 
> Elevation Map
>       DEM_elevation_offset_2B_GEOPROF :  0
>       DEM_elevation_factor_2B_GEOPROF :  1
>       Range_to_intercept_valid_range_2B_GEOPROF : ( 600, 800 )
>       Range_to_intercept_units_2B_GEOPROF : km
>       Range_to_intercept_long_name_2B_GEOPROF : Range from the 
> spacecraft to the
>  CPR boresight intercept with the geoid
>       Range_to_intercept_offset_2B_GEOPROF :  0
>       Range_to_intercept_factor_2B_GEOPROF :  1
>       Height_missop_2B_GEOPROF : ==
>       Height_missing_2B_GEOPROF : -9999
> --More--  
> ...skipping 23 lines
>        UTC_start_offset_2B_GEOPROF :  0
>       UTC_start_factor_2B_GEOPROF :  1
>       Profile_time_valid_range_2B_GEOPROF : (  0, 6000 )
>       Profile_time_units_2B_GEOPROF : seconds
>       Profile_time_long_name_2B_GEOPROF : Seconds since the start of 
> the granule
> .
>       Profile_time_offset_2B_GEOPROF :  0
>       Profile_time_factor_2B_GEOPROF :  1
>       end_time_2B_GEOPROF : 20110209025537
>       start_time_2B_GEOPROF : 20110209011644
>       product_version_2B_GEOPROF : P1_R0
>       algorithm_version_2B_GEOPROF : P1_R05.
>       algorithm_name_2B_GEOPROF : 2B-GEOPROF
>       ID_CREATED_2B_GEOPROF : Wed Jan 24 21:49:27 2018
>       ID_MACHINE_2B_GEOPROF : CSATLAS1
>       ID_CENTER_URL_2B_GEOPROF : http://cloudsat.cira.colostate.edu
>       ID_CENTER_2B_GEOPROF : CloudSat Data Processing Center
>       ID_SITE_2B_GEOPROF : Cooperative Institute for Research in the 
> Atmosphere
>       granule_number_2B_GEOPROF : 25451
>    dimensions:
>       nray_2B_GEOPROF = 37082
>       scalar_2B_GEOPROF = 1
>       nbin_2B_GEOPROF = 125
> --More--    variables:
> --More--       float sem_MDSignal_2B_GEOPROF ( nray_2B_GEOPROF )
> --More--          hdfeos_name :    sem_MDSignal
>          _FillValue :    9999
>
>       byte Clutter_reduction_flag_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    Clutter_reduction_flag
>
>       byte Navigation_land_sea_flag_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    Navigation_land_sea_flag
>          unsigned :    True
>
>       byte sem_NoiseGate_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    sem_NoiseGate
>          _FillValue :    0
>
>       float sem_NoiseFloorVar_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    sem_NoiseFloorVar
>          _FillValue :     0
>
>       float sem_NoiseFloor_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    sem_NoiseFloor
>          _FillValue :     0
>
>       byte CPR_Echo_Top_2B_GEOPROF ( nray_2B_GEOPROF )
> --More--          hdfeos_name :    CPR_Echo_Top
>          _FillValue :    -9
>
>       byte MODIS_scene_var_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    MODIS_scene_var
>          _FillValue :    -9
>
>       byte MODIS_scene_char_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    MODIS_scene_char
>          _FillValue :    -9
>
>       byte MODIS_Cloud_Fraction_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    MODIS_Cloud_Fraction
>          _FillValue :    -99
>
>       byte MODIS_cloud_flag_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    MODIS_cloud_flag
>          _FillValue :    99
>
>       short Sigma_Zero_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    Sigma-Zero
>          _FillValue :    -9999
>
> --More--       short Radar_Reflectivity_2B_GEOPROF ( 
> nray_2B_GEOPROF, nbin_2B_GEOPROF )
>          hdfeos_name :    Radar_Reflectivity
>          _FillValue :    -8192
>
>       short Gaseous_Attenuation_2B_GEOPROF ( nray_2B_GEOPROF, 
> nbin_2B_GEOPROF )
>          hdfeos_name :    Gaseous_Attenuation
>          _FillValue :    15360
>
>       byte CPR_Cloud_mask_2B_GEOPROF ( nray_2B_GEOPROF, nbin_2B_GEOPROF )
>          hdfeos_name :    CPR_Cloud_mask
>          _FillValue :    -9
>
>       float SurfaceHeightBin_fraction_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    SurfaceHeightBin_fraction
>          _FillValue :     0
>
>       byte SurfaceHeightBin_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    SurfaceHeightBin
>
>       byte RayStatus_validity_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    RayStatus_validity
>          unsigned :    True
>
> --More-- 270       byte Data_targetID_2B_GEOPROF ( 
> nray_2B_GEOPROF )
>          hdfeos_name :    Data_targetID
>          unsigned :    True
>
>       short Data_status_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    Data_status
>          unsigned :    True
>
>       byte Data_quality_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    Data_quality
>          unsigned :    True
>
>       float Roll_offset_2B_GEOPROF ( scalar_2B_GEOPROF )
>          hdfeos_name :    Roll_offset
>
>       float Pitch_offset_2B_GEOPROF ( scalar_2B_GEOPROF )
>          hdfeos_name :    Pitch_offset
>
>       float Vertical_binsize_2B_GEOPROF ( scalar_2B_GEOPROF )
>          hdfeos_name :    Vertical_binsize
>
>       short DEM_elevation_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    DEM_elevation
> --More--          _FillValue :    9999
>
>       float Range_to_intercept_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    Range_to_intercept
>
>       short Height_2B_GEOPROF ( nray_2B_GEOPROF, nbin_2B_GEOPROF )
>          hdfeos_name :    Height
>          _FillValue :    -9999
>
>       float Longitude_2B_GEOPROF ( nray_2B_GEOPROF )
>          long_name :    longitude
>          units :    degrees_east
>          hdfeos_name :    Longitude
>
>       float Latitude_2B_GEOPROF ( nray_2B_GEOPROF )
>          long_name :    latitude
>          units :    degrees_north
>          hdfeos_name :    Latitude
>
>       double TAI_start_2B_GEOPROF ( scalar_2B_GEOPROF )
>          hdfeos_name :    TAI_start
>
>       float UTC_start_2B_GEOPROF ( scalar_2B_GEOPROF )
> --More--  
> ...skipping one line
>
>       float Profile_time_2B_GEOPROF ( nray_2B_GEOPROF )
>          hdfeos_name :    Profile_time
>
> ncl 5> _file->Latitude_2B_GEOPROF
> fatal:syntax error: line 5 before or near \n
> _file->Latitude_2B_GEOPROF
> --------------------------^
>
>  fatal:syntax error: possibly an undefined procedure
>  ncl 6>
> ncl 7>   lon =  eos_file->Longitude_2B_GEOPROF
> fatal:(eos_file) not reference to a valid file
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 7
>
>  ncl 8>
> ncl 9>   lev = eos_file->Height_2B_GEOPROF
> fatal:(eos_file) not reference to a valid file
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 9
>
>  ncl 10>
> ncl 11> ; The following name is too long for axis.
> ncl 12> ; lev at long_name = eos_file at Height_long_name_2B_GEOPROF
> ncl 13> ; The name also has the reserved '~' character. Escape the '~' 
> character.
> ncl 14> ; lev at long_name=str_sub_str(lev at long_name, "~", "~~")
> ncl 15>   lev at long_name = "Height"
> fatal:Variable (lev) is undefined, can not assign attribute (long_name)
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 15
>
>  ncl 16>   lev at units = eos_file at Height_units_2B_GEOPROF
> warning:Attempt to reference attribute (Height_units_2B_GEOPROF) which 
> is undefined
>  fatal:Variable (lev) is undefined, can not assign attribute (units)
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 16
>
>  ncl 17>
> ncl 18>   time = eos_file->Profile_time_2B_GEOPROF
> fatal:(eos_file) not reference to a valid file
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 18
>
>  ncl 19>
> ncl 20>   time at long_name = eos_file at Profile_time_long_name_2B_GEOPROF
> warning:Attempt to reference attribute 
> (Profile_time_long_name_2B_GEOPROF) which is undefined
>  fatal:Variable (time) is undefined, can not assign attribute (long_name)
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 20
>
>  ncl 21>   time at units = eos_file at Profile_time_units_2B_GEOPROF
> warning:Attempt to reference attribute (Profile_time_units_2B_GEOPROF) 
> which is undefined
>  fatal:Variable (time) is undefined, can not assign attribute (units)
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 21
>
>  ncl 22>
> ncl 23>   hdf4_file=addfile(file_name,"r")
> fatal:Variable (file_name) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 23
>
>  ncl 24>   print(hdf4_file)
> fatal:Variable (hdf4_file) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 24
>
>  ncl 25>   data_hdf4 = hdf4_file->Radar_Reflectivity
> fatal:Undefined identifier: (hdf4_file) is undefined, can't continue
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 25
>
>  ncl 26>
> ncl 27> ; Process valid_range. Fill value and missing value will be 
> handled by this
> ncl 28> ; since they are outside of range values.
> ncl 29>   data = where(data_raw.gt.data_hdf4 at valid_range(0) .and. 
> data_raw.lt.data_hdf4 at valid_range(1), data_raw, data_hdf4 at _FillValue)
> fatal:Variable (data_raw) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 29
>
>  ncl 30>
> ncl 31> ; Apply factor according to the data spec [1].
> ncl 32>   data at _FillValue = data_hdf4 at _FillValue
> fatal:Variable (data_hdf4) is still undefined, unable to reference 
> attribute _FillValue
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 32
>
>  ncl 33>   dataf = tofloat(data)
> fatal:Variable (data) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 33
>
>  ncl 34>   dataf = dataf / data_hdf4 at factor
> fatal:Variable (dataf) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 34
>
>  ncl 35>
> ncl 36>   dataf!0 = data_raw!0
> fatal:["Execute.c":8126]:Execute: Error occurred at or near line 36
>
>  ncl 37>   dataf!1 = data_raw!1
> fatal:["Execute.c":8126]:Execute: Error occurred at or near line 37
>
>  ncl 38>
> ncl 39> ; Although 2D height values are all slightly different at each 
> profile
> ncl 40> ; time, the difference is not significant. Pick the first one 
> only since
> ncl 41> ; NCL doesn't allow 2D array for axis variable.
> ncl 42>   dataf&nbin_2B_GEOPROF = lev(0,:)
> fatal:Undefined identifier: (lev) is undefined, can't continue
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 42
>
>  ncl 43>   dataf&nray_2B_GEOPROF = time
> fatal:Variable (time) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 43
>
>  ncl 44>
> ncl 45>   xwks = gsn_open_wks("pdf", file_name + ".ncl") ; open 
> workstation
> fatal:Undefined identifier: (gsn_open_wks) is undefined, can't continue
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 45
>
>  ncl 46>
> ncl 47>   gsn_define_colormap(xwks,"BlAqGrYeOrReVi200") ; define colormap
> fatal:syntax error: line 47 before or near ; define colormap
>
>   gsn_define_colormap(xwks,"BlAqGrYeOrReVi200") ; define colormap
> ^
>
>  fatal:syntax error: possibly an undefined procedure
>  ncl 48>
> ncl 49>   res = True                           ; plot mods desired
> ncl 50>   res at cnFillOn = True                  ; enable contour fill
> ncl 51>   res at gsnMaximize = True               ; make plot large
> ncl 52>   res at gsnPaperOrientation = "portrait" ; force portrait 
> orientation
> ncl 53>   res at cnLinesOn = False                ; turn off contour lines
> ncl 54>   res at cnLineLabelsOn = False           ; turn off contour line 
> labels
> ncl 55>   res at gsnSpreadColors = True           ; use the entire color 
> spectrum
> ncl 56>   res at cnFillMode = "RasterFill"        ; faster
> ncl 57>   res at lbOrientation = "vertical"       ; vertical labels
> ncl 58>   res at cnMissingValFillPattern = 0 ; missing value pattern is 
> set to "SolidFill"
> ncl 59>   res at cnMissingValFillColor = 0   ; white color for missing 
> values
> ncl 60>   res at lbLabelAutoStride = True    ; ensure no label overlap
> ncl 61>   res at tiMainString = file_name
> fatal:Variable (file_name) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 61
>
>  ncl 62>   res at tiXAxisString = time at long_name+" ("+time at units+")"
> fatal:Variable (time) is still undefined, unable to reference 
> attribute long_name
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 62
>
>  ncl 63>   res at tiYAxisString = lev at long_name+" ("+lev at units+")"
> fatal:Variable (lev) is still undefined, unable to reference attribute 
> long_name
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 63
>
>  ncl 64>   res at gsnLeftString=data_hdf4 at long_name
> fatal:Variable (data_hdf4) is still undefined, unable to reference 
> attribute long_name
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 64
>
>  ncl 65>   res at gsnRightString=data_hdf4 at units
> fatal:Variable (data_hdf4) is still undefined, unable to reference 
> attribute units
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 65
>
>  ncl 66>
> ncl 67>   plot=gsn_csm_contour(xwks, 
> dataf(nbin_2B_GEOPROF|:,nray_2B_GEOPROF|:), res)
> fatal:Undefined identifier: (gsn_csm_contour) is undefined, can't 
> continue
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 67
>
>  ncl 68>
> ncl 69> ; Create a trajectory plot.
> ncl 70>   mpres = True; Plot options desired.
> ncl 71>   mpres at tiMainString = "Trajectory of Satellite Path 
> ('+':starting point)"
> ncl 72>   mpres at gsnFrame = False ; Don't advance the frame
> ncl 73>   mpres at gsnMaximize= True
> ncl 74>   mpres at mpLandFillColor= "Green"; color of land
> ncl 75>   mpres at gsnPaperOrientation= "portrait"; force portrait
> ncl 76>   plot = gsn_csm_map_ce(xwks,mpres) ; Draw map
> fatal:Undefined identifier: (gsn_csm_map_ce) is undefined, can't continue
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 76
>
>  ncl 77>
> ncl 78>   pres = True                    ;polyline resources
> ncl 79>   pres at gsLineThicknessF = 2.0    ;line thickness
> ncl 80>   pres at gsLineColor = "blue"
> ncl 81>   gsn_polyline(xwks,plot,lon,lat,pres) ; plot trajectory line
> fatal:syntax error: line 81 before or near ; plot trajectory line
>
>   gsn_polyline(xwks,plot,lon,lat,pres) ; plot trajectory line
> ^
>
>  fatal:syntax error: possibly an undefined procedure
>  ncl 82>
> ncl 83>   sres = True;  poly marker resources
> ncl 84>   sres at gsMarkerSizeF= 20.0; Marker size
> ncl 85>   sres at gsMarkerThicknessF = 5.0 ; Marker thickness
> ncl 86>   sres at gsMarkerColor= "red"; Marker color
> ncl 87>   sres at gsMarkerIndex= 2 ; Marker style
> ncl 88>   gsn_polymarker(xwks,plot,lon(0),lat(0),sres) ; plot 
> trajectory start marker
> fatal:syntax error: line 88 before or near ; plot trajectory start marker
>
>   gsn_polymarker(xwks,plot,lon(0),lat(0),sres) ; plot trajectory start 
> marker
> ^
>
>  fatal:syntax error: possibly an undefined procedure
>  ncl 89>
> ncl 90>   eres = True; poly marker resources
> ncl 91>   eres at gsMarkerSizeF= 20.0; Marker size
> ncl 92>   eres at gsMarkerThicknessF = 5.0 ; Marker thickness
> ncl 93>   eres at gsMarkerColor= "black"; Marker color
> ncl 94>   eres at gsMarkerIndex= 1 ; Marker style
> ncl 95>   end_index = dimsizes(lon) - 1
> fatal:Variable (lon) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 95
>
>  ncl 96> ; plot trajectory end marker
> ncl 97> gsn_polymarker(xwks,plot,lon(end_index),lat(end_index),eres)
> fatal:syntax error: line 97 before or near \n
>   gsn_polymarker(xwks,plot,lon(end_index),lat(end_index),eres)
> ---------------------------------------------------------------^
>
>  fatal:syntax error: possibly an undefined procedure
>  ncl 98>
> ncl 99>   frame(xwks)
> fatal:Variable (xwks) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 99
>
>  ncl 100>
> ncl 101> ; Clean up resources.
> ncl 102>   delete(plot)
> fatal:Variable (plot) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 102
>
>  ncl 103>   delete(eres)
> ncl 104>   delete(sres)
> ncl 105>   delete(pres)
> ncl 106>   delete(mpres)
> ncl 107>   delete(res)
> ncl 108>   delete(xwks)
> fatal:Variable (xwks) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 108
>
>  ncl 109>   delete(data)
> fatal:Variable (data) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 109
>
>  ncl 110>   delete(lat)
> fatal:Variable (lat) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 110
>
>  ncl 111>   delete(lon)
> fatal:Variable (lon) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 111
>
>  ncl 112>   delete(hdf4_file)
> fatal:Variable (hdf4_file) is undefined
>  fatal:["Execute.c":8126]:Execute: Error occurred at or near line 112
>
>  ncl 113>   delete(eos_file)
> ncl 114> end
> fatal:syntax error: line 114 before or near end
> end
> --^
>
>  fatal:error in statement
>  ncl 115> ; References
> ncl 116>
> [1]+  Stopped                 ncl
> ]0;root at ephyslab: /home/elhamroot at ephyslab:/home/elham# end
> No command 'end' found, did you mean:
>  Command 'ed' from package 'ed' (main)
>  Command 'ent' from package 'ent' (universe)
>  Command 'esd' from package 'pulseaudio-esound-compat' (main)
>  Command 'nd' from package 'nd' (universe)
>  Command 'bnd' from package 'bnd' (universe)
>  Command 'snd' from package 'snd-gtk-jack' (universe)
>  Command 'snd' from package 'snd-gtk-pulse' (universe)
>  Command 'snd' from package 'snd-nox' (universe)
>  Command 'eid' from package 'id-utils' (universe)
>  Command 'send' from package 'mailutils-mh' (universe)
>  Command 'send' from package 'nmh' (universe)
>  Command 'env' from package 'coreutils' (main)
>  Command 'and' from package 'and' (universe)
> end: command not found
> ]0;ro
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL, CDO
Application Support

Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany

Phone:    +49 (0)40 460094 126
Fax:      +49 (0)40 460094 270
E-Mail:   meier-fleischer at dkrz.de
URL:      www.dkrz.de

Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180910/d9d66f1d/attachment.html>


More information about the ncl-talk mailing list