<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>The sdfopen code uses the first two time axis values to determine the start time and increment of the time axis. It uses the udunits library to convert the initial time axis value into a date format GrADS can use (integers representing year, month, day, hour, and minute). The udunits library does not support 365 day calendars, so the initial date calculated by the library may be wrong. This problem is particularly noticeable with some IPCC AR4 netcdf files. You can use xdfopen with a 365-day-calendar netcdf file, as long as you specify the time axis completely. </div><div>Jennifer</div><div><br></div><br><div><div>On Apr 9, 2009, at 3:25 AM, James T. Potemra wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Arlindo and others:<br><br>I'm running version 2.0.a5.oga.3 on a 64-bit linux machine. I get the<br>following<br>error when attempting to load netCDF output via sdfopen:<br><br>SDF Error: 365 day calendars are no longer supported by sdfopen<br><br>It works in 1.9.0-rc1, and I was wondering why this feature is no longer<br>supported<br>in 2.0.x versions. Thanks,<br><br>Jim<br><br>Arlindo da Silva wrote:<br><blockquote type="cite">All,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> We just uploaded to sourceforge version 2.0.a5-oga.4 of the<br></blockquote><blockquote type="cite">OpenGrADS Bundle:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <a href="http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=305032&release_id=674371">http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=305032&release_id=674371</a><br></blockquote><blockquote type="cite"><<a href="http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=305032&release_id=674371">http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=305032&release_id=674371</a>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> As the previous OpenGrADS Bundle v2.0.a5-oga.3 this release is based<br></blockquote><blockquote type="cite">on COLA's GrADS v2.0.a5 and includes additional user defined functions<br></blockquote><blockquote type="cite">and commands based on the OpenGrADS User Defined Extensions (see<br></blockquote><blockquote type="cite">original announcement of the OpenGrADS Bundle on this list for<br></blockquote><blockquote type="cite">important caveats; a complete list of extensions appear at the bottom<br></blockquote><blockquote type="cite">of this message.) Read more about bundles here:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <a href="http://opengrads.org/wiki/index.php?title=The_OpenGrADS_Bundle">http://opengrads.org/wiki/index.php?title=The_OpenGrADS_Bundle</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The current release fixes a few bugs, adds HTML documentation and some<br></blockquote><blockquote type="cite">new features:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">* you can now specify up to 256 different colors (the previous limit<br></blockquote><blockquote type="cite">was 100 colors);<br></blockquote><blockquote type="cite"> see attached plot.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">* the extensions gxyat now includes the new command set_rgba which<br></blockquote><blockquote type="cite">allows you to<br></blockquote><blockquote type="cite"> specify a transparency level (alpha channel) for each defined color.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">* the original classic UDF regrid2(), written by Mike Fiorino in<br></blockquote><blockquote type="cite">Fortran, has been implemented<br></blockquote><blockquote type="cite"> as a User Defined Extension, mostly as a device to fully test re(), a<br></blockquote><blockquote type="cite">replacement regrid<br></blockquote><blockquote type="cite"> function written entirely in C. This release also includes minor bug<br></blockquote><blockquote type="cite">fixes in re().<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">See ChangeLog below for additional information.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The OpenGrADS extensions are replacements for the previous (classic)<br></blockquote><blockquote type="cite">User Defined Functions. These extensions are typically written in low<br></blockquote><blockquote type="cite">level programming languages such as C or Fortran. However, you can now<br></blockquote><blockquote type="cite">write GrADS expression functions using the GrADS scripting language.<br></blockquote><blockquote type="cite">As an example, we have implemented the Suomen Saakeskus (Finnish<br></blockquote><blockquote type="cite">Weathercenter) collection of thunderstorm related functions originally<br></blockquote><blockquote type="cite">developed by Stefan Gofferje as described in the following website:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <a href="http://www.saakeskus.fi/index.php">http://www.saakeskus.fi/index.php</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Documentation for these functions are found here:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <a href="http://opengrads.org/doc/udxt/saakeskus/">http://opengrads.org/doc/udxt/saakeskus/</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">For example, to plot the storm relative helicity in the first 3km of<br></blockquote><blockquote type="cite">the atmosphere using GFS data try<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">ga-> d srh3km(ugrdprs,vgrdprs)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">BTW, the NOMADS Browser now includes a "Zoom in/out" option under the<br></blockquote><blockquote type="cite">[Set Dim] menu; give it a try.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Enjoy!<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Arlindo<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--------------<br></blockquote><blockquote type="cite">ChangeLog<br></blockquote><blockquote type="cite">2009-04-05 <dasilva@opengrads.org <<a href="mailto:dasilva@opengrads.org">mailto:dasilva@opengrads.org</a>>>,<br></blockquote><blockquote type="cite">Version GrADS 2.0.a5.oga.4<br></blockquote><blockquote type="cite">* Added Steve Bloom's zooming scripts to merra/nomads GUIs<br></blockquote><blockquote type="cite">* Documentation.php: added<br></blockquote><blockquote type="cite">* doc/opengrads: added<br></blockquote><blockquote type="cite">* bundle/bundle_create.sh: docs now part of Bundle<br></blockquote><blockquote type="cite">* gagui.x: now Cmd call back expands %s into default var<br></blockquote><blockquote type="cite">* gacols.h: new defining file defining max number of colors;<br></blockquote><blockquote type="cite"> the following files now make use of this information:<br></blockquote><blockquote type="cite"> - gauser.c<br></blockquote><blockquote type="cite"> - grads.h<br></blockquote><blockquote type="cite"> - gxX.c<br></blockquote><blockquote type="cite"> - gxeps.c<br></blockquote><blockquote type="cite"> - gxgif.c<br></blockquote><blockquote type="cite"> - gxps.c<br></blockquote><blockquote type="cite"> - gxsubs.c<br></blockquote><blockquote type="cite"> * gatypes.h: #ifdef so that it only gets included once<br></blockquote><blockquote type="cite">* gxudx.c: added function to update pst<br></blockquote><blockquote type="cite">* gxyat.c: expanded help for set_rgba, minor revisions<br></blockquote><blockquote type="cite">* extension/re/re.c: in short hand mode, default (1,1) is<br></blockquote><blockquote type="cite"> no longer shifted by 1/2 delta lon, delta lat.<br></blockquote><blockquote type="cite">* acinclude.m4: when no supplibs are found, use ./null<br></blockquote><blockquote type="cite">* src/Makefile.am: again builds without the supplibs<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-------------<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> --- LIST OF INCLUDED EXTENSIONS ---<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> User<br></blockquote><blockquote type="cite"> Defined<br></blockquote><blockquote type="cite"> COMMAND Short Description Function@Library<br></blockquote><blockquote type="cite">---------- ----------------------------------- --------------------------<br></blockquote><blockquote type="cite">printenv Expand environment variables c_xenv@^env.gex<br></blockquote><blockquote type="cite">runenv Expand env vars and run command c_env@^env.gex<br></blockquote><blockquote type="cite">@ Expand env vars and run command c_env@^env.gex<br></blockquote><blockquote type="cite">getenv Get value of environment variable c_getenv@^env.gex<br></blockquote><blockquote type="cite">setenv Set value of environment variable c_setenv@^env.gex<br></blockquote><blockquote type="cite">gxyat Save images in PNG/SVG/PDF/PS c_gxyat@^gxyat.gex<br></blockquote><blockquote type="cite">set_rgba Set color red/green/blue/alpha c_rgba@^gxyat.gex<br></blockquote><blockquote type="cite">hello Hello, World! sample command c_hello@^libhello.gex<br></blockquote><blockquote type="cite">ipc_verb IPC verbose toggle c_Verb@^libipc.gex<br></blockquote><blockquote type="cite">ipc_open Open stream for save/load c_Open@^libipc.gex<br></blockquote><blockquote type="cite">ipc_close Close stream c_Close@^libipc.gex<br></blockquote><blockquote type="cite">ipc_save Save expression to stream c_Save@^libipc.gex<br></blockquote><blockquote type="cite">ipc_define Define variable (obsolete) c_Define@^libipc.gex<br></blockquote><blockquote type="cite">ipc_error Print IPC error message c_Error@^libipc.gex<br></blockquote><blockquote type="cite">cylprms Properties relative to lon/lat c_cylprms@^libmf.gex<br></blockquote><blockquote type="cite">shp_lines Draw lines from shapefile c_lines@^shape.gex<br></blockquote><blockquote type="cite">shp_polyf Draw polygons from shapefile c_polyf@^shape.gex<br></blockquote><blockquote type="cite">---------- ----------------------------------- --------------------------<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> User<br></blockquote><blockquote type="cite"> Defined<br></blockquote><blockquote type="cite"> FUNCTION Short Description Function@Library<br></blockquote><blockquote type="cite">---------- ----------------------------------- --------------------------<br></blockquote><blockquote type="cite">lt Less than operator f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">jd Julian day f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">cosz Cosine solar zenith angle f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">dayratio Daylight ratio f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">if Conditional function f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">maxv Maximum value f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">minv Minimum value f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">which Label gridpoints f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">ftest F-test f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">ttest T-test f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">tfit Point linear regression f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">fit Global linear regression f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">tcorr2 Time correlation f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">tregr2 Point linear regression f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">tmave2 Time averaging w/masking f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">madvu Calculates -d(u*EXPR)/dx f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">madvv Calculates -d(V*EXPR)/dy f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">madvw Calculates -d(W*EXPR)/dp f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">muadv Zonal advection f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">mvadv Meridional advection f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">mwadv Vertical advection f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">satvap Saturated vapor pressure f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">dew Dew point temperature f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">lw Thermal infrared fluxes f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">lw2 Thermal infrared fluxes v2 f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">pinterp Pressure interpolation f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">zinterp Height interpolation f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">line Draws a line f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">vint2 Mass-weighted vertical integral f_bjt@^libbjt.gex<br></blockquote><blockquote type="cite">fish Poisson solver f_fish@^fish.gex<br></blockquote><blockquote type="cite">fish_psi Compute streamfunction f_psichi@^fish.gex<br></blockquote><blockquote type="cite">fish_chi Compute velocity potential f_psichi@^fish.gex<br></blockquote><blockquote type="cite">fish_vor Compute vorticity f_psichi@^fish.gex<br></blockquote><blockquote type="cite">fish_div Compute divergence f_psichi@^fish.gex<br></blockquote><blockquote type="cite">dewpt Dew-point temperature f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">ept Equivalent potential temperature f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">epi Potential Instability f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">plcl Pressure at LCL f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">shear Wind Shear f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">srh1km Storm-relative Helicity 0-1km' f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">srh3km Storm-relative Helicity 0-3km' f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">tlcl Temperature at LCL f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">tsindex Chance of T-storm Initiation f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">ttindex Total Totals Index f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">wchill Wind Chill Index (New) f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">hello Hello, World! sample function f_hello@^libhello.gex<br></blockquote><blockquote type="cite">ipc_save Save expression to stream f_Save@^libipc.gex<br></blockquote><blockquote type="cite">ipc_load Load variable from file f_Load@^libipc.gex<br></blockquote><blockquote type="cite">smth2d Shuman smoother/de-smoother f_smth2d@^libmf.gex<br></blockquote><blockquote type="cite">uv2trw Find radial/tangential velocity f_uv2trw@^libmf.gex<br></blockquote><blockquote type="cite">re2 General interpolator (regrid2) f_re2@^libmf.gex<br></blockquote><blockquote type="cite">esmrf2 Saturation vapor pressure (old MRF) f_esmrf2@^libmf.gex<br></blockquote><blockquote type="cite">linreg2 Linear regression: mx + b f_linreg2@^libmf.gex<br></blockquote><blockquote type="cite">re General interpolator ffre@^re.gex<br></blockquote><blockquote type="cite">re_ General interpolator (verbose) ffre_dbg@^re.gex<br></blockquote><blockquote type="cite">regrid2 regrid2-like wrapper for re() f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">reimg Interpolation for Image Generation' f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">re General interpolator ffre@^re.gex<br></blockquote><blockquote type="cite">re_ General interpolator (verbose) ffre_dbg@^re.gex<br></blockquote><blockquote type="cite">regrid2 regrid2-like wrapper for re() f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">reimg Interpolation for Image Generation' f_gsudf@^gsudf.gex<br></blockquote><blockquote type="cite">sh_filt Spherical harmonic filter f_shfilt@^shfilt.gex<br></blockquote><blockquote type="cite">sh_power Spherical harmonic spectra f_shpowr@^shfilt.gex<br></blockquote><blockquote type="cite">---------- ----------------------------------- --------------------------<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Arlindo da Silva<br></blockquote><blockquote type="cite">dasilva@alum.mit.edu <<a href="mailto:dasilva@alum.mit.edu">mailto:dasilva@alum.mit.edu</a>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">------------------------------------------------------------------------<br></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span> </div><br></body></html>