[ncl-talk] Coordinate syronising error

Najib Yusuf najibgal at yahoo.com
Wed Jun 2 09:52:24 MDT 2021


No Rashed, could it be interchanged with longitude?

Sent from Yahoo Mail on Android 
 
  On Wed, 2 Jun 2021 at 16:32, Rashed Mahmood<rashidcomsis at gmail.com> wrote:   The latitude range from the variable summary looks strange:Coordinates:            XDim_MOP03: [-179.5..179.5]            YDim_MOP03: [ 0.5..359.5]Do you know why latitudes are expanding from 0.5 to 359.5?

On Wed, Jun 2, 2021 at 4:39 PM Najib Yusuf via ncl-talk <ncl-talk at mailman.ucar.edu> wrote:

 Dear Dennis,
Thank you for this quick response. I have effected the suggestion, the printVarSummary is:
Variable: co_modelType: floatTotal Size: 148635648 bytes            37158912 valuesNumber of Dimensions: 4Dimensions and sizes:   [time | 12] x [lev | 56] x [lat | 192] x [lon | 288]Coordinates:            time: [  31.. 365]            lev: [1.867879997007549..992.5000106104562]            lat: [ -90..  90]            lon: [   0..358.75]Number Of Attributes: 4  mdims :       1  units :       mol/mol  long_name :   CO concentration  cell_methods :        time: mean
Variable: cocol_retr_flipType: floatTotal Size: 3110400 bytes            777600 valuesNumber of Dimensions: 3Dimensions and sizes:   [ncl_join | 12] x [XDim_MOP03 | 360] x [YDim_MOP03 | 180]Coordinates:            XDim_MOP03: [-179.5..179.5]            YDim_MOP03: [ 0.5..359.5]Number Of Attributes: 5  long_name :   Retrieved CO Total Column Day  units :       mol/cm^2  _FillValue :  -9999  projection :  Geographic  lonFlip :     longitude coordinate variable has been reordered via lonFlip
However, when I run I get similar error:fatal:NclOneDValGetClosestIndex: finish coordinate index out of range, can't continuefatal:Could not obtain coordinate indexes, unable to perform subscriptfatal:["Execute.c":8637]:Execute: Error occurred at or near line 172 in file Annualaverage_MOPITTCO_nyg_modified.ncl
I know you are busy, kindly spare some time to assist me look at the script as you use to.
Thank you sir.
Najib


    On Tuesday, June 1, 2021, 09:29:32 PM GMT+1, Dennis Shea <shea at ucar.edu> wrote:  
 
 I don't have the time to look at your script right now.
However, The lat/lon ranges are different.
In particular the longitudes. Likely, you will have to make the longitudes both be (nominally) 0-to-360 or -180-to180You can use lonFlip  to accomplish this.
Variable: co_modelDimensions and sizes:   [time | 12] x [lev | 56] x [lat | 192] x [lon | 288]
Coordinates:
            time: [  31.. 365]
            lev: [1.867879997007549..992.5000106104562]
            lat: [ -90..  90]
            lon: [   0..358.75]

Variable: cocol_retr
Dimensions and sizes:   [ncl_join | 12] x [XDim_MOP03 | 360] x [YDim_MOP03 | 180]
Coordinates:
            XDim_MOP03: [-179.5..179.5]
            YDim_MOP03: [-89.5..89.5]
~                                            

On Tue, Jun 1, 2021 at 5:17 AM Najib Yusuf via ncl-talk <ncl-talk at mailman.ucar.edu> wrote:

Dear NCL users,
I am comparing CO from MOPITT satellite retrieval and model CAM output with averaging kernel been considered. I am having trouble synchronising the coordinates amd the error is: fatal:NclOneDValGetClosestIndex: finish coordinate index out of range, can't continuefatal:Could not obtain coordinate indexes, unable to perform subscriptfatal:["Execute.c":8637]:Execute: Error occurred at or near line 165 in file Annualaverage_MOPITTCO_nyg_modified.ncl ( under:  Collect equivalent profile)
I look around NCL examples but couldn't figure out how to resolve the issue and get the plot. Kindly assist to figure out the solution to this. The script Annualaverage_MOPITTCO_nyg_modified.ncl and the run CO_MOPITT_MODEL_Comparison_run are attached. 
Thank you for your support._______________________________________________
ncl-talk mailing list
ncl-talk at mailman.ucar.edu
List instructions, subscriber options, unsubscribe:
https://mailman.ucar.edu/mailman/listinfo/ncl-talk
  _______________________________________________
ncl-talk mailing list
ncl-talk at mailman.ucar.edu
List instructions, subscriber options, unsubscribe:
https://mailman.ucar.edu/mailman/listinfo/ncl-talk
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210602/644c6f89/attachment.html>


More information about the ncl-talk mailing list