[ncl-talk] Fw: Re: Re: Abnormal data points

Gus Correa gus at ldeo.columbia.edu
Thu Apr 15 13:17:48 MDT 2021


Hi Chathurika

Maybe to use the NCL "where" function, before you use the ESMF regrid
function?
https://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml
Something like this:

myFillvalue=myvar at _FillValue
myvar = where(myvar .ge. abnormal_threshold, myvar=myFillValue, myvar)
...
[now do the ESMF regrid]
...

I hope this helps,
Gus Correa

On Thu, Apr 15, 2021 at 2:57 PM Chathurika via ncl-talk <
ncl-talk at mailman.ucar.edu> wrote:

>
>
>
> -----Original Messages-----
> *From:*Chathurika <chatu at scsio.ac.cn>
> *Sent Time:*2021-04-16 02:55:41 (Friday)
> *To:* "Dennis Shea" <shea at ucar.edu>
> *Cc:*
> *Subject:* Re: Re: [ncl-talk] Abnormal data points
>
> Dear Dennis,
>
>
> Thank you so much for the reply. Even before, I use the regridding (ESMF_regrid),
> I plotted the data just to check. Still there is this line with abnormal
> data values (in the original file). I want to know whether there is any
> method which I can use to avoid this abnormal data points. How can I remove
> them? Because they are in the same range as normal data.
>
>
> Thank you once again
>
>
> and best regards,
>
> Chathu
>
> -----Original Messages-----
> *From:*"Dennis Shea" <shea at ucar.edu>
> *Sent Time:*2021-04-16 02:37:21 (Friday)
> *To:* Chathurika <chatu at scsio.ac.cn>
> *Cc:* "Soma Roy" <somaroy892 at gmail.com>, ncl-talk <ncl-talk at ucar.edu>
> *Subject:* Re: [ncl-talk] Abnormal data points
>
> If you have used the ESMF regrid functions for other variables and there
> is "no problem", I do not understand why there would be an issue with this
> variable. Something MUST be different.  It is up to you to determine just
> what the difference might be.
> ---------------
> The 'line' looks like a single satellite trajectory.
> ---------------
> Are the grid points missing? or, are they 'bad' values?
>
>
>
>
>
>
>
>
> On Thu, Apr 15, 2021 at 11:18 AM Chathurika via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Dear Soma,
>>
>>
>> it is NetCDF4, curvilinear data two dimensional coordinates (lat(i,j)
>> lon(i,j) ). I regrided using ESMF regridding. (Note: I used ESMF regridding
>> for all other variables also. I had no problem).
>>
>>
>> Thank you so much.
>>
>>
>> Best
>>
>> Chathu
>>
>>
>> -----Original Messages-----
>> *From:*"Soma Roy" <somaroy892 at gmail.com>
>> *Sent Time:*2021-04-16 00:51:10 (Friday)
>> *To:* Chathurika <chatu at scsio.ac.cn>
>> *Cc:*
>> *Subject:* Re: [ncl-talk] Abnormal data points
>>
>> What is the data file format?
>>
>> Soma
>>
>> On Thu, Apr 15, 2021, 22:10 Chathurika via ncl-talk <
>> ncl-talk at mailman.ucar.edu> wrote:
>>
>>> Dear All,
>>>
>>>
>>> Does anyone know which method I can use to remove (or interpolate) the
>>> data assigned with this abnormal line (which is in the black box of below
>>> figure)?
>>>
>>>
>>> If anyone can help me, this will be a big help. I can send the data file
>>> if you want to look at it.
>>>
>>>
>>> Thank you in advance and best regards,
>>>
>>> Chathu
>>>
>>> ------------------------------
>>>
>>>
>>>
>>> Wickramage Chathurika Hemamali
>>> Msc in Physical Oceanography
>>> State Key Laboratory of Tropical Oceanography
>>> South China Sea Institute of Oceanology
>>> University of Chinese Academy of Science
>>> China
>>>
>>> *Specialized in Oceanography and Marine Geology (Bachelor)*
>>> *University of Ruhuna*
>>> *Matara*
>>> *Sri Lanka*
>>>
>>> Email : wickramagechathurika at rocketmail.com
>>> chatu at scsio.ac.cn
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at mailman.ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>>
>>
>> ------------------------------
>>
>>
>>
>> Wickramage Chathurika Hemamali
>> Msc in Physical Oceanography
>> State Key Laboratory of Tropical Oceanography
>> South China Sea Institute of Oceanology
>> University of Chinese Academy of Science
>> China
>>
>> *Specialized in Oceanography and Marine Geology (Bachelor)*
>> *University of Ruhuna*
>> *Matara*
>> *Sri Lanka*
>>
>> Email : wickramagechathurika at rocketmail.com
>> chatu at scsio.ac.cn
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
> ------------------------------
>
>
>
> Wickramage Chathurika Hemamali
> Msc in Physical Oceanography
> State Key Laboratory of Tropical Oceanography
> South China Sea Institute of Oceanology
> University of Chinese Academy of Science
> China
>
> *Specialized in Oceanography and Marine Geology (Bachelor)*
> *University of Ruhuna*
> *Matara*
> *Sri Lanka*
>
> Email : wickramagechathurika at rocketmail.com
> chatu at scsio.ac.cn
>
>
>
>
> ------------------------------
>
>
>
> Wickramage Chathurika Hemamali
> Msc in Physical Oceanography
> State Key Laboratory of Tropical Oceanography
> South China Sea Institute of Oceanology
> University of Chinese Academy of Science
> China
>
> *Specialized in Oceanography and Marine Geology (Bachelor)*
> *University of Ruhuna*
> *Matara*
> *Sri Lanka*
>
> Email : wickramagechathurika at rocketmail.com
> chatu at scsio.ac.cn
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210415/01afc0f7/attachment.html>


More information about the ncl-talk mailing list