[ncl-talk] Output in text file or CSV file

Dennis Shea shea at ucar.edu
Sun Jun 23 21:18:31 MDT 2019


  printVarSummary(circle_lat)              ; [location ] x [radii] x
[circle ]
  print("------------------")
  printVarSummary(circle_lon)              ; [location ] x [radii] x
[circle]
  print("------------------")

  dirCSV = "./"
  do nl=0,2   ; nLoc-1                                     ; loop over each
central location
      filCSV = "CIRCLE_"+nl+".csv"
      pthCSV = dirCSV+filCSV
      *system*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/system.shtml>("/bin/rm
-f "+pthCSV)          ; explicitly remove any pre-existing file
      csv =  *sprintf*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/sprintf.shtml>("%7.2f",
circle_lat(nl,0,:))+" "+*sprintf(*"%7.2f", circle_lon(nl,0,:))+" "+ \
                 *sprintf*("%7.2f", circle_lat(nl,1,:))+" "+*sprintf*("%7.2f",
circle_lon(nl,1,:))+" "+ \
                 *sprintf*("%7.2f", circle_lat(nl,2,:))+" "+*sprintf*("%7.2f",
circle_lon(nl,2,:))
       *asciiwrite*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/asciiwrite.shtml>(pthCSV
, csv)       ;  write CSV
       *delete(csv)*
  end do

On Fri, Jun 21, 2019 at 7:12 AM Md. Jalal Uddin via ncl-talk <
ncl-talk at ucar.edu> wrote:

> Hi all,
>
> We can overlay 3 circles together in a map (example:
> https://www.ncl.ucar.edu/Applications/Scripts/polyg_29.ncl).
> https://www.ncl.ucar.edu/Applications/polyg.shtml
>
> Now, how can I extract 3 circles PRC data in one text file or CSV file?
>
>
>  Best Wishes,
> Jalal
> --
> *Md. Jalal Uddin*
> MSc in Applied Meteorology (English Language)
> Nanjing University of Information, Science and Technology, China
> B.Sc. in Disaster Management (Hons.)
> Patuakhali Science and Technology University, Bangladesh.
> Cell: +8613260859092, +8801792052662
> Web: www.dmjalal90.weebly.com
> Facebook: jalal.hossen.39
> LinkedIn: https://bd.linkedin.com/in/md-jalal-uddin-80a026b0
> Twitter: dmjalal90
> Skype: dmjalal90
> _______________________________________________
> 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/20190623/a0e1cc96/attachment.html>


More information about the ncl-talk mailing list