[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[McIDAS #WPI-477280]: imadisp dataset problem

Hi George,

Sorry for the slow reply, we have been in meetings for the past two days...

> Thanks a lot.

No worries.

> I got a error message when I run the script to remap the image to MERC
> projection:
> <address@hidden: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
> #imgremap.k RTIMAGES/GE-VIS.ALL RTIMAGES/GE-VIS.400 DAY=$day TIME=$time
> exit 0
> 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

I suggest creating a new, output dataset into which your image copies
(IMGCOPY), remaps (IMGREMAP), etc. will be copied:

<as the user running McIDAS>
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).

> Thanks again for your help.

No worries.  Please let me know if the above helped.


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

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.