[gradsusr] Writing non-coordinate variables

Martin Addi addimartin32 at gmail.com
Thu Aug 13 10:29:04 EDT 2015


Thank very much i will follow the instructions.

On Thu, Aug 13, 2015 at 2:54 AM, James T. Potemra <jimp at hawaii.edu> wrote:

> Martin,
>
> I think the problem is with the dimension "evn".  You can confirm this by
> writing a
> descriptor file (see
> http://www.iges.org/grads/gadoc/SDFdescriptorfile.html).
>
> Since you only have two, you might try writing these as two separate
> variables (e.g.,
> EOF1 and EOF2, rather than EOF(1,lat,lon) and EOF(2,lat,lon)).  Second,
> I'm not sure
> you can mix variables that are functions of time (EOF_TS) and those that
> are not (EOF).
> Again, you might be able to fake this with levels; GrADS can handle
> variables with
> different number of vertical levels, but I don't think it can handle
> variables with different
> number of times.
>
> Jim
>
>
> On 8/11/15 11:26 PM, Martin Addi wrote:
>
> Thanks for the advice.Below is the meta data and have also attached the
> file.
>
> netcdf EOF {
> dimensions:
>     evn = 2 ;
>     lat = 44 ;
>     lon = 46 ;
>     time = 49 ;
> variables:
>     double EOF(evn, lat, lon) ;
>         EOF:eval_transpose = 7753.36745873359, 4131.29121507285 ;
>         EOF:eval = 279121.228514409, 148726.483742623 ;
>         EOF:pcvar = 19.72755f, 10.5116f ;
>         EOF:matrix = "covariance" ;
>         EOF:method = "transpose" ;
>         EOF:_FillValue = 9.96920996838687e+36 ;
>         EOF:long_name = "EOF: Wgt: MAM: precipitation" ;
>     int evn(evn) ;
>         evn:long_name = "eigenvalue number" ;
>         evn:units =  ;
>     double lat(lat) ;
>         lat:units = "degrees_north" ;
>         lat:long_name = "latitude" ;
>     double lon(lon) ;
>         lon:units = "degrees_east" ;
>         lon:long_name = "longitude" ;
>     double EOF_TS(evn, time) ;
>         EOF_TS:ts_mean = -5361.91594760721, -88.5917578848278 ;
>         EOF_TS:matrix = "covariance" ;
>         EOF_TS:_FillValue = 9.96920996838687e+36 ;
>         EOF_TS:long_name = "EOF: Amplitude: Wgt: MAM: precipitation" ;
>     double time(time) ;
>         time:long_name = "time" ;
>         time:units = "days since 1900-1-1" ;
>         time:calendar = "gregorian" ;
>
> // global attributes:
>         :title = "EOF of precipitation" ;
> data:
>
>  evn = 1, 2 ;
>
>  lat = -11.75, -11.25, -10.75, -10.25, -9.75, -9.25, -8.75, -8.25, -7.75,
>     -7.25, -6.75, -6.25, -5.75, -5.25, -4.75, -4.25, -3.75, -3.25, -2.75,
>     -2.25, -1.75, -1.25, -0.75, -0.25, 0.25, 0.75, 1.25, 1.75, 2.25, 2.75,
>     3.25, 3.75, 4.25, 4.75, 5.25, 5.75, 6.25, 6.75, 7.25, 7.75, 8.25,
> 8.75,
>     9.25, 9.75 ;
>
>  lon = 7.25, 7.75, 8.25, 8.75, 9.25, 9.75, 10.25, 10.75, 11.25, 11.75,
> 12.25,
>     12.75, 13.25, 13.75, 14.25, 14.75, 15.25, 15.75, 16.25, 16.75, 17.25,
>     17.75, 18.25, 18.75, 19.25, 19.75, 20.25, 20.75, 21.25, 21.75, 22.25,
>     22.75, 23.25, 23.75, 24.25, 24.75, 25.25, 25.75, 26.25, 26.75, 27.25,
>     27.75, 28.25, 28.75, 29.25, 29.75 ;
>
>  time = 22020, 22385, 22750, 23115, 23481, 23846, 24211, 24576, 24942,
> 25307,
>     25672, 26037, 26403, 26768, 27133, 27498, 27864, 28229, 28594, 28959,
>     29325, 29690, 30055, 30420, 30786, 31151, 31516, 31881, 32247, 32612,
>     32977, 33342, 33708, 34073, 34438, 34803, 35169, 35534, 35899, 36264,
>     36630, 36995, 37360, 37725, 38091, 38456, 38821, 39186, 39552 ;
> }
>
>
> On Wed, Aug 12, 2015 at 9:22 AM, Martin Addi <addimartin32 at gmail.com>
> wrote:
>
>> Thanks for the advice.Below is the meta data and have also attached the
>> file.
>> netcdf EOF {
>> dimensions:
>>     evn = 2 ;
>>     lat = 44 ;
>>     lon = 46 ;
>>     time = 588 ;
>> variables:
>>     double EOF(evn, lat, lon) ;
>>         EOF:eval_transpose = 2839081.44665023, 744764.87934487 ;
>>         EOF:eval = 8517244.33995068, 2234294.63803461 ;
>>         EOF:pcvar = 60.47348f, 15.86377f ;
>>         EOF:matrix = "covariance" ;
>>         EOF:method = "transpose" ;
>>         EOF:_FillValue = 9.96920996838687e+36 ;
>>         EOF:long_name = "EOF: Wgt: precipitation" ;
>>     int evn(evn) ;
>>         evn:long_name = "eigenvalue number" ;
>>         evn:units =  ;
>>     double lat(lat) ;
>>         lat:units = "degrees_north" ;
>>         lat:long_name = "latitude" ;
>>     double lon(lon) ;
>>         lon:units = "degrees_east" ;
>>         lon:long_name = "longitude" ;
>>     double EOF_TS(evn, time) ;
>>         EOF_TS:ts_mean = 124.04653929397, -4574.92777594637 ;
>>         EOF_TS:matrix = "covariance" ;
>>         EOF_TS:_FillValue = 9.96920996838687e+36 ;
>>         EOF_TS:long_name = "EOF: Amplitude: Wgt: precipitation" ;
>>     double time(time) ;
>>         time:calendar = "gregorian" ;
>>         time:units = "days since 1900-1-1" ;
>>         time:long_name = "time" ;
>>
>> // global attributes:
>>         :title = "EOF of precipitation" ;
>> data:
>>
>>  evn = 1, 2 ;
>>
>>
>> On Wed, Aug 12, 2015 at 6:02 AM, Kishore Ragi < <kishoreragi at gmail.com>
>> kishoreragi at gmail.com> wrote:
>>
>>> Nobody can help you if you don't give metadata of your file so get
>>> metadata using ncdump and paste it here in the forum. Maybe, somebody can
>>> help you ....
>>>
>>> Regards,
>>>
>>>
>>>
>>> *Kishore Ragi, *
>>>
>>> *PhD student in climate science, *
>>>
>>> *National Institute of Technology, Rourkela, *
>>>
>>> *India- 769008 *
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Phone: +91-8908671881
>>> <http://www.researchgate.net/profile/Kishore_Ragi>http://www.researchgate.net/profile/Kishore_Ragi
>>> <http://www.researchgate.net/profile/Kishore_Ragi>
>>> <https://in.linkedin.com/in/kishoreragi>https://in.linkedin.com/in/kishoreragi
>>> <https://in.linkedin.com/in/kishoreragi>
>>> <http://kishoreragi.webnode.com/>http://kishoreragi.webnode.com/
>>> <http://kishoreragi.webnode.com/>*
>>>
>>> On Wed, Aug 12, 2015 at 11:02 AM, Martin Addi <addimartin32 at gmail.com>
>>> wrote:
>>>
>>>> ncdump can open the file but i want to do my plots and further analysis
>>>> in GrADS.
>>>> On 12 Aug 2015 05:02, "Adv" < <advita6 at gmail.com>advita6 at gmail.com>
>>>> wrote:
>>>>
>>>>> Hi,
>>>>> Please try to open nc file using the ncdump command.
>>>>> Goodluck
>>>>>
>>>>> On Tue, Aug 11, 2015 at 10:34 PM, Martin Addi <
>>>>> <addimartin32 at gmail.com>addimartin32 at gmail.com> wrote:
>>>>>
>>>>>> Hello,
>>>>>> I used ncl to do an eof analysis and wrote the output to .nc file to
>>>>>> display in GrADS but when i called the file in GrADS  i had this message
>>>>>> "gadsdf:SDF file does not have any non-coordinate variables". How can i
>>>>>> solve this to sucessfully open and display my output in GrADS.
>>>>>> Thank you.
>>>>>>
>>>>>> _______________________________________________
>>>>>> gradsusr mailing list
>>>>>> gradsusr at gradsusr.org
>>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>>
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> gradsusr mailing list
>>>>> gradsusr at gradsusr.org
>>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>>
>>>>>
>>>> _______________________________________________
>>>> gradsusr mailing list
>>>> gradsusr at gradsusr.org
>>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>
>
> _______________________________________________
> gradsusr mailing listgradsusr at gradsusr.orghttp://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150813/9d906c59/attachment-0001.html 


More information about the gradsusr mailing list