From zmumba at gmail.com  Wed Mar 12 04:40:16 2025
From: zmumba at gmail.com (Zilore Mumba)
Date: Wed, 12 Mar 2025 12:40:16 +0200
Subject: [ncl-talk] Only 3 hours of cloudfrac retreived
Message-ID: <CAKS2qbJOWrn2Y0QW+vwTeS-Q_PE5jrV7S1a5dgX9O0vQ_7XwBw@mail.gmail.com>

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/faa55181/attachment.htm>

From dave.allured at noaa.gov  Wed Mar 12 07:54:08 2025
From: dave.allured at noaa.gov (Dave Allured - NOAA Affiliate)
Date: Wed, 12 Mar 2025 07:54:08 -0600
Subject: [ncl-talk] Only 3 hours of cloudfrac retreived
In-Reply-To: <CAKS2qbJOWrn2Y0QW+vwTeS-Q_PE5jrV7S1a5dgX9O0vQ_7XwBw@mail.gmail.com>
References: <CAKS2qbJOWrn2Y0QW+vwTeS-Q_PE5jrV7S1a5dgX9O0vQ_7XwBw@mail.gmail.com>
Message-ID: <CALqwTFP8aq7nu-ZfgS8zJdqQeN94SOegif_xyXpeHD0cG0EL_Q@mail.gmail.com>

*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/d3614fc6/attachment.htm>

From zmumba at gmail.com  Wed Mar 12 08:43:51 2025
From: zmumba at gmail.com (Zilore Mumba)
Date: Wed, 12 Mar 2025 16:43:51 +0200
Subject: [ncl-talk] Only 3 hours of cloudfrac retreived
In-Reply-To: <CALqwTFP8aq7nu-ZfgS8zJdqQeN94SOegif_xyXpeHD0cG0EL_Q@mail.gmail.com>
References: <CAKS2qbJOWrn2Y0QW+vwTeS-Q_PE5jrV7S1a5dgX9O0vQ_7XwBw@mail.gmail.com>
 <CALqwTFP8aq7nu-ZfgS8zJdqQeN94SOegif_xyXpeHD0cG0EL_Q@mail.gmail.com>
Message-ID: <CAKS2qb+PWgbGALmv8rdFAOs=2aFW3twqF21WaeUOD59qqKfFvQ@mail.gmail.com>

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>