[ncl-talk] data_extraction

Dennis Shea shea at ucar.edu
Fri May 12 08:05:41 MDT 2017


??? This not an NCL issue. Please look at your data.

data = a->CERES_SW_TOA_flux___upwards(:)
printVarSummary(data)    ; <===== data[*] one dimension

Variable: data
Number of Dimensions: 1
Dimensions and sizes:    [time | 111455]
Coordinates:
            time: [16526.33308267314..16859.88428081991]


=====
Where is 'data&lat'  ?

You would need:  data(time,lat,lon)

lat1d = ndtooned(conform(data,data&lat,0))
lon1d = ndtooned(conform(data,data&lon,1))

Good ,luck


On Fri, May 12, 2017 at 6:16 AM, Kunal Bali <kunal.bali9 at gmail.com> wrote:

> Dear NCL users
>
> I am trying to extract the data of particular coordinates with
> corresponding times.
> But I am having a problem with reading dimension names.
>
> the error is given below
>
> fatal:(lat) is not a named dimension in variable (data).
> fatal:["Execute.c":8578]:Execute: Error occurred at or near line 136 in
> file mask_data_latlon_polygon1.ncl
>
> the summary of the data is
>
> Variable: data
> Type: float
> Total Size: 445820 bytes
>             111455 values
> Number of Dimensions: 1
> Dimensions and sizes:    [time | 111455]
> Coordinates:
>             time: [16526.33308267314..16859.88428081991]
> Number Of Attributes: 5
>   valid_range :    (  0, 1400 )
>   format :    F18.9
>   units :    Watts per square meter
>   orig_name :    CERES SW TOA flux - upwards
>   _FillValue :    3.402823e+38
>
>
> for extracting the data I am using the attached script.
> please find the attachment
>
> If anyone have the idea then please provide some information on that
>
> Thank You
>
> Regards
> Kunal Bali
>
>
>
>
>
> _______________________________________________
> 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/20170512/559fdc11/attachment.html 


More information about the ncl-talk mailing list