[ncl-talk] mask problem
Dennis Shea
shea at ucar.edu
Sun Nov 4 19:59:55 MST 2018
[1] You could look on the WWW for a *file* containing a TRMM 0.25 degree
land-sea mask. Did you try?
[2] You could create your own mask. Did you look at the following?
*http://www.ncl.ucar.edu/Applications/mask.shtml*
<http://www.ncl.ucar.edu/Applications/mask.shtml>
[a] Use shapefiles: Examples 12 & 13
[b] The attached script uses NCL builtin *1-deg* landsea mask. 3B42 is
*0.25-deg.*
* [ *See* mask_5.ncl ]. *It produces that attached netCDF file and
a sample plot.
Do not respond to me. ncl-talk only
On Sun, Nov 4, 2018 at 5:01 AM Md. Jalal Uddin <dmjalal90 at gmail.com> wrote:
> I understood your answer; however, I want to know more about it. Which
> data is only applicable for masking function in NCL? I am using TRMM 3B42
> data to mask precipitation over land. What should I do for TRMM data?
>
> On Sun, Nov 4, 2018 at 5:45 PM Karin Meier-Fleischer <
> meier-fleischer at dkrz.de> wrote:
>
>> 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
>>
>>
>
> --
> *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/017f6777/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TRMM_3B42.LandSeaMask.nc.gz
Type: application/x-gzip
Size: 12381 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181104/017f6777/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: z_3B42_mask.ncl
Type: application/octet-stream
Size: 5883 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181104/017f6777/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trmm_3B42_mask.000002.png
Type: image/png
Size: 200019 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181104/017f6777/attachment.png>
More information about the ncl-talk
mailing list