<p dir="ltr">The script looks fine for converting a single file. <br>
Does it work and does the data look right? That's usually the best/easiest way to see. </p>
<div class="gmail_quote">On 9 Feb 2016 7:35 a.m., "Benjamin Alabi" <<a href="mailto:alabibenjamin2@gmail.com">alabibenjamin2@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Re: Data conversion<br><br></div>I want to use this medium to thank the forum and everyone that respond to my challenge in converting from binary data to netcdf. May you find help in time of need IJN, Amen.<br></div>I have finally gotten the solution by commenting the image part of the script and gave me the netcdf form of the data. <br></div>Concern the addition of 75.0, I will like my helper to look unto the script finally used if it has been implemented or not for correction sir.<br><br>; A script to convert binary data to netcdf<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" <br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" <br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl" <br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl" <br><br>begin<br>file_name_read = "merg_<a href="tel:2012090200" value="+12012090200" target="_blank">2012090200</a>_4km-pixel"<br><br>ir_u = byte2flt( fbindirread (file_name_read ,0, (/2,3298,9896/),"ubyte")) + 75.<br><br><br>lon_g = fspan(0.0182,360,9896)<br>lat_g = fspan(59.982,59.982-0.036383683*3298,3298)<br> <br>lon_g@units = "degrees_east"<br>lon_g@long_name = "longitude"<br>lon_g@short_name = "longitude"<br>lon_g!0 = "lon"<br>lon_g&lon = lon_g<br><br>lat_g@units = "degrees_north"<br>lat_g@long_name = "latitude"<br>lat_g@short_name = "latitude"<br>lat_g!0 = "lat"<br>lat_g&lat = lat_g<br><br><br>ir_u!0 = "time"<br>ir_u!1 = "lat"<br>ir_u!2 = "lon"<br><br>ir_u&lat = lat_g<br>ir_u&lon = lon_g<br><br>ir_u@_FillValue= 255+75.<br><br><br>;wks = gsn_open_wks("X11","")<br>;res = True<br>;res@cnFillOn = True<br>;res@cnFillMode = "RasterFill"<br>;res@cnLinesOn = False<br>;plot = gsn_csm_contour_map(wks, ir_u(0,:,:), res)<br><br>ncout = addfile(file_name_read+".nc","c")<br>ncout->ir_data = ir_u<br><br>end<br><br></div>Waiting for your comment. <br><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 8, 2016 at 8:00 PM, <span dir="ltr"><<a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send ncl-talk mailing list submissions to<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:ncl-talk-owner@ucar.edu" target="_blank">ncl-talk-owner@ucar.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ncl-talk digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: gsn_csm_vector_scalar_map (Mary Haley)<br>
2. Re: ncl-talk Digest, Vol 147, Issue 8 (Benjamin Alabi)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 7 Feb 2016 16:02:07 -0700<br>
From: Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>><br>
Subject: Re: [ncl-talk] gsn_csm_vector_scalar_map<br>
To: Xi Chang <<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</a>><br>
Cc: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Message-ID:<br>
<CACNN_CJ0hGL=_<a href="mailto:n28qjNZza2AP%2BBemRwK-sRFFgThi%2BrcXVVwUw@mail.gmail.com" target="_blank">n28qjNZza2AP+BemRwK-sRFFgThi+rcXVVwUw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Xi,<br>
<br>
For an example of using gsn_csm_vector_scalar_map and changing the contour<br>
levels, please see example "lcnative_5.ncl" at:<br>
<br>
<a href="http://www.ncl.ucar.edu/Applications/lcnative.shtml#ex5" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Applications/lcnative.shtml#ex5</a><br>
<br>
You will need to add the following lines to the code:<br>
<br>
res@cnLevelSelectionMode = "ManualLevels"<br>
res@cnMinLevelValF = 270<br>
res@cnMaxLevelValF = 310<br>
res@cnLevelSpacingF = 2<br>
<br>
The data file can be downloaded from:<br>
<br>
<a href="http://www.ncl.ucar.edu/Applications/Data/#grb" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Applications/Data/#grb</a><br>
<br>
Note that this example also shows how to create this kind of plot using<br>
gsn_csm_contour_map and gsn_csm_vector. I sometimes recommend this method<br>
if you want more control over the individual vector and contour plots.<br>
<br>
--Mary<br>
<br>
<br>
On Fri, Feb 5, 2016 at 1:19 PM, Xi Chang <<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</a>> wrote:<br>
<br>
> Hi Karin,,<br>
><br>
> I did, but it doesnt work for gsn_csm_vector_scalar_map, no idea why..<br>
><br>
> Chang.<br>
><br>
> On Fri, Feb 5, 2016 at 7:53 PM, Karin Meier-Fleischer <<br>
> <a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>> wrote:<br>
><br>
>> Hi Xi,<br>
>><br>
>> have you taken a look at the first example of the vector examples page<br>
>> <a href="http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl" rel="noreferrer" target="_blank">http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl</a><br>
>><br>
>> When you want to control the minimum/maximum and interval of the contour<br>
>> lines use<br>
>><br>
>> res@cnLevelSelectionMode = "ManualLevels" ; set manual contour levels<br>
>> res@cnMinLevelValF = 24.0 ; set min contour level<br>
>> res@cnMaxLevelValF = 29 ; set max contour level<br>
>> res@cnLevelSpacingF = 0.10 ; set contour spacing<br>
>><br>
>> Bye,<br>
>> Karin<br>
>><br>
>> Am 05.02.16 um 19:00 schrieb Xi Chang:<br>
>><br>
>> Hello...<br>
>><br>
>> Could you please tell me how to control the contour interval for color<br>
>> shading once im using this function *gsn_csm_vector_scalar_map*.<br>
>><br>
>> ;===========PLOT=================<br>
>><br>
>> wks = gsn_open_wks("png","overlay")<br>
>><br>
>> res = True ; plot mods desired<br>
>> plot = new(16,graphic)<br>
>><br>
>> res@gsnDraw = False ; don't draw<br>
>> res@gsnFrame = False ; don't advance frame<br>
>><br>
>> ; vector rescoures<br>
>> res@vcRefLengthF = 0.045<br>
>> res@vcRefMagnitudeF = 20.0<br>
>> res@vcRefAnnoOrthogonalPosF = -0.12<br>
>> res@vcRefAnnoParallelPosF = 0.997<br>
>> res@vcRefAnnoFontHeightF = 0.015<br>
>> res@vcMinDistanceF = 0.03<br>
>> res@lbLabelBarOn = False<br>
>><br>
>> res@mpProjection = "AzimuthalEquidistant" ; choose map projection<br>
>> res@mpLimitMode = "LatLon" ; use lat/lon coordinates to<br>
>> limit area<br>
>> res@mpMinLatF = 25.<br>
>> res@mpMaxLatF = 75.<br>
>> res@mpMinLonF = -80.<br>
>> res@mpMaxLonF = 20.<br>
>> res@gsnMaximize = True<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> * res@gsnScalarContour = True res@cnFillOn =<br>
>> True res@cnFillPalette = "gui_default" ; set color map<br>
>> res@cnLinesOn = False ; turn off contour lines *<br>
>><br>
>><br>
>> do i=0,15<br>
>> plot(i) = gsn_csm_vector_scalar_map(wks,u(i,:,:),v(i,:,:), \<br>
>> p(i,:,:),res)<br>
>> end do<br>
>><br>
>> resP = True ; modify the panel plot<br>
>> resP@gsnMaximize = True<br>
>> gsn_panel(wks,plot,(/4,4/),resP) ; now draw as one plot<br>
>><br>
>><br>
>> end<br>
>><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> ncl-talk mailing <a href="mailto:listncl-talk@ucar.edu" target="_blank">listncl-talk@ucar.edu</a><br>
>> List instructions, subscriber options, unsubscribe:<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> ncl-talk mailing list<br>
>> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
>> List instructions, subscriber options, unsubscribe:<br>
>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
>><br>
>><br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160207/91dbc6ee/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160207/91dbc6ee/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 8 Feb 2016 12:03:22 +0100<br>
From: Benjamin Alabi <<a href="mailto:alabibenjamin2@gmail.com" target="_blank">alabibenjamin2@gmail.com</a>><br>
Subject: Re: [ncl-talk] ncl-talk Digest, Vol 147, Issue 8<br>
To: <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
Message-ID:<br>
<<a href="mailto:CADnXx_-kQj0SSFRctExs4WEQwy8f7ZunpFo4sktGwiNkYzt2WQ@mail.gmail.com" target="_blank">CADnXx_-kQj0SSFRctExs4WEQwy8f7ZunpFo4sktGwiNkYzt2WQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Goodday sir<br>
I think i've added 75 to ' ir_u@_FillValue= 255 '. pls check this script<br>
for any correction:<br>
<br>
; A script to convert binary data to netcdf<br>
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br>
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"<br>
<br>
begin<br>
file_name_read = "merg_<a href="tel:2012090102" value="+12012090102" target="_blank">2012090102</a>_4km-pixel"<br>
<br>
ir_u = byte2flt( fbindirread (file_name_read ,0, (/2,3298,9896/),"ubyte"))<br>
+ 75.<br>
<br>
<br>
lon_g = fspan(0.0182,360,9896)<br>
lat_g = fspan(59.982,59.982-0.036383683*3298,3298)<br>
<br>
lon_g@units = "degrees_east"<br>
lon_g@long_name = "longitude"<br>
lon_g@short_name = "longitude"<br>
lon_g!0 = "lon"<br>
lon_g&lon = lon_g<br>
<br>
lat_g@units = "degrees_north"<br>
lat_g@long_name = "latitude"<br>
lat_g@short_name = "latitude"<br>
lat_g!0 = "lat"<br>
lat_g&lat = lat_g<br>
<br>
<br>
ir_u!0 = "time"<br>
ir_u!1 = "lat"<br>
ir_u!2 = "lon"<br>
<br>
ir_u&lat = lat_g<br>
ir_u&lon = lon_g<br>
<br>
ir_u@_FillValue= 255+75.<br>
<br>
<br>
wks = gsn_open_wks("X11","")<br>
res = True<br>
res@cnFillOn = True<br>
res@cnFillMode = "RasterFill"<br>
res@cnLinesOn = False<br>
plot = gsn_csm_contour_map(wks, ir_u(0,:,:), res)<br>
<br>
ncout = addfile(file_name_read+".nc","c")<br>
ncout->ir_data = ir_u<br>
<br>
end<br>
<br>
<br>
On Sat, Feb 6, 2016 at 8:00 PM, <<a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a>> wrote:<br>
<br>
> Send ncl-talk mailing list submissions to<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
><br>
> To subscribe or unsubscribe via the World Wide Web, visit<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
> or, via email, send a message with subject or body 'help' to<br>
> <a href="mailto:ncl-talk-request@ucar.edu" target="_blank">ncl-talk-request@ucar.edu</a><br>
><br>
> You can reach the person managing the list at<br>
> <a href="mailto:ncl-talk-owner@ucar.edu" target="_blank">ncl-talk-owner@ucar.edu</a><br>
><br>
> When replying, please edit your Subject line so it is more specific<br>
> than "Re: Contents of ncl-talk digest..."<br>
><br>
><br>
> Today's Topics:<br>
><br>
> 1. Re: Data conversion (Alan Brammer)<br>
> 2. Re: gsn_csm_vector_scalar_map (Xi Chang)<br>
> 3. Re: gsn_csm_vector_scalar_map (alesall)<br>
> 4. Re: read and write netcdf-4 compressed files (David Brown)<br>
><br>
><br>
> ----------------------------------------------------------------------<br>
><br>
> Message: 1<br>
> Date: Fri, 5 Feb 2016 14:10:24 -0500<br>
> From: Alan Brammer <<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>><br>
> Subject: Re: [ncl-talk] Data conversion<br>
> To: Benjamin Alabi <<a href="mailto:alabibenjamin2@gmail.com" target="_blank">alabibenjamin2@gmail.com</a>><br>
> Cc: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
> Message-ID: <<a href="mailto:564569E1-65BD-4130-B4EA-872812D72277@albany.edu" target="_blank">564569E1-65BD-4130-B4EA-872812D72277@albany.edu</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> > And you don't want to try to add 75.0 to the fill value in the script.<br>
><br>
> Just to respond to this and clarify, the missing value in the<br>
> documentation that was linked to is 330. (<br>
> <a href="http://www.cpc.ncep.noaa.gov/products/global_precip/html/README" rel="noreferrer" target="_blank">http://www.cpc.ncep.noaa.gov/products/global_precip/html/README</a> <<br>
> <a href="http://www.cpc.ncep.noaa.gov/products/global_precip/html/README" rel="noreferrer" target="_blank">http://www.cpc.ncep.noaa.gov/products/global_precip/html/README</a>> )<br>
><br>
> When I put the example script together I first posted, I just saw what was<br>
> obviously a missing value at 255, having forgotten the offset. 255 is a<br>
> very reasonable value in the world of brightness temps, so apologies for<br>
> that, in my haste I made a mistake there in the first script.<br>
><br>
> So the real _FillValue should be 330 (i.e. 255+75 )<br>
><br>
><br>
><br>
><br>
> > On 5 Feb 2016, at 09:15, HAVENER, KEVIN F GS-12 USAF ACC 14 WS/WXED <<br>
> <a href="mailto:kevin.havener@us.af.mil" target="_blank">kevin.havener@us.af.mil</a>> wrote:<br>
> ><br>
> > And you don't want to try to add 75.0 to the fill value in the script.<br>
> ><br>
> > Kevin Havener<br>
> ><br>
> > -----Original Message-----<br>
> > From: <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>] On<br>
> Behalf Of alesall<br>
> > Sent: Friday, February 05, 2016 9:03 AM<br>
> > To: Benjamin Alabi<br>
> > Cc: <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> > Subject: Re: [ncl-talk] Data conversion<br>
> ><br>
> ><br>
> > the error message is:<br>
> ><br>
> > fatal:Undefined identifier: (byte2flt) is undefined, can't continue<br>
> ><br>
> > it is not finding the function ?byte2flt"<br>
> > on the documentation page, this one: <<br>
> <a href="http://ncl.ucar.edu/Document/Functions/Contributed/byte2flt.shtml" rel="noreferrer" target="_blank">http://ncl.ucar.edu/Document/Functions/Contributed/byte2flt.shtml</a>><br>
> > it says that such function is in the ?contributed? file.<br>
> ><br>
> > you need to add statements such as:<br>
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl <<br>
> <a href="http://ncl.ucar.edu/Document/Functions/Contributed/contrib.shtml" rel="noreferrer" target="_blank">http://ncl.ucar.edu/Document/Functions/Contributed/contrib.shtml</a>> "<br>
> > at the beginning of your script, actually before the ?begin?<br>
> ><br>
> > I have all of these in my scripts:<br>
> ><br>
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"<br>
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br>
> ><br>
> > hope this helps!<br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Alessandra Giannini<br>
> > IRI for Climate and Society - The Earth Institute at Columbia University<br>
> P.O. Box 1000, Palisades NY 10964-8000<br>
> > phone/fax: <a href="tel:%2B1%20845%20680-4473" value="+18456804473" target="_blank">+1 845 680-4473</a>/4864 - email: <a href="mailto:alesall@iri.columbia.edu" target="_blank">alesall@iri.columbia.edu</a><br>
> ><br>
> ><br>
> > On Feb 5, 2016, at 8:57 AM, Benjamin Alabi <<br>
> <a href="mailto:alabibenjamin2@gmail.com" target="_blank">alabibenjamin2@gmail.com</a>> wrote:<br>
> ><br>
> > Goodday sir,<br>
> ><br>
> > I appreciate your effort in guiding me. I'm new in this platform,<br>
> please dont be offended by sending the message three times, I'm just<br>
> learning to get help from here.<br>
> ><br>
> > I used the script,<br>
> > begin<br>
> > file_name_read = "merg_<a href="tel:2012090101" value="+12012090101" target="_blank">2012090101</a>_4km-pixel"<br>
> ><br>
> > ir_u = byte2flt( fbindirread (file_name_read ,0,<br>
> (/2,3298,9896/),"ubyte")) +75.0<br>
> ><br>
> ><br>
> > lon_g = fspan(0.0182,360,9896)<br>
> > lat_g = fspan(59.982,59.982-0.036383683*3298,3298)<br>
> ><br>
> > lon_g@units = "degrees_east"<br>
> > lon_g@long_name = "longitude"<br>
> > lon_g@short_name = "longitude"<br>
> > lon_g!0 = "lon"<br>
> > lon_g&lon = lon_g<br>
> ><br>
> > lat_g@units = "degrees_north"<br>
> > lat_g@long_name = "latitude"<br>
> > lat_g@short_name = "latitude"<br>
> > lat_g!0 = "lat"<br>
> > lat_g&lat = lat_g<br>
> ><br>
> ><br>
> > ir_u!0 = "time"<br>
> > ir_u!1 = "lat"<br>
> > ir_u!2 = "lon"<br>
> ><br>
> > ir_u&lat = lat_g<br>
> > ir_u&lon = lon_g<br>
> ><br>
> > ir_u@_FillValue= 255+75.0<br>
> ><br>
> ><br>
> > wks = gsn_open_wks("X11","")<br>
> > res = True<br>
> > res@cnFillOn = True<br>
> > res@cnFillMode = "RasterFill"<br>
> > res@cnLinesOn = False<br>
> > plot = gsn_csm_contour_map(wks, ir_u(0,:,:), res)<br>
> ><br>
> > ncout = addfile(file_name_read+".nc","c")<br>
> > ncout->ir_data = ir_u<br>
> ><br>
> > end<br>
> ><br>
> ><br>
> > But it was generating this error:<br>
> > fatal:Undefined identifier: (byte2flt) is undefined, can't continue<br>
> > fatal:["Execute.c":7741]:Execute: Error occurred at or near line 41<br>
> ><br>
> ><br>
> > Waiting for guide, Thanks.<br>
> ><br>
> ><br>
> ><br>
> > On Thu, Feb 4, 2016 at 8:07 PM, Alan Brammer <<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>><br>
> wrote:<br>
> ><br>
> ><br>
> > Forgot the offset, which is mentioned in the link Kevin<br>
> sent.<br>
> ><br>
> ><br>
> > ir_u = byte2flt( fbindirread (file_name_read ,0,<br>
> (/2,3298,9896/),"ubyte")) +75.<br>
> > ir_u@_FillValue= 255+75.<br>
> ><br>
> > "Each record is a 9896 x 3298 Fortran array of IR<br>
> brightness temperatures that have been scaled to fit into 1-byte by<br>
> subtracting "75" from each datum. Therefore it is necessary for the user to<br>
> add a value of "75" to each data value when using the data."<br>
> ><br>
> ><br>
> ><br>
> > On 4 Feb 2016, at 13:30, Alan Brammer <<br>
> <a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>> wrote:<br>
> ><br>
> > ok, wow. Don?t send the same message 3 times, if<br>
> the first answers weren?t complete at least expand and attempt something<br>
> not just copy paste the same lines again.<br>
> ><br>
> > as said before .Z means it?s compressed. gunzip<br>
> merg_<a href="tel:2016020123" value="+12016020123" target="_blank">2016020123</a>_4km-pixel.Z will uncompress it. Then you have a binary<br>
> file as a small amount of googling would have told you.<br>
> > The same search would have linked you to various<br>
> messages on here and various scripts where other people have included<br>
> simple examples of this file type (myself included). Here is an example of<br>
> reading and making a simple plot. There are plenty of examples on how to<br>
> write netcdf on the NCL website so you should develop code from there.<br>
> Most simple example at bottom of script below.<br>
> ><br>
> <a href="https://www.ncl.ucar.edu/Applications/o-netcdf.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/o-netcdf.shtml</a><br>
> ><br>
> > Read the documentation on the below functions and<br>
> understand what is occurring .<br>
> ><br>
> ><br>
> > begin<br>
> > file_name_read = "merg_<a href="tel:2016020123" value="+12016020123" target="_blank">2016020123</a>_4km-pixel"<br>
> ><br>
> > ir_u = byte2flt( fbindirread (file_name_read ,0,<br>
> (/2,3298,9896/),"ubyte"))<br>
> ><br>
> ><br>
> > lon_g = fspan(0.0182,360,9896)<br>
> > lat_g = fspan(59.982,59.982-0.036383683*3298,3298)<br>
> ><br>
> > lon_g@units = "degrees_east"<br>
> > lon_g@long_name = "longitude"<br>
> > lon_g@short_name = "longitude"<br>
> > lon_g!0 = "lon"<br>
> > lon_g&lon = lon_g<br>
> ><br>
> > lat_g@units = "degrees_north"<br>
> > lat_g@long_name = "latitude"<br>
> > lat_g@short_name = "latitude"<br>
> > lat_g!0 = "lat"<br>
> > lat_g&lat = lat_g<br>
> ><br>
> ><br>
> > ir_u!0 = "time"<br>
> > ir_u!1 = "lat"<br>
> > ir_u!2 = "lon"<br>
> ><br>
> > ir_u&lat = lat_g<br>
> > ir_u&lon = lon_g<br>
> ><br>
> > ir_u@_FillValue= 255<br>
> ><br>
> ><br>
> > wks = gsn_open_wks("X11","")<br>
> > res = True<br>
> > res@cnFillOn = True<br>
> > res@cnFillMode = "RasterFill"<br>
> > res@cnLinesOn = False<br>
> > plot = gsn_csm_contour_map(wks, ir_u(0,:,:), res)<br>
> ><br>
> > ncout = addfile(file_name_read+?.nc?,?c?)<br>
> > ncout->ir_data = ir_u<br>
> ><br>
> > end<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > On 4 Feb 2016, at 13:04, Benjamin Alabi <<br>
> <a href="mailto:alabibenjamin2@gmail.com" target="_blank">alabibenjamin2@gmail.com</a>> wrote:<br>
> ><br>
> > Thanks for your assistance sir. I've tried<br>
> the cdo to get general information on the data, but it didn't work<br>
> > I need help from someone that can guide me<br>
> to convert this data format - 'merg_<a href="tel:2012091000" value="+12012091000" target="_blank">2012091000</a>_4km-pixel.Z' to netcdf<br>
> format.<br>
> > I download Gobally-merged (60N-60S)<br>
> pixel-resolution IR brightness temperature data (equivalent blackbody<br>
> temps), merged from all available geostationary satellites (GOES-8/10,<br>
> METEOSAT-7/5)<br>
> > This is the link:<br>
> ><br>
> <a href="http://mirador.gsfc.nasa.gov/cgi-bin/mirador/presentNavigation.pl?tree=project&dataset=Global-merged%20IR%20Brightness%20Temperature%20Data&project=TRMM&dataGroup=Ancillary&version=001&CGISESSID=25c6337b80163b3743e8bea85d015558" rel="noreferrer" target="_blank">http://mirador.gsfc.nasa.gov/cgi-bin/mirador/presentNavigation.pl?tree=project&dataset=Global-merged%20IR%20Brightness%20Temperature%20Data&project=TRMM&dataGroup=Ancillary&version=001&CGISESSID=25c6337b80163b3743e8bea85d015558</a><br>
> .<br>
> ><br>
> > I really want it to be in netcdf format.<br>
> ><br>
> ><br>
> > Regard<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> _______________________________________________<br>
> > ncl-talk mailing list<br>
> > <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> > List instructions, subscriber options,<br>
> unsubscribe:<br>
> ><br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > ncl-talk mailing list<br>
> > <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> > List instructions, subscriber options, unsubscribe:<br>
> > <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > ncl-talk mailing list<br>
> > <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> > List instructions, subscriber options, unsubscribe:<br>
> > <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL:<br>
> <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160205/2fdc6d64/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160205/2fdc6d64/attachment-0001.html</a><br>
><br>
> ------------------------------<br>
><br>
> Message: 2<br>
> Date: Fri, 5 Feb 2016 21:19:10 +0100<br>
> From: Xi Chang <<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</a>><br>
> Subject: Re: [ncl-talk] gsn_csm_vector_scalar_map<br>
> To: Karin Meier-Fleischer <<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>><br>
> Cc: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
> Message-ID:<br>
> <CAGfRhteOJRK4=Rvrnoua8a+JDA2HQwfe8Q2jMhN=<br>
> <a href="mailto:cmtmrj7gVg@mail.gmail.com" target="_blank">cmtmrj7gVg@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="utf-8"<br>
><br>
> Hi Karin,,<br>
><br>
> I did, but it doesnt work for gsn_csm_vector_scalar_map, no idea why..<br>
><br>
> Chang.<br>
><br>
> On Fri, Feb 5, 2016 at 7:53 PM, Karin Meier-Fleischer <<br>
> <a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>> wrote:<br>
><br>
> > Hi Xi,<br>
> ><br>
> > have you taken a look at the first example of the vector examples page<br>
> > <a href="http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl" rel="noreferrer" target="_blank">http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl</a><br>
> ><br>
> > When you want to control the minimum/maximum and interval of the contour<br>
> > lines use<br>
> ><br>
> > res@cnLevelSelectionMode = "ManualLevels" ; set manual contour<br>
> levels<br>
> > res@cnMinLevelValF = 24.0 ; set min contour level<br>
> > res@cnMaxLevelValF = 29 ; set max contour level<br>
> > res@cnLevelSpacingF = 0.10 ; set contour spacing<br>
> ><br>
> > Bye,<br>
> > Karin<br>
> ><br>
> > Am 05.02.16 um 19:00 schrieb Xi Chang:<br>
> ><br>
> > Hello...<br>
> ><br>
> > Could you please tell me how to control the contour interval for color<br>
> > shading once im using this function *gsn_csm_vector_scalar_map*.<br>
> ><br>
> > ;===========PLOT=================<br>
> ><br>
> > wks = gsn_open_wks("png","overlay")<br>
> ><br>
> > res = True ; plot mods desired<br>
> > plot = new(16,graphic)<br>
> ><br>
> > res@gsnDraw = False ; don't draw<br>
> > res@gsnFrame = False ; don't advance frame<br>
> ><br>
> > ; vector rescoures<br>
> > res@vcRefLengthF = 0.045<br>
> > res@vcRefMagnitudeF = 20.0<br>
> > res@vcRefAnnoOrthogonalPosF = -0.12<br>
> > res@vcRefAnnoParallelPosF = 0.997<br>
> > res@vcRefAnnoFontHeightF = 0.015<br>
> > res@vcMinDistanceF = 0.03<br>
> > res@lbLabelBarOn = False<br>
> ><br>
> > res@mpProjection = "AzimuthalEquidistant" ; choose map projection<br>
> > res@mpLimitMode = "LatLon" ; use lat/lon coordinates to<br>
> > limit area<br>
> > res@mpMinLatF = 25.<br>
> > res@mpMaxLatF = 75.<br>
> > res@mpMinLonF = -80.<br>
> > res@mpMaxLonF = 20.<br>
> > res@gsnMaximize = True<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > * res@gsnScalarContour = True res@cnFillOn =<br>
> True<br>
> > res@cnFillPalette = "gui_default" ; set color map<br>
> > res@cnLinesOn = False ; turn off contour<br>
> lines *<br>
> ><br>
> ><br>
> > do i=0,15<br>
> > plot(i) = gsn_csm_vector_scalar_map(wks,u(i,:,:),v(i,:,:), \<br>
> > p(i,:,:),res)<br>
> > end do<br>
> ><br>
> > resP = True ; modify the panel plot<br>
> > resP@gsnMaximize = True<br>
> > gsn_panel(wks,plot,(/4,4/),resP) ; now draw as one plot<br>
> ><br>
> ><br>
> > end<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > ncl-talk mailing <a href="mailto:listncl-talk@ucar.edu" target="_blank">listncl-talk@ucar.edu</a><br>
> > List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > ncl-talk mailing list<br>
> > <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> > List instructions, subscriber options, unsubscribe:<br>
> > <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
> ><br>
> ><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL:<br>
> <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160205/4e881daa/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160205/4e881daa/attachment-0001.html</a><br>
><br>
> ------------------------------<br>
><br>
> Message: 3<br>
> Date: Fri, 5 Feb 2016 15:21:44 -0500<br>
> From: alesall <<a href="mailto:alesall@iri.columbia.edu" target="_blank">alesall@iri.columbia.edu</a>><br>
> Subject: Re: [ncl-talk] gsn_csm_vector_scalar_map<br>
> To: Xi Chang <<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</a>><br>
> Cc: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
> Message-ID: <<a href="mailto:257ABA37-BFD7-49C5-B6CB-193B6F81F39F@iri.columbia.edu" target="_blank">257ABA37-BFD7-49C5-B6CB-193B6F81F39F@iri.columbia.edu</a>><br>
> Content-Type: text/plain; charset="us-ascii"<br>
><br>
> Hi, is it complaining that the spacing is too fine compared to the wide<br>
> range between min and max values, and reverting to doing what it thinks<br>
> best?<br>
><br>
><br>
><br>
> --<br>
> Alessandra Giannini<br>
> IRI for Climate and Society - The Earth Institute at Columbia University<br>
> P.O. Box 1000, Palisades NY 10964-8000<br>
> phone/fax: <a href="tel:%2B1%20845%20680-4473" value="+18456804473" target="_blank">+1 845 680-4473</a>/4864 - email: <a href="mailto:alesall@iri.columbia.edu" target="_blank">alesall@iri.columbia.edu</a> <mailto:<br>
> <a href="mailto:alesall@iri.columbia.edu" target="_blank">alesall@iri.columbia.edu</a>><br>
> > On Feb 5, 2016, at 3:19 PM, Xi Chang <<a href="mailto:xi.chang01@gmail.com" target="_blank">xi.chang01@gmail.com</a>> wrote:<br>
> ><br>
> > Hi Karin,,<br>
> ><br>
> > I did, but it doesnt work for gsn_csm_vector_scalar_map, no idea why..<br>
> ><br>
> > Chang.<br>
> ><br>
> > On Fri, Feb 5, 2016 at 7:53 PM, Karin Meier-Fleischer <<br>
> <a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a> <mailto:<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>>> wrote:<br>
> > Hi Xi,<br>
> ><br>
> > have you taken a look at the first example of the vector examples page<br>
> > <a href="http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl" rel="noreferrer" target="_blank">http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl</a> <<br>
> <a href="http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl" rel="noreferrer" target="_blank">http://ncl.ucar.edu/Applications/Scripts/vector_1.ncl</a>><br>
> ><br>
> > When you want to control the minimum/maximum and interval of the contour<br>
> lines use<br>
> > res@cnLevelSelectionMode = "ManualLevels" ; set manual contour<br>
> levels<br>
> > res@cnMinLevelValF = 24.0 ; set min contour level<br>
> > res@cnMaxLevelValF = 29 ; set max contour level<br>
> > res@cnLevelSpacingF = 0.10 ; set contour spacing<br>
> > Bye,<br>
> > Karin<br>
> ><br>
> > Am 05.02.16 um 19:00 schrieb Xi Chang:<br>
> >> Hello...<br>
> >><br>
> >> Could you please tell me how to control the contour interval for color<br>
> shading once im using this function gsn_csm_vector_scalar_map.<br>
> >><br>
> >> ;===========PLOT=================<br>
> >><br>
> >> wks = gsn_open_wks("png","overlay")<br>
> >><br>
> >> res = True ; plot mods desired<br>
> >> plot = new(16,graphic)<br>
> >><br>
> >> res@gsnDraw = False ; don't draw<br>
> >> res@gsnFrame = False ; don't advance frame<br>
> >><br>
> >> ; vector rescoures<br>
> >> res@vcRefLengthF = 0.045<br>
> >> res@vcRefMagnitudeF = 20.0<br>
> >> res@vcRefAnnoOrthogonalPosF = -0.12<br>
> >> res@vcRefAnnoParallelPosF = 0.997<br>
> >> res@vcRefAnnoFontHeightF = 0.015<br>
> >> res@vcMinDistanceF = 0.03<br>
> >> res@lbLabelBarOn = False<br>
> >><br>
> >> res@mpProjection = "AzimuthalEquidistant" ; choose map projection<br>
> >> res@mpLimitMode = "LatLon" ; use lat/lon coordinates to<br>
> limit area<br>
> >> res@mpMinLatF = 25.<br>
> >> res@mpMaxLatF = 75.<br>
> >> res@mpMinLonF = -80.<br>
> >> res@mpMaxLonF = 20.<br>
> >> res@gsnMaximize = True<br>
> >><br>
> >> res@gsnScalarContour = True<br>
> >> res@cnFillOn = True<br>
> >> res@cnFillPalette = "gui_default" ; set color map<br>
> >> res@cnLinesOn = False ; turn off contour<br>
> lines<br>
> >><br>
> >><br>
> >><br>
> >> do i=0,15<br>
> >> plot(i) = gsn_csm_vector_scalar_map(wks,u(i,:,:),v(i,:,:), \<br>
> >> p(i,:,:),res)<br>
> >> end do<br>
> >><br>
> >> resP = True ; modify the panel plot<br>
> >> resP@gsnMaximize = True<br>
> >> gsn_panel(wks,plot,(/4,4/),resP) ; now draw as one plot<br>
> >><br>
> >><br>
> >> end<br>
> >><br>
> >><br>
> >><br>
> >><br>
> >> _______________________________________________<br>
> >> ncl-talk mailing list<br>
> >> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
> >> List instructions, subscriber options, unsubscribe:<br>
> >> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a> <<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > ncl-talk mailing list<br>
> > <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a> <mailto:<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
> > List instructions, subscriber options, unsubscribe:<br>
> > <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a> <<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > ncl-talk mailing list<br>
> > <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> > List instructions, subscriber options, unsubscribe:<br>
> > <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL:<br>
> <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160205/8c35e975/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160205/8c35e975/attachment-0001.html</a><br>
><br>
> ------------------------------<br>
><br>
> Message: 4<br>
> Date: Fri, 5 Feb 2016 14:37:26 -0700<br>
> From: David Brown <<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>><br>
> Subject: Re: [ncl-talk] read and write netcdf-4 compressed files<br>
> To: Dan Chen <<a href="mailto:dchen@ucar.edu" target="_blank">dchen@ucar.edu</a>>, ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
> Message-ID:<br>
> <<br>
> <a href="mailto:CAC92F7fDd6iTx4N401jbbN-G6ieUzzgFEuW5TG9QhMHLaRvx3A@mail.gmail.com" target="_blank">CAC92F7fDd6iTx4N401jbbN-G6ieUzzgFEuW5TG9QhMHLaRvx3A@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset=UTF-8<br>
><br>
> Hi Dan,<br>
> The problem is a dimension mismatch. I am not sure why it does not get<br>
> reported as such, but here is the issue:<br>
> Your call to wrf_user_getvar asks for time step 0, granted the only<br>
> time step since the Time dimension has only 1 element. But the result<br>
> is that the return variable 'bb' is reduced from 4 dimensions (t,<br>
> z,y,x) in the file variable to 3 (z,y,x) in the local variable.<br>
><br>
> Then you are trying to assign this 3d variable to a 4d variable in the<br>
> file. This causes the error.<br>
> There are two ways to fix it.<br>
> 1) Substitute -1 for 0 in the 3rd argument to wrf_user_getvar. You<br>
> will then get Time as the leftmost dimension of a 4d variable, and the<br>
> write can proceed without error.<br>
> 2) Or leave the wrf_user_getvar call alone. You can write the 3d local<br>
> variable into the 4d file variable by subscripting the left hand side<br>
> of the assignment:<br>
><br>
> in->PM2_5_DRY(0,:,:,:) = (/bb/)<br>
><br>
> We will look into why this is not caught earlier with a more apropos<br>
> "dimension mismatch" error to avoid the trip into the NetCDF library<br>
> code and the resulting low-level error messages.<br>
> -dave<br>
><br>
><br>
> On Thu, Feb 4, 2016 at 8:16 PM, Dan Chen <<a href="mailto:dchen@ucar.edu" target="_blank">dchen@ucar.edu</a>> wrote:<br>
> > Hi,<br>
> ><br>
> > My name is Dan Chen working at MMM, NCAR. I'm using ncl to read a<br>
> variable<br>
> > and write into the netcdf-4 compressed file on Yellowstone, but failed.<br>
> ><br>
> > The script is as blow:<br>
> > ========================================<br>
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>
> > load "$NCARG_ROOT//lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"<br>
> > load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"<br>
> ><br>
> > begin<br>
> ><br>
> > fils = "/glade/scratch/dchen/ncl_netcdf4/analysis.ensmean"<br>
> > in = addfile(fils,"w")<br>
> > bb = wrf_user_getvar(in,"PM2_5_DRY",0)<br>
> > bb = bb*10<br>
> > fils->PM2_5_DRY = (/bb/)<br>
> ><br>
> > end<br>
> > ==========================================<br>
> ><br>
> ><br>
> > The error is as below<br>
> > =========================<br>
> > Copyright (C) 1995-2015 - All Rights Reserved<br>
> > University Corporation for Atmospheric Research<br>
> > NCAR Command Language Version 6.3.0<br>
> > The use of this software is governed by a License Agreement.<br>
> > See <a href="http://www.ncl.ucar.edu/" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br>
> > fatal:["NclNetCDF4.c":3073]:NclNetCDF4.c: Error in nc_def_var_chunking in<br>
> > file (/glade/scratch/dchen/ncl_netcdf4/analysis.ensmean) for writing, at<br>
> > line: 3073<br>
> ><br>
> > line 3074 of NclNetCDF4.c: NetCDF: Attempt to define var properties, like<br>
> > deflate, after enddef.<br>
> > ============================<br>
> ><br>
> ><br>
> > If I change the input file to a normal netcdf file without the<br>
> compression<br>
> > option, it works fine. But I do need to process those netcdf-4 compressed<br>
> > files. Can you let me know if there is anything I can try?<br>
> ><br>
> > Many thanks,<br>
> > Dan<br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > ncl-talk mailing list<br>
> > <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> > List instructions, subscriber options, unsubscribe:<br>
> > <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
> ><br>
><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> ncl-talk mailing list<br>
> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
> List instructions, subscriber options, unsubscribe:<br>
> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
><br>
><br>
> End of ncl-talk Digest, Vol 147, Issue 8<br>
> ****************************************<br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160208/95b6eae0/attachment-0001.html" rel="noreferrer" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160208/95b6eae0/attachment-0001.html</a><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
<br>
End of ncl-talk Digest, Vol 147, Issue 10<br>
*****************************************<br>
</blockquote></div><br></div></div></div></div></div></div></div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div>