<div dir="ltr">Hi NCL user,<br><div>I have been trying to write a variable that is function of 2dlat/lon to the netcdf file. </div><div>I'm getting following error. I would appreciate any help to fix this error. </div><div><br></div><div>Thanks</div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">VRH!</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">0</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>= </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">"lat2d"</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span></span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(83,48,225)">; assign named dimensions</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">VRH!</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">1</span><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>= </span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(195,55,32)">"lon2d"</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">VRH&lat2d<span class="gmail-Apple-converted-space"> </span>= lat2d <span class="gmail-Apple-converted-space"> </span></span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures;color:rgb(83,48,225)">; copy lat from T to ORO</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">VRH&lat2d<span class="gmail-Apple-converted-space"> </span>= lon2d</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">
</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">ncdf->VRH = VRH <span class="gmail-Apple-converted-space"> </span></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"><br></span></span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Variable: VRH</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Type: integer</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Total Size: 491520 bytes</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>122880 values</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number of Dimensions: 2</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Dimensions and sizes:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>[nj | 384] x [ni | 320]</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Coordinates:<span class="gmail-Apple-converted-space"> </span></span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">Number Of Attributes: 3</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>lat2d :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><ARRAY of 122880 elements></span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>lon2d :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span><ARRAY of 122880 elements></span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>_FillValue :<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>-2147483647</span></p><p class="gmail-p1" style="margin:0px;font:11px Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">fatal:Coordinate variables must have one dimension only</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">
</span></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">fatal:No coordinate variable exists for dimension (lat2d) in variable (VRH)</span></p></div></div>