[Wrf-users] How to crop a wrfout file

Barry Lynn barry.h.lynn at gmail.com
Tue Jun 12 11:56:02 MDT 2018


Hi:

Are you aware that you can write some of the wrf output variables to an
external file?

;---Write variables to file


Note, the names on the right are obtained with wrf_user..., for example:


slp = wrf_user_getvar(a,"slp",it)


(remove the ;)

;     system("rm -f file_for_you.nc")

;     fout = addfile("file_for_you.nc","c")

;     fout->pett_fgen = pett_fgen

;     fout->z_plane   = z_plane

;     fout->xlat      = xlat

;     fout->xlong     = xlong


On Tue, Jun 12, 2018 at 5:37 PM M Mortezapour <mortezapour88 at gmail.com>
wrote:

> Hello,
>
> I have some wrfout files that I should use them in another program, but
> they are too large. I need to crop a small part of them. I've searched a
> lot, but I couldn't find an efficient way. Any help would be appreciated.
>
> Thanks,
> Mari
> _______________________________________________
> Wrf-users mailing list
> Wrf-users at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>


-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/wrf-users/attachments/20180612/89e20a79/attachment.html>


More information about the Wrf-users mailing list