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.
Hi George, Sorry for the slow reply, we have been in meetings for the past two days... re: > Thanks a lot. No worries. re: > I got a error message when I run the script to remap the image to MERC > projection: > > <mcidas@stribog:1124>$ M.sh > $sjuliandate=2011164 $ejuliandate=2011165 > $vis=192 G-13 IMG 14 JUN 11165 19:45:00 0 72 1 > imgremap.k: transformations complete ... begin data move > Transferring AREA data outbound, bytes= 308128 > imgremap.k: Failed to remap the image > $vis=imglist.k: done > > The script is as following: > #!/bin/bash > cd `pwd` > sjuliandate=`date -d yesterday +%Y%j` > ejuliandate=`date -d today +%Y%j` > echo \$sjuliandate=$sjuliandate \$ejuliandate=$ejuliandate > > imglist.k RTIMAGES/GE-VIS.ALL DAY=$sjuliandate $ejuliandate |tail -25 > >visible.txt > imglist.k RTIMAGES/GE-VIS.ALL DAY=$sjuliandate $ejuliandate |tail -2 > >visible.txt > > #exit > while read vis;do > echo \$vis=$vis > if [[ $vis = [0-9]* ]]; then > day=`echo $vis|cut -f6 -d" "` > time=`echo $vis|cut -f7 -d" "` > mcenv <<EOF > imgremap.k RTIMAGES/GE-VIS RTIMAGES/GE-VIS.400 DAY=$day TIME=$time LATLON=50 > 82 PRO=MERC > #imgremap.k RTIMAGES/GE-VIS.ALL RTIMAGES/GE-VIS.400 DAY=$day TIME=$time > STATION=CXGH PRO=MERC 50 > exit 0 > EOF > fi > done<visible.txt > echo ------DONE------- > > I don't know what's wrong. The first thing that jumps to mind is that you are trying to create a new element in the RTIMAGES dataset and perhaps that dataset is not local to your machine, or if it is, there are not 400 elements in the dataset as defined. I suggest creating a new, output dataset into which your image copies (IMGCOPY), remaps (IMGREMAP), etc. will be copied: <as the user running McIDAS> cd $MCDATA dsserve.k ADD MYDATA/IMAGES AREA 1 9999 \"All images in AREA format Now, specify the output of the IMGREMAP as MYDATA/IMAGES.400 (after making sure that you have no file named AREA0400 already in existence in any directory in the MCPATH defined for your user). re: > Thanks again for your help. No worries. Please let me know if the above helped. Cheers, Tom -- **************************************************************************** Unidata User Support UCAR Unidata Program (303) 497-8642 P.O. Box 3000 address@hidden Boulder, CO 80307 ---------------------------------------------------------------------------- Unidata HomePage http://www.unidata.ucar.edu **************************************************************************** Ticket Details =================== Ticket ID: WPI-477280 Department: Support McIDAS Priority: Normal Status: Closed