[ncl-talk] Loops: CALIPSO backscatter plot
Dennis Shea
shea at ucar.edu
Thu Oct 18 08:22:01 MDT 2018
dir_name =
"/Users/srishtidasarathy/Documents/Bowman/CALIPSO_Data_Processing/Backscatter_Test_Data/"
file_name = systemfunc("cd "+dir_name+" ls
"CAL_LID_L2_05kmAPro-Prov-V3-0*hdf")
nfile = fimsizes(file_name)
; Is there a different file for each hdf or just one file???
altitudes.txt"
If one file than there is no need to loop.
;;dir_txt =
"/Users/srishtidasarathy/Documents/Bowman/CALIPSO_Data_Processing/Backscatter_Test_Data/"
;;txt_name = systemfunc("cd "+dir_asc+" ls altitude........txt")
do nf=0,nfile-1
hdf4_file = addfile(dir_name+file_name(nf), "r")
;;text_file = asciiread(dir_txt+txt_name(nf)....)
...
end do
Please note: any variable that may change size would require NCL's
over-write/replacement syntax: :=
x *:=* .....
On Wed, Oct 17, 2018 at 3:59 PM Srishti Dasarathy <srdasara at ucsd.edu> wrote:
> Dear NCL-Talk,
>
> I want to construct a loop in which I am able to access a directory of hdf
> files to construct a total backscatter coefficient plot. I've been able to
> construct the plot with a single hdf file (text file attached), but I'm
> unsure how to proceed.
>
> The main challenge to me is that I've been able to extract all necessary
> altitude text files into a separate directory, since I was not able to
> access the altitude values straight from the hdf file within NCL itself.
> Because of this, my understanding is that the altitude text files should be
> simultaneously looped through as my hdf files are being looped through in
> order to construct the backscatter plot. Can you please help me with this?
>
> Best wishes,
> Srishti
> --
> Srishti Dasarathy
> Graduate Student
> Scripps Institution of Oceanography
> _______________________________________________
> 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/20181018/ef9525f8/attachment.html>
More information about the ncl-talk
mailing list