数据读出的问题

数据读出的问题

以下是我写的一段程序,利用module已经把数据放在了一个数组里,现在我想输入给定的i ,j输入相应的变量,该怎么办啊?



#!/usr/bin/perl -I/nas/rhome/burks/modules
use NetCDF;
$filename="/home/students/burks/hw8/data/20040717_2230";
$ncid=NetCDF:pen($filename,READ);
$varid=NetCDF::varid($ncid,'rfd');
@start=(0,0,j,i);
@count=(1,1,1,1);
NetCDF::varget($ncid,$varid,\@start,\@count,\@rfd);
这是原题。。。。。。。



You need to write a program that takes three arguments: netcdf file to process, i coordinate, and j coordinate. Then your program will open the netcdf file and read out the value at that point in the particular file and print it to the screen. The structure of the file has the sum through the column of the atmosphere for each grid box on the first z level of the variable rfd