<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
p.m4923127676996268827gmail-m7531163896496914688msonospacing, li.m4923127676996268827gmail-m7531163896496914688msonospacing, div.m4923127676996268827gmail-m7531163896496914688msonospacing
        {mso-style-name:m_4923127676996268827gmail-m_7531163896496914688msonospacing;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.hoenzb
        {mso-style-name:hoenzb;}
p.m4923127676996268827m7531163896496914688msonospacing, li.m4923127676996268827m7531163896496914688msonospacing, div.m4923127676996268827m7531163896496914688msonospacing
        {mso-style-name:m_4923127676996268827m_7531163896496914688msonospacing;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="HU" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNoSpacing">Dear Dennis,<o:p></o:p></p>
<p class="MsoNoSpacing"><o:p> </o:p></p>
<p class="MsoNoSpacing">You are right I agree with you. To be honest I created the netCDF files in Matlab. The missing values were originally NaN values but I converted them to single -999 by:<o:p></o:p></p>
<p class="MsoNoSpacing"><span style="mso-fareast-language:HU">data(isnan(data))=single(-999);<o:p></o:p></span></p>
<p class="MsoNoSpacing">pr = permute(data,[2,3,1]);<o:p></o:p></p>
<p class="MsoNoSpacing">pr = single(pr);<o:p></o:p></p>
<p class="MsoNoSpacing"><o:p> </o:p></p>
<p class="MsoNoSpacing">and I defined -999 as _FillValue by:<o:p></o:p></p>
<p class="MsoNoSpacing">netcdf.putAtt(ncid1,3,'_FillValue', cast(-999, class(pr)));<o:p></o:p></p>
<p class="MsoNoSpacing"><o:p> </o:p></p>
<p class="MsoNoSpacing">I checked the netCDF files with ncdump -h which denoted that _FillValue and pr value are both float:<o:p></o:p></p>
<p class="MsoNoSpacing">$ ncdump -h MPI-ESM-LR-CLM4.8.17_dry_power.nc<o:p></o:p></p>
<p class="MsoNoSpacing">netcdf MPI-ESM-LR-CLM4.8.17_dry_power {<o:p></o:p></p>
<p class="MsoNoSpacing">dimensions:<o:p></o:p></p>
<p class="MsoNoSpacing"> longitude = 464 ;<o:p></o:p></p>
<p class="MsoNoSpacing"> latitude = 201 ;<o:p></o:p></p>
<p class="MsoNoSpacing"> time = 5479 ;<o:p></o:p></p>
<p class="MsoNoSpacing">variables:<o:p></o:p></p>
<p class="MsoNoSpacing"> float longitude(longitude) ;<o:p></o:p></p>
<p class="MsoNoSpacing"> longitude:long_name = "longitude" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> longitude:standard_name = "lon" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> longitude:units = "degrees_east" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> float latitude(latitude) ;<o:p></o:p></p>
<p class="MsoNoSpacing"> latitude:long_name = "latitude" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> latitude:standard_name = "lat" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> latitude:units = "degrees_north" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> double time(time) ;<o:p></o:p></p>
<p class="MsoNoSpacing"> time:long_name = "time" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> time:standard_name = "time" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> time:units = "days since 1949-12-1 00:00:00" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> float pr(time, latitude, longitude) ;<o:p></o:p></p>
<p class="MsoNoSpacing"> pr:_FillValue = -999.f ;<o:p></o:p></p>
<p class="MsoNoSpacing"> pr:long_name = "precipitation" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> pr:standard_name = "precipitation" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> pr:units = "mm" ;<o:p></o:p></p>
<p class="MsoNoSpacing"> pr:cell_methods = "time: mean" ;<o:p></o:p></p>
<p class="MsoNoSpacing">}<o:p></o:p></p>
<p class="MsoNoSpacing">When I tried to calculate the multi year seasonal mean values with CDO I got the following error message:<o:p></o:p></p>
<p class="MsoNoSpacing">cdo yseasmean MPI-ESM-LR-CLM4.8.17_dry_power.nc MPI-ESM-LR-CLM4.8.17_dry_power_sm.nc<o:p></o:p></p>
<p class="MsoNoSpacing">cdf_put_vara_double : ncid = 131072 varid = 3 val0 = -999.000000<o:p></o:p></p>
<p class="MsoNoSpacing">cdf_put_vara_double : varname = pr<o:p></o:p></p>
<p class="MsoNoSpacing"><o:p> </o:p></p>
<p class="MsoNoSpacing">Error (cdf_put_vara_double) : NetCDF: Numeric conversion not representable<o:p></o:p></p>
<p class="MsoNoSpacing">I could carry out this operator without error message if I use –b 64 option but due to this option the values become double precision. I do not understand why CDO considers _Fill Value to be double?<o:p></o:p></p>
<p class="MsoNoSpacing"><o:p> </o:p></p>
<p class="MsoNoSpacing">Beata<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Dennis Shea [mailto:shea@ucar.edu]
<br>
<b>Sent:</b> Monday, June 19, 2017 6:39 PM<br>
<b>To:</b> Mary Haley <haley@ucar.edu><br>
<b>Cc:</b> Beáta Szabó-Takács <szabo.b@czechglobe.cz>; ncl-talk (ncl-talk@ucar.edu) <ncl-talk@ucar.edu><br>
<b>Subject:</b> Re: [ncl-talk] convert the double missing_value to float one<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">A comment about netCDF variables. Since NCL variables follow the netCDF variable model, it holds for NCL variables also.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">By rule, the type of the _FillValue should match the type of the variable with which it is associated.
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">short variable must have a short _Fillvalue<o:p></o:p></p>
</div>
<p class="MsoNormal">integer variable ... integer _FillValue<o:p></o:p></p>
</div>
<p class="MsoNormal">float variable ... float _FillValue<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">double variable ... double _FillValue<br>
<br>
---<br>
<br>
<br>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Jun 19, 2017 at 9:38 AM, Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal">Beata,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">When going from a 'higher' type to a 'lower' type (double to float, for example), you need to use the reassignment operator (':=') to force the conversion:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="m4923127676996268827gmail-m7531163896496914688msonospacing" style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> p8@missing_value := doubletofloat(p8@missing_value)<o:p></o:p></span></p>
<p class="m4923127676996268827gmail-m7531163896496914688msonospacing" style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> p8@_FillValue := p8@missing_value<o:p></o:p></span></p>
<p class="m4923127676996268827gmail-m7531163896496914688msonospacing" style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="m4923127676996268827gmail-m7531163896496914688msonospacing" style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif">It might be better to use the "totype" function:<o:p></o:p></span></p>
<p class="m4923127676996268827gmail-m7531163896496914688msonospacing" style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="m4923127676996268827gmail-m7531163896496914688msonospacing" style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> p8@_FillValue := totype(p8@_FillValue,typeof(p8))<o:p></o:p></span></p>
<p class="m4923127676996268827gmail-m7531163896496914688msonospacing" style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> p8@missing_value := totype(p8@missing_value,typeof(p8))<o:p></o:p></span></p>
<p class="m4923127676996268827gmail-m7531163896496914688msonospacing" style="margin:0cm;margin-bottom:.0001pt">
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#888888"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888">--Mary<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:#888888"><o:p> </o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Jun 19, 2017 at 1:04 AM, Beáta Szabó-Takács <<a href="mailto:szabo.b@czechglobe.cz" target="_blank">szabo.b@czechglobe.cz</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<div>
<p class="m4923127676996268827m7531163896496914688msonospacing">Dear NCL Users,<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">I would like to create a taylor_metrics_table where the missing values are denoted by -999. This part of script is:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> season = (/ "DJF","JJA" /)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> nSeason = dimsizes(season)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> table = new ( (/nCase,nSeason,nSource/), typeof(ratio) )<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> table(0,:,:) = (/CA_bias, CA_biasn/)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> table(1,:,:) = (/CB_bias, CB_biasn/)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> table(2,:,:) = (/CC_bias, CC_biasn/)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> table(3,:,:) = (/CD_bias, CD_biasn/)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> tt_opt = True<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> tt_opt@tableTitle = "Bias(%)"<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> tt_opt@pltType= "png" ; "eps" [default], "pdf", "ps"<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> ; "png", "gif" [if you have ImageMajik 'convert']<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">; tt_opt@color0 = "palegreen2"<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">; tt_opt@color1 = "tomato2"<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> tt_opt@color0 = "white"<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> tt_opt@color1 = "white"<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> taylor_metrics_table("taylor_bias_dry", source, case ,season, table, tt_opt)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">I have some netcdf files where the precipitation (pr) values are float data type, but the _FillValue and missing_value are double. I tried convert these data to float with:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">ncap2 -s 'pr=float(pr)' CM5A-MR_RCA4_dry_power_sm.nc CM5A-MR_RCA4_dry_power_sm2.nc<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">It converted the _FillValue to float but the missing_value are still double:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">netcdf CM5A-MR_RCA4_dry_power_sm2 {<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">dimensions:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time = UNLIMITED ; // (4 currently)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude = 201 ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude = 464 ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">variables:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> float pr(time, latitude, longitude) ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> pr:_FillValue = -999.f ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> pr:cell_methods = "time: mean" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> pr:long_name = "precipitation" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> pr:missing_value = -999. ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> pr:standard_name = "precipitation_flux" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> pr:units = "mm" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> float longitude(longitude) ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude:standard_name = "longitude" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude:long_name = "longitude" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude:units = "degrees_east" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude:axis = "X" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> float latitude(latitude) ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude:standard_name = "latitude" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude:long_name = "latitude" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude:units = "degrees_north" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude:axis = "Y" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> double time(time) ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:standard_name = "time" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:long_name = "time" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:units = "days since 1949-12-1 00:00:00" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:calendar = "standard" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:axis = "T" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">The resulted table is attached. In the table the missing values are denoted by double values in CD_biasn despite the fact that the printed CD_biasn contains _FillValues:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Variable: CD_biasn<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Type: float<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Total Size: 20 bytes<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> 5 values<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Number of Dimensions: 1<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Dimensions and sizes: [5]<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Coordinates:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Number Of Attributes: 1<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> _FillValue : -999<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">(0) -999<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">(1) -4.541727<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">(2) 12.45617<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">(3) 10.47692<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">(4) -999<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">I also tried to convert the missing values to float type by ncl doubletofloat function but it does not work:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">p8@missing_value=doubletofloat(p8@missing_value)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> p8@_FillValue = p8@missing_value<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> delete(p8@missing_value)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">fatal:Type Mismatch: The type of missing value could not be converted to type of variable (p8)<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> p8_out = addfile("<a href="http://p8.nc" target="_blank">p8.nc</a>","c")<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> p8_out ->p8 = p8<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">ncdump -h <a href="http://p8.nc" target="_blank">
p8.nc</a><o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">netcdf p8 {<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">dimensions:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time = 4 ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude = 201 ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude = 464 ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">variables:<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> float p8(time, latitude, longitude) ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> p8:_FillValue = -999.f ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> p8:cell_methods = "time: mean" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> p8:long_name = "precipitation" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> p8:missing_value = -999. ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> p8:standard_name = "precipitation_flux" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> p8:units = "mm" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> double time(time) ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:standard_name = "time" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:long_name = "time" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:units = "days since 1949-12-1 00:00:00" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:calendar = "standard" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> time:axis = "T" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> float latitude(latitude) ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude:standard_name = "latitude" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude:long_name = "latitude" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude:units = "degrees_north" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> latitude:axis = "Y" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> float longitude(longitude) ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude:standard_name = "longitude" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude:long_name = "longitude" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude:units = "degrees_east" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> longitude:axis = "X" ;<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">}<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing"> <o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Can someone suggest me a solution?<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Thank you for your help in advance!<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Kind regards,<o:p></o:p></p>
<p class="m4923127676996268827m7531163896496914688msonospacing">Beata<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">_______________________________________________<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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>