[gradsusr] HELP TO OPEN FILES

Mohsen Soltani soltani.clima at gmail.com
Sat Jul 6 02:20:28 EDT 2013


Hi Arturo,

You need to define each file, no matter how many files you're gonna open!
Based on your script, you have 3-variables. Therefore, do as follows:

******************************************
'sdfopen D:/NETCDF/LEVEL_PRESURE.nc'
     'set dfile 1'
*
*
*
*
*
*
'display pres'
*************
'sdfopen D:/NETCDF/USURFACEWIND.nc'
     'set dfile 2'
*
*
*
*
*
'display uwnd'
******************
'sdfopen D:/NETCDF/t_mar2003.nc'
    'set dfile 3'
*
*
*
*
*
'display (air-273.4)'
**************************************

Good luck,
Mohsen

--
April showers bring May flowers!
--
*Mohsen Soltani, M.Sc.*
Climatology Grad Student,
Department of Climatology, Faculty of Geography,
University of Tehran, Tehran, Iran
voice: (+98) 9119772934
e-mail: soltani.clima at gmail.com


On Fri, Jul 5, 2013 at 1:40 PM, Abatan Abayomi <yomiabatan69 at gmail.com>wrote:

> Arturo,
>
> In which of the files is air and uwnd? If for example the variable air is
> located in file 2, then you need to type:
>
>  'display (air.2 - 273.4)',
>
> and if uwnd is located in file 3, then type:
>
>  'display uwnd.3'
>
> Hope that work for you.
>
> Abayomi
>
>
> On Fri, Jul 5, 2013 at 3:29 PM, Arturo Hernandez Rosales <
> ahernandezro at ipn.mx> wrote:
>
>> DEAR USERS
>>
>> HELLO DEAR USERS GRADS, ANYONE CAN TELL ME HOW TO OPEN MORE THAN TWO
>> FILES IN MY SCRIPTS, I HAVE THE FOLLOWING MISTAKE, THANKS FOR YOUR
>> HELP.
>>
>> MY SCRIPTS
>>
>> 'sdfopen D:/NETCDF/LEVEL_PRESURE.nc'
>> 'sdfopen D:/NETCDF/USURFACEWIND.nc'
>> 'sdfopen D:/NETCDF/t_mar2003.nc'
>>
>>
>> 'set font 5'
>> 'set display color white'
>> 'display pres'
>> *'display pr_wtr'
>> 'display (air-273.4)'
>> 'display uwnd'
>> 'run cbarn'
>> 'set grads on'
>>
>> 'printim SURFACEWIND.png'
>>
>> 'end'
>>
>> AND MY MISTAKE
>>
>> Syntax Error:  Invalid Operand
>>    'air' not a variable or function name
>>    Error ocurred at column 2
>> DISPLAY error:  Invalid expression
>>    Expression = (air-273.4)
>> Syntax Error:  Invalid Operand
>>    'uwnd' not a variable or function name
>>    Error ocurred at column 1
>> DISPLAY error:  Invalid expression
>>    Expression = uwnd
>> Syntax Error:  Invalid Operand
>>    'uwnd' not a variable or function name
>>    Error ocurred at column 1
>> DISPLAY error:  Invalid expression
>>    Expression = uwnd
>> ga->
>>
>>
>> SOMEONE PLEASE HELP ME!!, THANKS
>>
>> ATT:
>> M. en C. ARTURO HERNANDEZ ROSALES
>> ESIA TICOMAN CIENCIAS DE LA TIERRA IPN
>> DEPARTAMENTO DE GEOFISICA
>> AREA: DINAMICA Y ESTABILIDAD DE FLUJOS
>>               ATMOSFERICOS
>> TEL: 57296000, EXT. 56125
>> MEXICO. D.F
>>
>> <font color="Gray" face="Arial" size="1"> La informaci&oacute;n  de  este
>>  correo  as&iacute;  como  la  contenida  en  los documentos que se
>> adjuntan, pueden ser objeto de solicitudes de acceso a la
>> informaci&oacute;n. Vis&iacute;tanos:<a href="http://www.ipn.mx">
>> www.ipn.mx</a></font>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>
>
>
> --
>
>
>           Trust in the Lord......
>
> *******************************************************************************************
> *   Abayomi A. Abatan                             *   +1 515 572 4490(Home)       *
> *   Geo. and Atmos. Sci.                           *   +1 515 294 1321(Office)       *
> *   Iowa State University, Ames                 *   +1 515 203 9020(Cell)          *
> *   Iowa. USA.                                          *
>                                *
> *******************************************************************************************
>
>
>
> ****************************************************************************************************
> *   Abayomi A. Abatan                             *   234-802-724-7846
> (out of service)     *
> *   Fed. Univ. of Tech.,                              *   234-803-217-8815
> (out of service)    *
> *   SEMS, PMB 704 Akure                        *
>                                  *
> *   Ondo Nigeria.                                      *
>                                          *
> ****************************************************************************************************
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20130705/4d672cb4/attachment-0003.html 


More information about the gradsusr mailing list