[ncl-talk] Remove SST data for specific area

Guido Cioni guidocioni at gmail.com
Wed Aug 30 01:04:36 MDT 2017


Dinuka, 
don’t start new topic if the problem is always the same. People will get confused when they search for answers. 

Did you check that your latitude and longitude are 2-D arrays? 
The error is exactly telling you where the problem is.


> Il giorno 30 ago 2017, alle ore 07:30, Dinuka Silva <dinu.kera at gmail.com> ha scritto:
> 
> Hi all,
> 
> I want to remove SST data of one box ({03N - 12N}, {90E- 140E}) and then find the correlation between remaining SST data and rainfall index. I want to know how can I remove the SST data of that box. SST data has 3 dimensions. I used mask function but I got error message. 
> 
> x =  fin2->sst(:,:,:)
> 
>     x at lat2d = fin2->latitude
>     x at lon2d = fin2->longitude
> 
> 
>     latMin  = 03
>     latMax  = 12
>     lonMin  = 90
>     lonMax  = 140
> 
>   x   = mask (x, conform(x, (x at lat2d.ge.latMin .and.x at lat2d.le.latMax .and.x at lon2d.ge.lonMin .and.x at lon2d.le.lonMax), (/1,2/)), True)
> printVarSummary(x)
> 
> 
> The error message : Dimension size, for dimension number 0, of operands does not match, can't continue
> 
> 
> Thanks for your help.
> Dinuka
> 
> 
>  <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>	Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> <x-msg://26/#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>_______________________________________________
> 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/20170830/18de51ba/attachment.html>


More information about the ncl-talk mailing list