[ncl-talk] Selecting Time Error (fatal:Dimension sizes of left hand side and right hand side of assignment do not match)
Rahpeni Fajarianti
rahpenifajarianti at gmail.com
Sat Jan 4 00:51:02 MST 2020
Thank You, on that error message fixed by using reassignment (* time =
a->time* ).
But the data still not selecting as the date time i want (i want to plot
only 20160101-20160102), main dataset i have is 20160101-20171231
*This is my printVarSummary (after reassigntment for the selected date):*
Variable: time
Type: double
Total Size: 256 bytes
32 values
Number of Dimensions: 1
Dimensions and sizes: [time | 32]
Coordinates:
time: [1893408..1894152]
Number Of Attributes: 8
units : hours since 1800-01-01 00:00:0.0
long_name : Time
actual_range : ( 1528872, 1919688 )
delta_t : 0000-00-01 00:00:00
standard_name : time
axis : T
* ending_date : 0000 UTC 31 Dec 2017 beginning_date : 0000 UTC 1 Jan 2016*
Am i wrong coding the time select code?
I also including my script.
On Sat, Jan 4, 2020 at 2:07 PM Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> wrote:
> This error message and possible solution are on the page "Common error
> messages" on the NCL support website.
> https://www.ncl.ucar.edu/Document/Language/error_messages.shtml
>
>
> On Fri, Jan 3, 2020 at 9:31 PM Rahpeni Fajarianti via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
>> Hello NCL User,
>> I am trying to custom time for local minima and maxima_4,
>> https://www.ncl.ucar.edu/Applications/Scripts/minmax_4.ncl
>>
>> And i get this error
>> fatal:Dimension sizes of left hand side and right hand side of assignment
>> do not match
>> fatal:["Execute.c":8635]:Execute: Error occurred at or near line 182
>>
>> ...........
>> *ncl 182> time = a->time ; all times on
>> file*
>> ncl 183> ymd = cd_calendar(time, -2) ; yyyymmdd
>> ncl 184> iStrt = ind(ymd.eq.ymdStrt) ; index start
>> ncl 185> iLast = ind(ymd.eq.ymdLast) ; index last
>> ncl 186> delete(time)
>> ncl 187> delete(ymd)
>> ...........
>>
>> I also include my script
>> Thanks for anybody could help
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200104/5f3e44a4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: maxima minima 2
Type: application/octet-stream
Size: 4664 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200104/5f3e44a4/attachment.obj>
More information about the ncl-talk
mailing list