This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Gustavo, The restore command is a GEMPAK command used to load contents from a GEMPAK .nts file into the running program ("save" is a GEMPAK command used to store the contents of the current parameter settings into a .nts file). These are not commands to run at your Unix/Linux shell prompt, but rather inside your GDPLOT2 commands. Typing "phelp" in any GEMPAK program will show you the basic GEMPAK commands. When you start a GEMPAK program, it automatically loads the gemglb.nts values for you. Using the "restore filename" command will load the NTS file you specify in the GEMPAK program, eg in a script: #!/bin/csh source /home/gempak/Gemenviron setenv DISPLAY "some display" GDPLOT2<<EOF restore NMAP_RESTORE/modl/ecmwfg/pmsl_ethkn GAREA = -90;-180;90;180 PROJ = CED GDFILE = ecmwfg r e EOF More information on redirecting shell input is found in the tutodial under "batch scripts" or in some of the examples found under the GEMPAK web pages. Steve Chiswell Unidata User Support > Steve Chiswell, > > When running restore’s command it seems there is a problem. > > For instance: > > [gempak@unidata gustavo]$ restore <ent> > restore: Command not found. > > Or by using a script like: > > [gempak@unidata gustavo]$ more restaura.exe > #!/bin/csh > # curiously, when run from crontab, the following statement is required. > #see: > http://www.unidata.ucar.edu/support/help/MailArchives/gempak/msg00343.html > setenv DISPLAY :1.0 > # > set date = `date -u +%Y%m%d` > set hour = `date -u +%H` > > set dia = `date +%Y%m%d` > set hora = `date +%H` > > > restore $NMAP_RESTORE/modl/ecmwfg/pmsl_ethkn > GDFILE = $HDS/ecmwf/2006122712_ecmf1.gem > r > gpend > # /home/gempak/GEMPAK5.9.1/gustavo/ftp-exe00.bat > exit (0) > > [gempak@unidata gustavo]$ ./restaura.exe <ent> > restore: Command not found. > > > Any idea? Is this a problem on our ws? > > Surfing Gempak tutorial or its manual I don’t manage to find information > about this, yet if you recommend a web page, I’ll welcome it. > > On the other hand, any suggestion about where to find which variables > and areas there are on each model’s files, like : > > > 2006122600_gfs201.gem > 2006122600_gfs202.gem > 2006122600_gfs203.gem > 2006122600_gfs211.gem > 2006122600_gfs213.gem > 2006122600_thin.gem > > > > THANK YOU VERY VERY MUCH !! > > > > > > > > > > NMAP2 implements the drawing of the model products through GDPLOT2 restore > > files. > > The $GEMTBL/nmap/mod_res.tbl file provides the restore file used for the > > product you > > are displaying. > > > > In your case below, the > > PMSL_EST_1000-500_THICK > > > > menu entry is using the restore file: > > $NMAP_RESTORE/modl/ecmwfg/pmsl_ethkn > > > > You can load this in your script which runs GDPLOT2 by the GEMPAK command: > > restore $NMAP_RESTORE/modl/ecmwfg/pmsl_ethkn > > > > You can then add the GDFILE, GDATTIM, GAREA and PROJ parameters from your > > script since these > > are generally something particular to your script or the GUI. > > > > Steve Chiswell > > Unidata User Support > > > >> Dear Gempak’s staff, > >> > >> I’m trying to run a script. By using the NMAP2 I can create a model > >> product. The commands are saved as a spf’s file. > >> > >> Let�s say this: > >> > >> <loop1_source1> > >> CAT_GRD|GRID/ecmwfg/[cycle_time]/A1.standard/PMS > >> L_EST_1000-500_THICK > >> <loop1_source1_interval> -1 > >> <loop1_source1_range> -1 > >> <loop1_dominant> 1 > >> <loop1_frames> 9 > >> <loop1_skip> 0 > >> <loop1_delta_rt> -1 > >> <loop1_roam> 0 > >> <loop1_auto_update> 1 > >> <loop1_map> South_America > >> <loop1_proj> MER > >> <loop1_garea> -60.00;-120.00;20.00;-20.00| > >> <loop1_map_ovl> Map:1 1 1| > >> Lat/Lon:10 2 1 10 1| > >> <loop1_single_time> 0 > >> > >> Is there a way to run that as a script to be run under a #!/bin/csh > >> environment? Or in other words, which gempak program I should use to do > >> this instead of using NMAPS2? > >> > >> Thank you and good 2007 for you! > >> > >> Gustavo > >> > >> > > > > > > Ticket Details > > =================== > > Ticket ID: HCR-177261 > > Department: Support GEMPAK > > Priority: Normal > > Status: Closed > > > > > > -- > > Este mensaje ha sido analizado por el servidor AntiSpam de FCEyN. > > y esta libre de virus y otros contenidos peligrosos. > > Por consultas comuniquese con address@hidden > > > > > > Ticket Details =================== Ticket ID: HCR-177261 Department: Support GEMPAK Priority: Normal Status: Closed