<html><head><style type=text/css><!--
.email-body p.mcntMsoNormal, .email-body li.mcntMsoNormal, .email-body div.mcntMsoNormal { margin: 0in; font-size: 11pt; font-family: Calibri, sans-serif; }
.email-body a:link, .email-body span.mcntMsoHyperlink { color: blue; text-decoration: underline; }
.email-body span.mcntEmailStyle18 { font-family: Calibri, sans-serif; color: windowtext; }
.email-body .mcntMsoChpDefault { font-size: 10pt; }
@page .email-body WordSection1 { size: 8.5in 11in; margin: 1in; }
.email-body div.mcntWordSection1 { page: WordSection1; }
.email-body a {color: blue}
.email-body a:visible {color: purple}
--></style></head><body><div>Ciao Jennifer</div><div>sorry for the answer delay ...</div><div>I realized most of my user-defined commands could have been replaced by your sys() function ...</div><div><br></div><div>Anyway Paolo, a collegue of mine, slightly modified the source code because:</div><div>1) we found some problems during compilation and run time</div><div>2) we wanted to maintain udxt file for extensions</div><div><br></div><div>#-------------------------------------------</div><div>source code changes for point 1)</div><div>* grib2.m4: now compilation does not depend on specific version of libpng (15)</div><div>* gadap.m4: added -ldapclient -ldapserver -ldap to GADAP_LIBS</div><div>* libsx.m4: added configuration needed if user wants to compile libsx from source; SUPPLIBS dependencies removed</div><div>* udunits.m4: as grads now is using udunits2 it was mandatory to update search paths</div><div>* configure.ac: UDUNITS replaced by UDUNITS2 in hdf_inc, hdf_lib, nc_inc, nc_libs; libsx dynamically linked to gui, removed cairo includes because of dynamically linked</div><div>* grads.c: removed keyword static from struct gacmn gcmn (otherwise we could not compile: could you?)</div><div>* gagui.c: removed lines (NEVER directive):</div><div>int gagui_main(int argc, char **argv)</div><div>{</div><div><br></div><div>[...]</div><div><br></div><div>#ifdef NEVER                                                                                                                            </div><div>  if ( gcmn.batflg ) return 0;  /* batch mode */</div><div><br></div><div>  argc = OpenDisplay(argc, argv);</div><div>  if (argc == FALSE)</div><div>    return argc;</div><div><br></div><div>#endif</div><div><br></div><div>[...]</div><div><br></div><div>}</div><div>otherwise the gui crashed using -d option (both cairo and x11)</div><div>* src/Makefile.am: SUPPLIBS dependencies were removed</div><div>* setup.py: added numpy import and included to ext_modules (otherwise it didn't compile)</div><div><br></div><div>#-------------------------------------------</div><div>source code changes for point 2)</div><div>* grads.c: removed:</div><div>#ifdef OPENGRADS</div><div>/* For opengrads, which needs a capital M for its 'main' routine */</div><div>int Main (int argc, char *argv[])  {</div><div>#else</div><div>#endif</div><div>  since it is not needed any more by the actual version of gaudx.c, otherwise the gui would not open at startup</div><div>* src/Makefile.am: added options to compile gaudx.c and added compilation directive -DOPENGRADS</div><div><br></div><div><br></div><div>#-------------------------------------------</div><div>If you think this work could be of interest we would discuss or share our changes</div><div><br></div><div>Have a nice summer</div><div>Davide and Paolo</div><div><br></div><br><div style="margin: 0px; padding: 0px; box-sizing: content-box; color: rgb(34, 34, 34);"><i style="box-sizing: content-box;"><font size="2" style="box-sizing: content-box;"><span id="mcntmcntext-gen4583" style="box-sizing: content-box; font-family: Calibri, sans-serif;">Dott. Davide Sacchetti</span></font></i></div><div style="margin: 0px; padding: 0px; box-sizing: content-box; color: rgb(34, 34, 34);"><i style="box-sizing: content-box;"><font size="2" style="box-sizing: content-box;"><span id="mcntmcntext-gen4583" style="box-sizing: content-box; font-family: Calibri, sans-serif;"></span></font></i></div><i style="box-sizing: content-box; color: rgb(34, 34, 34);"><font size="2" style="box-sizing: content-box;"><span id="mcntmcntext-gen4583" style="box-sizing: content-box; font-family: Calibri, sans-serif;">Dipartimento Stato dell’Ambiente e Tutela dai Rischi Naturali<br style="box-sizing: content-box;">U.O. Clima Meteo Idro<br style="box-sizing: content-box;">Viale Brigate Partigiane 2, 16129 Genova (I)<br style="box-sizing: content-box;">tel: +39 0106437535<br style="box-sizing: content-box;">mail: <a href="mailto:mauro.damonte@arpal.liguria.it" class="mailto" title="Send email to mauro.damonte@arpal.liguria.it" target="_blank" style="box-sizing: content-box;">davide.sacchetti@arpal.liguria.it</a>  web: <a href="http://www.meteoliguria.it/" title="http://www.meteoliguria.it" target="_blank" style="box-sizing: content-box;">https://www.arpal.liguria.it/homepage/meteo.html</a></span></font></i><br><br><br><div><strong>
Da:
</strong>
 
"Adams, Jennifer M. (GSFC-610.2)[ADNET SYSTEMS INC]" <jennifer.m.adams@nasa.gov>
<br>
<strong>
A:
</strong>
 
GrADS Users Forum <gradsusr@gradsusr.org>
<br>
<strong>
Inviato:
 
</strong>
25/06/2022 14:22
<br>
<strong>
Oggetto:
</strong>
 
Re: [gradsusr] [EXTERNAL]  udpt commands?
<br><br><blockquote class="mcnt mori" style="margin:0 0 0 .8ex;border-left:1px solid #CCC;padding-left:1ex;"><div class="email-body"><div style="word-wrap:break-word">
<div class="mcntWordSection1">
<p class="mcntMsoNormal">Ciao, Davide – </p>
<p class="mcntMsoNormal">Brian Doty did not want to implement user-defined commands; he felt there was too much risk for unintended consequences. What is the functionality of the command you would like to add?
<br>
--Jennifer</p>
<p class="mcntMsoNormal"> </p>
<div>
<p class="mcntMsoNormal"><span style="font-size:9.0pt">-- <span style="color:black"><br>
Jennifer Miletta Adams<br>
Senior Scientific Software Developer<br>
Goddard Earth Sciences Data and Information Services Center (GES DISC)</span></span></p>
<p class="mcntMsoNormal"><span style="font-size:9.0pt;color:black">NASA/GSFC, Code 610.2</span><span style="font-size:9.0pt">
</span></p>
<p class="mcntMsoNormal"><span style="font-size:9.0pt;color:#AFABAB">Building 32, Room S159</span></p>
</div>
<p class="mcntMsoNormal"> </p>
<p class="mcntMsoNormal"> </p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="mcntMsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Davide Sacchetti <davide.sacchetti@arpal.liguria.it><br>
<b>Reply-To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Date: </b>Saturday, June 25, 2022 at 8:07 AM<br>
<b>To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject: </b>[EXTERNAL] [gradsusr] udpt commands?</span></p>
</div>
<div>
<p class="mcntMsoNormal"> </p>
</div>
<p class="mcntMsoNormal">Dears</p>
<div>
<p class="mcntMsoNormal">I've seen the User-Defined Plug-in feauture useful to write user functions in C</p>
</div>
<div>
<p class="mcntMsoNormal">in opengrads there is a similar mechanism called Grads Extensions</p>
</div>
<div>
<p class="mcntMsoNormal">I verified that opengrads Grads Extensions functions work in grads 2</p>
</div>
<div>
<p class="mcntMsoNormal">but in opengrads you can define "functions" (returning a grid) and "commands": I am asking if grads UDPT contains this chance or not</p>
</div>
<div>
<p class="mcntMsoNormal">It is possible to define new commands via UDPT?</p>
</div>
<div>
<p class="mcntMsoNormal">Thanks</p>
</div>
<div>
<p class="mcntMsoNormal">Bye bye</p>
</div>
<div>
<p class="mcntMsoNormal" style="margin-bottom:12.0pt">Davide</p>
<div>
<p class="mcntMsoNormal"><i><span style="font-size:10.0pt;color:#222222">Dott. Davide Sacchetti</span></i><span style="color:#222222"></span></p>
</div>
<p class="mcntMsoNormal"><i><span style="font-size:10.0pt;color:#222222">Dipartimento Stato dell’Ambiente e Tutela dai Rischi Naturali<br>
U.O. Clima Meteo Idro<br>
Viale Brigate Partigiane 2, 16129 Genova (I)<br>
tel: +39 0106437535<br>
mail: <a href="mailto:mauro.damonte@arpal.liguria.it" target="_blank" title="Invia e-mail a mauro.damonte@arpal.liguria.it" class="mailto">davide.sacchetti@arpal.liguria.it</a>  web: <a href="https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.meteoliguria.it%2F&data=05%7C01%7Cjennifer.m.adams%40nasa.gov%7C4388ffde71f1445c48c208da56a30f2f%7C7005d45845be48ae8140d43da96dd17b%7C0%7C0%7C637917556472341320%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000%7C%7C%7C&sdata=MfR2eCOx7cK1plFH5x%2BBTIQP1KF4pkKAmJj4G9ZKlgI%3D&reserved=0" target="_blank" title="http://www.meteoliguria.it">https://www.arpal.liguria.it/homepage/meteo.html</a></span></i></p>
</div>
</div>


</div></div><br><br>_______________________________________________
<br>gradsusr mailing list
<br>gradsusr@gradsusr.org
<br> https://urlsand.esvalabs.com/?u=http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr&e=7f48b148&h=e3a2c917&f=y&p=n 
<br></blockquote></div></body></html>