From: Arlindo da S. <da...@al...> - 2008-06-15 15:38:15
|
Jennifer, Is this offset problem (1 for binary, 0 for netcdf) also true in Grads v2? If one needs to choose one, which one would you choose? Perhaps, offset "1" since PDEF with binary seems to be more generally used? Besides, the GrADS x/y/z/t indices also start at 1. Arlindo ---------- Forwarded message ---------- From: Sergey Varlamov <vs...@ja...> Date: Tue, May 13, 2008 at 10:32 PM Subject: Re: Bug fix for the pre-projected NetCDF data support To: Arlindo da Silva <da...@al...> Arlindo, Thank you. In addition, 1. Testing the PDEF with the simple 3*3 binary test file, I found that for binary files the data offset specified in the PDEF file is assumed to start from 1, not from 0 as is for the netCDF case. [gaio.c, gaprow function]: //original code, wrong offset: pos = pos0 + ioffs[j] - 1; //vsm - replace: pos = pos0 + ioffs[j]; 2. The code for PDEF FILE / BILIN treatment now assumes that the NetCDF file has standard dimensions order, i.e. x varies first etc. Need further effort to make code more universal, at least check the NetCDF structure on applicability of existing PDEF interpolation. Do not have it urgent for me, but may be I could suggest such extension some later... Best regards, Sergey Arlindo da Silva wrote: > Serguey, > > Thanks for the bug report. I have entered it in the opengrads tracker for > v1.9.0 (id 1963065). > > Arlindo > > On Wed, May 7, 2008 at 4:08 AM, Sergey Varlamov <vs...@ja...<mailto: > vs...@ja...>> wrote: > > Dear GrADS developers, > > First of all thank you for supporting this nice product. > I am daily using it in my work and recently I met the problem > when I needed to visualize the NetCDF ocean data on the special > curvilinear grid (ORCA grid). These data could be visualized > in original IJ grid without problem using GrADS DDF > (umask_1m.ctl ), but trying to plot the re-interpolated data > using PDEF FILE option failed. > ... > > > > -- > Arlindo da Silva > da...@al... <mailto:da...@al...> > -- Sergey Varlamov Senior Scientist Climate Variations Modeling Group Climate Variations Research Program Frontier Research Center for Global Change JAMSTEC, 3173-25 Showa-machi, Yokohama Kanagawa 236-0001 JAPAN Tel: +81-45-778-5516 Fax: +81-45-778-5707 E-mail: vs...@ja... -- Arlindo da Silva da...@al... |