[ncl-talk] how to show swantime?

Dennis Shea shea at ucar.edu
Fri Jan 9 15:04:55 MST 2015


Not sure what "swantime" is>

Do you mean "swath time"

===
The file has:

nscan = 2919  // unlimited

      short Year ( nscan )
         units :        years
         hdf_name :     Year

      byte Month ( nscan )
         units :        months
         hdf_name :     Month

      byte DayOfMonth ( nscan )
         units :        days
         hdf_name :     DayOfMonth

      byte Hour ( nscan )
         units :        hours
         hdf_name :     Hour

      byte Minute ( nscan )
         units :        minutes
         hdf_name :     Minute

      byte Second ( nscan )
         units :        s
         hdf_name :     Second

      short MilliSecond ( nscan )
         units :        ms
         hdf_name :     MilliSecond

      short DayOfYear ( nscan )
         units :        days
         hdf_name :     DayOfYear

====
   year = f->year              ; year(2919)
   mon = f->Month
   dom = f->DayOfMonth
   hr     = f->Hour

   nt = 0
   date0 = year(nt)*1000000 + mon(nt)*10000 + dom(nt)*100 + hr(nt)


===

One approach

   res at gsnCenterString = date0

===




On Thu, Jan 8, 2015 at 6:47 PM, JinQing Liu <liujq_0912 at 126.com> wrote:

> Hi, I can plot the hdf data using the scripts in attachment, but how to
> show swantime on picture?
> Thanks!
>
> -liu
>
> --
> Jin-Qing  Liu             *   Assistant Engineer*
> *Hunan Meteorological Observatory,** Hunan Meteorological Administration*
> *Fu-Rong South Road 169, Changsha*
> *P. R. China, 410118*
> --
>
> *从网易126邮箱发来的云附件*
>
> <http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=b-IxK0t-YEFlfbVA54TT7yX2NWcvodAjnh1T2qEQyE6GZxzeJdLOUGB5PPwlyXwQRaRDczfVVyut7ch1JXyQHQ&title=how%20to%20show%20swantime%3F>
> 2A12.20130514.88251.7.HDF.ncl.png
> <http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=b-IxK0t-YEFlfbVA54TT7yX2NWcvodAjnh1T2qEQyE6GZxzeJdLOUGB5PPwlyXwQRaRDczfVVyut7ch1JXyQHQ&title=how%20to%20show%20swantime%3F>
> (78.79K, 2015年2月8日 9:40 到期)
> 在线预览
> <http://fs.163.com/fs/preview/?file=b-IxK0t-YEFlfbVA54TT7yX2NWcvodAjnh1T2qEQyE6GZxzeJdLOUGB5PPwlyXwQRaRDczfVVyut7ch1JXyQHQ&title=how%20to%20show%20swantime%3F>
> | 下载
> <http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=b-IxK0t-YEFlfbVA54TT7yX2NWcvodAjnh1T2qEQyE6GZxzeJdLOUGB5PPwlyXwQRaRDczfVVyut7ch1JXyQHQ&title=how%20to%20show%20swantime%3F>
>
> <http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=b-IxK0t-YEFlfbVA54TT7_CUb5PnX_rhv_HYvxohX2ZI2Gn8PCtZ5I3OmiFQj4J3_VqQin29laFHb6QwILng4g&title=how%20to%20show%20swantime%3F>
> 2A12.20130514.88251.7.HDF
> <http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=b-IxK0t-YEFlfbVA54TT7_CUb5PnX_rhv_HYvxohX2ZI2Gn8PCtZ5I3OmiFQj4J3_VqQin29laFHb6QwILng4g&title=how%20to%20show%20swantime%3F>
> (52.54M, 2015年2月8日 9:39 到期)
> 下载
> <http://fs.163.com/fs/display/?p=X-NETEASE-HUGE-ATTACHMENT&file=b-IxK0t-YEFlfbVA54TT7_CUb5PnX_rhv_HYvxohX2ZI2Gn8PCtZ5I3OmiFQj4J3_VqQin29laFHb6QwILng4g&title=how%20to%20show%20swantime%3F>
>
> _______________________________________________
> ncl-talk mailing list
> 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/20150109/8a110c2e/attachment.html 


More information about the ncl-talk mailing list