[ncl-talk] Time series at each grid point from a netcdf file

Dennis Shea shea at ucar.edu
Fri Oct 9 09:24:30 MDT 2020


PLEASE start a new thread [Subject] when you have a new question.

Please read the* NCL User Guide*
<https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/NCL_User_Guide_v1.1_A4.pdf>

NCL syntax can be used

TN10pd*!0* = "time"



On Fri, Oct 9, 2020 at 6:28 AM Baljinnyam N <n.baljin at gmail.com> wrote:

>
> Hello,
>
> I would like to name the time dimension in my data. Please give me advice
> on this?
> Thank you, all
>
> ----------------------------------Summary of the
> data----------------------------------------------
> Variable: TN10pd
> Type: float
> Total Size: 497664000 bytes
>             124416000 values
> Number of Dimensions: 3
> Dimensions and sizes: [480] x [lat | 360] x [lon | 720]
> Coordinates:
>             lat: [89.75..-89.75]
>             lon: [0.25..359.75]
> Number Of Attributes: 16
>   time : 692496
>   units : degC
>   actual_range : ( -65.84994,  0 )
>   comments : GTS data and is gridded using the Shepard Algorithm
>   max_period : 6z to 6z
>   dataset : CPC Global Temperature
>   avg_period : 0000-00-01 00:00:00
>   valid_range : ( -90, 50 )
>   cell_methods : time: mean
>   long_name : Daily Minimum Temperature
>   parent_stat : Other
>   statistic : Minimum
>   level_desc : Surface
>   var_desc : Minimum Temperature
>   missing_value : -9.96921e+36
>   _FillValue : -9.96921e+36
>
>
>  ----------------------------------------------------------------------------------------------------------------
>
> On Fri, Oct 9, 2020 at 5:56 PM Zilore Mumba via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Thanks! Dennis, I will try the code as soon as I have access to my
>> computer.
>> For Rick, I want the output in text (txt) format. If I can have each grid
>> point on a line, then I can run fortran on the data outside of the ncl
>> script. I am assuming this is what the code from Dennis does. I will try it
>>
>> On Fri, Oct 9, 2020 at 4:24 AM Dennis Shea <shea at ucar.edu> wrote:
>>
>>>    prc(time,lat,lon)
>>> ---------------------
>>>    dimprc = dimsizes(prc)
>>>    ntim = dimprc(0)
>>>    nlat  = dimprc(1)
>>>    mlon = dimprc(2)
>>>
>>> ; loop over each grid point
>>>
>>>    do nl=0,nlat-1
>>>       do ml=0,mlon-1
>>>            prcts = prc(:,nl,ml)      ; prc(tim)   <=== time series
>>>            :
>>>           [use NCL or invoke fortran via a shared object]
>>>            :
>>>       end do    ; ml
>>>    end do       ; nl
>>>
>>> On Thu, Oct 8, 2020 at 1:58 PM Zilore Mumba via ncl-talk <
>>> ncl-talk at mailman.ucar.edu> wrote:
>>>
>>>> I have a netcdf file containing daily precipitation data over 30 years
>>>> on a grid of 96 points in x and 99 points in y. I would like to work with
>>>> the data on a grid-point by grid-point basis. I think this would be best
>>>> achieved by having a time series of the data at each grid point. I can then
>>>> use, eg. fortran to make some computation, such as the start/end of the wet
>>>> session.
>>>> I wonder if someone would have a script that can generate such time
>>>> series. My search in the ncl documentation and archives achieves nothing.
>>>> I will appreciate any help or advice on this.
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> ncl-talk at mailman.ucar.edu
>>>> List instructions, subscriber options, unsubscribe:
>>>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> --
>
> *Master Course student,*
>
> Atmospheric Dynamic Laboratory
>
> Department Of Climate And Energy System Engineering
> Ewha Womans University
> Research Cooperation Building 408, 52, Ewhayeodae-gil, Seodaemun-gu,
> Seoul, 03760, Korea.
> *Engineer*
> Research Division of Climate Change and Resources
> Information & Research Institute of Meteorology, Hydrology and Environment
> Department of Meteorology
> Juulchny street-5,Ulaanbaatar-Mongolia
> Mobile: +976 88051007
> E-mail: n.baljin at gmail.com
>             :baljinnyam at irimhe.namem.gov.mn
> Уур амьсгалын  өөрчлөлт, нөөцийн судалгааны хэлтэс
> Ус цаг уур орчны судалгаа мэдээллийн хүрээлэн
> Цаг уур орчны шинжилгээний газар
> Жуулчны гудамж - 5 Улаанбаатар , Монгол
> Утас: 976 88051007
> Ажлын утас: 11 326612
> Емэйл хайг: n.baljin at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201009/04c50ab3/attachment.html>


More information about the ncl-talk mailing list