<div dir="ltr">Ipsita,<div><br></div><div>It looks like you got the coordinates working. I can't be of much help on the plotting issues. I suggest that you look through the NCL examples for similar plots of swath data.</div><div><br></div><div>--Dave</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 13, 2017 at 6:04 AM, Ipsita Putatunda <span dir="ltr"><<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Thank you Dave for your suggestions. I tried to plot the data, but it is coming only if I plot setting resource "RasterFill", and even though the plot is not coming with a clear contours. Don't know where I am making mistake. I tried to regrid the data using "triple2grid" but then all the values are coming undefined. I am attaching herewith my script and the figure I have got after plotting. Any help will be appreciated.<br></div>Thanks in advance.<br></div><br>Ipsita<br><div><div> <br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 13, 2017 at 4:19 AM, Dave Allured - NOAA Affiliate <span dir="ltr"><<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ipsita,<div><br></div><div>This HDF5 file has coordinate arrays Colatitude and Longitude. The units of each are degrees, not pixels. However, please notice two anomalies:</div><div><br></div><div>1. The coordinates are packed with an unusual scale/offset packing scheme. The packing parameters are in attributes Scale_Factor and Add_Offset, which are not CF standard attributes. However, the intent is fairly clear. To unpack each coordinate value, just multiply by the Scale_Factor.</div><div><br></div><div>The Add_Offset's are zero in this case, and can therefore be ignored. That is good, so that we do not have to worry about whether the offset would be applied before or after the scale factor.</div><div><br></div><div>This will produce colatitudes in the normal range 60 to 120 degrees, and longitudes in the normal range 0 to 360 degrees.</div><div><br></div><div>2. I assume that the colatitudes conform to the current definition on Wikipedia. You might confirm this with the data provider, if you wish. This definition is the number of degrees southward from the north pole. The colatitude values unpacked are in the range 60 to 120 degrees, which translate to 30 north to 30 south in normal latitude units.</div><span class="m_8477359249888460066HOEnZb"><font color="#888888"><div><br></div><div>--Dave</div></font></span><div><div class="m_8477359249888460066h5"><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 12, 2017 at 12:08 AM, Ipsita Putatunda <span dir="ltr"><<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>The Latitude (here Colatitude) and Longitude data are in pixels which is -30 to 30 degree and 0 to 360 degree. Please find the file I am attaching herewith.<br><br></div>Ipsita<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 11, 2017 at 10:30 PM, Dave Allured - NOAA Affiliate <span dir="ltr"><<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span><span style="font-size:14px">Ipsita,</span><div style="font-size:14px"><br></div><div style="font-size:14px">How is your input data georeferenced? Does the input file include coordinate variables? That is the most common way to get lats and lons for individual pixels.</div><div style="font-size:14px"><br></div><div style="font-size:14px">--Dave</div></span><div style="font-size:14px">(Please reply to the mailing list.)</div><div style="font-size:14px"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Tue, Jul 11, 2017 at 12:22 AM, Ipsita Putatunda <span dir="ltr"><<a href="mailto:ipsita.putatunda@gmail.com" target="_blank">ipsita.putatunda@gmail.com</a>></span> wrote:<br></span><div><div class="m_8477359249888460066m_965789795611814915m_-8075799568858523074m_7855867607137495160h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Dear NCL users,<br></div> I need help in converting pixels to Lat/Lon grid. Is there any function or way in ncl for doing this operation? Please suggest.<br><br></div>Thanks in advance,<br></div>Ipsita</div></blockquote></div></div></div></div></div></blockquote></div></div></blockquote></div></div></div></div></div>
</blockquote></div><br></div>
</blockquote></div><br></div></div>