<div dir="ltr"><div class="gmail_default" style="font-size:small">Steven,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If I understand your question correctly, I think the issue is that in your XY plot call, you are only providing the Y values. There are no X values. Hence NCL is going to use 0 to n-1 as your X values, where "n" is the number of points in the Y array.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Try calling gsn_csm_xy instead, and pass in your longitude array for the X axis. As an example:</div><div class="gmail_default" style="font-size:small">
<p class="">plot = <span class="">gsn_csm_xy</span> (wks,lon,data,res)</p></div><div class="gmail_extra"><div class="gmail_default" style="font-size:small">Word of caution here: I noticed you are filling in the data, deepblue, and diff arrays with two sets of values, and I don't know if those two sets of values have the same longitude points on the X axis. If they don't, then you should create a "lon" array the same way you did the other arrays, and fill in the appropriate values. You can pass a 2D Y and X array to "gsn_csm_xy", as long as they are the same dimensions.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See the attached script, which I just plotted data straight from your July.nc file.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 16, 2016 at 2:39 PM, BLIUJUS, STEVEN D CTR USAF AFMC AFLCMC/HBAW-OL <span dir="ltr"><<a href="mailto:steven.bliujus.3.ctr@us.af.mil" target="_blank">steven.bliujus.3.ctr@us.af.mil</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I am running a scatterplot between two different files, but I am having<br>
issues with indices. I have two different files, one file makes point (0,0)<br>
as 90 degrees south and 180deg East. The other file sets point(0,0) as 90<br>
degrees south and 0 degrees east, thus when trying to plot the data as a<br>
comparison, in this case (see image) AOD between two different files, you<br>
can see there is a 180 deg phase shift. I am trying to find the easiest fix<br>
for this. Below is a variable summary for each value: (I do see for var1 the<br>
lon is specified -179.5..179.5, whereas X2x3 specifies 0.5...359.5). Any<br>
help would be appreciated. I have attached the image, the script, and one of<br>
the files. The other file is too large to send by email. Basically I'm<br>
looking to fix the shift.<br>
<br>
<br>
Variable: var1<br>
Type: double<br>
Total Size: 518400 bytes<br>
64800 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [lat | 180] x [lon | 360]<br>
Coordinates:<br>
lat: [-89.5..89.5]<br>
lon: [-179.5..179.5]<br>
Number Of Attributes: 19<br>
_FillValue : -9999<br>
long_name : Aerosol Optical Thickness at 0.55 microns for both Ocean<br>
(best) and Land (corrected): Mean of Daily Mean<br>
units : 1<br>
Level_2_Pixel_Values_Read_As : Real<br>
Included_Level_2_Nighttime_Data : False<br>
Quality_Assurance_Data_Set : No_QA<br>
Statistic_Type : Simple<br>
Aggregation_Data_Set : None<br>
Derived_From_Level_3_Daily_Data_Set :<br>
Aerosol_Optical_Depth_Land_Ocean_Mean<br>
Weighting : Unweighted<br>
standard_name : aerosol optical depth<br>
quantity_type : Aerosol Optical Depth<br>
product_short_name : MOD08_M3<br>
product_version : 6<br>
coordinates : lat lon<br>
cell_methods : time: mean time: mean<br>
latitude_resolution : 1<br>
longitude_resolution : 1<br>
average_op_ncl : dim_avg_n over dimension(s): ncl_join<br>
<br>
Variable: X2x3<br>
Type: float<br>
Total Size: 259200 bytes<br>
64800 values<br>
Number of Dimensions: 2<br>
Dimensions and sizes: [LAT | 180] x [LON | 360]<br>
Coordinates:<br>
LAT: [-89.5..89.5]<br>
LON: [0.5..359.5]<br>
Number Of Attributes: 13<br>
sub_center : Ocean Prediction Center<br>
center : U.S. Air Force - Global Weather Center<br>
long_name : Unknown Variable Name<br>
units : unknown<br>
_FillValue : 1e+20<br>
level_indicator : 200<br>
gds_grid_type : 0<br>
parameter_table_version : 129<br>
parameter_number : 147<br>
level : 0<br>
forecast_time : 0<br>
forecast_time_units : years<br>
<br>
<br>
<br>
Steven Bliujus, Contractor<br>
SEMS/16WS WXE<br>
557th Weather Wing<br>
DNS: 232-7151<br>
<br>
<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><br></div></div>