[ncl-talk] mask problem
Karin Meier-Fleischer
meier-fleischer at dkrz.de
Sun Nov 4 02:45:41 MST 2018
Hi Jalal,
NCL told you that the variable ORO is not in your file, so take a look at your file and see what it contains. You can use ncl_filedump to do it.
-Karin
> Am 04.11.2018 um 05:24 schrieb Md. Jalal Uddin <dmjalal90 at gmail.com>:
>
> Hi all,
>
> I am getting the following error message when I tried to mask over land.
>
> fatal:["Execute.c":6394]:variable (ORO) is not in file (f)
>
> ;;code
> f= addfile("yearsum2000.nc","r")
> pre = f->pre
> pre_reorder = pre(time|:,latitude|:,longitude|:)
> ;printVarSummary(pre_reorder)
>
>
> oro = f->ORO(0,:,:) ;oro: orography data array (lat,lon). ; assumes that lat and lon are attached to oro as coordinates,. ; and oro has values ocean: 0, land: 1
>
>
> ;;printVarSummary(pre)
>
> Variable: pre
> Type: double
> Total Size: 4608000 bytes
> 576000 values
> Number of Dimensions: 3
> Dimensions and sizes: [time | 1] x [longitude | 1440] x [latitude | 400]
> Coordinates:
> time: [911.75..911.75]
> longitude: [-179.875..179.875]
> latitude: [-49.875..49.875]
> Number Of Attributes: 4
> long_name : precipitation
> units : mm
> _FillValue : -nan
> missing_value : -nan
>
> How can I solve this problem?
>
> Best regards,
> Jalal
> --
> Md. Jalal Uddin
> MSc in Applied Meteorology (English Language)
> Nanjing University of Information, Science and Technology, China
> B.Sc. in Disaster Management (Hons.)
> Patuakhali Science and Technology University, Bangladesh.
> Cell: +8613260859092, +8801792052662
> Web: www.dmjalal90.weebly.com
> Facebook: jalal.hossen.39
> LinkedIn: https://bd.linkedin.com/in/md-jalal-uddin-80a026b0
> Twitter: dmjalal90
> Skype: dmjalal90
> _______________________________________________
> 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/20181104/3b586b41/attachment.html>
More information about the ncl-talk
mailing list