<div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to analyze
the output from a list of forecast files simulated by Ocean Model.
However, I have few issues regarding this output data. <br></div><div><br></div><div>1) <u>Regarding Time: </u><br></div><div>I
used "cat" to combine the list of 21 forecast files. My idea behind
merging is to make a time vs depth section. NCl shows the following
error. Should I go with join instead of cat??<br></div><div><u><b>ERROR</b></u><br></div><div><b>
warning:Aggregated dimension coordinate values are non-monotonic; check
aggregated file ordering.</b></div><div><b> </b>(Is it something to do with my Time values?)<b><br></b></div><div><br></div><div>printVarSummary(Time) <br></div><div>Variable: Time<br>Type: float<br>Total Size: 84 bytes<br> 21 values<br>Number of Dimensions: 1<br>Dimensions and sizes: [time | 21]<br>Coordinates: <br> time: [ 0.. 5]<br>Number Of Attributes: 2<br> long_name : time<br> units : days since 2017-12-01 00:00:00 +00:00<br>(0) 0<br>(1) 0.25<br>(2) 0.5<br>(3) 0.75<br>(4) 1<br>(5) 1.25<br>(6) 1.5<br>(7) 1.75<br>(8) 2<br>(9) 2.25<br>(10) 2.5<br>(11) 2.75<br>(12) 3<br>(13) 3.25<br>(14) 3.5<br>(15) 3.75<br>(16) 4<br>(17) 4.25<br>(18) 4.5<br>(19) 4.75<br>(20) 5<br></div><div>How do I get the regular time axis from the above values?<br></div><div><br></div><div>2) <u>Regarding lat and lon :</u><br></div><div>
I found the units of lat and lon are in meters. I want to convert them
into degrees. I could get the conversion from radians to degrees and
vice versa, but not meters to degrees. And also, this data is in
curvilinear grid I suppose. <br></div><div><br></div><div>2) <u>Regarding depth:</u></div><div>Model
output is in sigma coordinate system, where I would like to convert it
into regular depth levels(meters). I found couple of examples in this
regard which didn't help me much. <div class="gmail_chip gmail_drive_chip" style="width:396px;height:18px;max-height:18px;background-color:rgb(245,245,245);padding:5px;color:rgb(34,34,34);font-family:arial;font-style:normal;font-weight:bold;font-size:13px;border:1px solid rgb(221,221,221);line-height:1"><a href="https://drive.google.com/file/d/17Dc8CpN0gtgGFUX5H_iYhpgmQnnDpZYX/view?usp=drive_web" target="_blank" style="display:inline-block;max-width:366px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;padding:1px 0;border:none"><img style="vertical-align: bottom; border: none;" src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png"> <span dir="ltr" style="color:rgb(17,85,204);text-decoration:none;vertical-align:bottom">ockhi03b.2017120100.pom.0000.nc</span></a><img src="//ssl.gstatic.com/ui/v1/icons/common/x_8px.png" style="opacity: 0.55; cursor: pointer; float: right; position: relative; top: -1px; display: none;"></div></div><div><br></div><div>********************************<br></div><div>Below is a sample script where I tried to plot a 2D temperature plot at first time step over surface. (to check the data) <br></div><div><br></div><div>dir = "/incois_ncmrwfx/incois/hycom/hwrf_output/pytmp/POMcoupled_emcPHY/com/2017120100/03B/"<br>files = systemfunc("ls " + dir + "ockhi03b.2017120100.pom.00*.nc")<br>a = addfiles(files,"r")<br>ListSetType(a,"cat")<br>vNames = getfilevarnames(a[0])<br>print(vNames)<br><br>;----- Read character variable Times<br> </div><div> temp = a[:]->t <br> Time = a[:]->time<br> dep = a[:]->z<br> lon2d = a[:]->east_e<br> lat2d = a[:]->north_e<br>;;temp@lon2d = a[:]->east_e ;;creating errors when I use <br></div><div>;;temp@lat2d = a[:]->north_e ;;ditto<br></div><div>printVarSummary(lon2d)<br>printVarSummary(lat2d)<br><br>wks = gsn_open_wks("png","testOceanOutput")<br>res = True <br>res@cnFillOn = True <br>res@cnLinesOn = False<br><br>plot = gsn_csm_contour(wks,temp(0,0,:,:),res)</div><div><br></div><div>This script makes a plot, which is INCORRECT. I have uploaded the data file using ftp. Kindly look into my data and give your suggestions. <br></div><div><br></div><div>Thanks in advance for your time and support.</div><div><br></div><div>Regards</div><div>Jyothi<br></div></div>