[ncl-talk] Only 3 hours of cloudfrac retreived
Zilore Mumba
zmumba at gmail.com
Wed Mar 12 08:43:51 MDT 2025
Thanks Dave. i will take a look at that.
On Wed, Mar 12, 2025 at 3:54 PM Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> wrote:
> *Cloudfrac* is calculated by WRF code inside the *wrf_user_getvar*
> function. For best information about this, please contact the WRF help
> forum at https://forum.mmm.ucar.edu/forums/wrf-python-and-ncl.130.
>
>
> On Wed, Mar 12, 2025 at 4:40 AM Zilore Mumba via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Hello,
>> I am trying to retrieve cloudfrac every hour from wrfout files at
>> specific locations.
>> The command I use is
>> cld = wrf_user_getvar(a,"cfrac",-1)
>> Lowcl = cld(:,2,idxlat,idxlon)
>> Medcl = cld(:,3,idxlat,idxlon)
>>
>> where idxlat,idxlon have been defined as
>> xlat=a[:]->XLAT(0,:,:)
>> xlon=a[:]->XLONG(0,:,:)
>> idxlat=closest_val(lat, xlat(:,0))
>> idxlon=closest_val(lon, xlon(0,:))
>>
>> When I print Lowcl, Medcl
>> I only get three values at the hours 00, 01 and 02 from files going to
>> 144 hours. I was expecting a value every hour.
>> How is cloudfrac calculated, or what am I doing wrong?
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20250312/740a99f1/attachment.htm>
More information about the ncl-talk
mailing list