Changeset 499 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 15, 2015, 4:47:40 PM (10 years ago)
Author:
lfita
Message:

Changing object file inside the function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/read_ISD.py

    r458 r499  
    440440    fname = 'adding_station_desc'
    441441
    442     newvar = objfile.createVariable( 'station', 'c', ('StrLength'))
     442    newvar = onc.createVariable( 'station', 'c', ('StrLength'))
    443443    newvar[0:len(stdesc[0])] = stdesc[0]
    444444
     
    453453        lonname = 'lon'
    454454
    455     newvar = objfile.createVariable( lonname, 'f4', ('nst'))
     455    newvar = onc.createVariable( lonname, 'f4', ('nst'))
    456456    basicvardef(newvar, lonname, 'longitude', 'degrees_West' )
    457457    newvar[:] = stdesc[1]
     
    465465        latname = 'lat'
    466466
    467     newvar = objfile.createVariable( latname, 'f4', ('nst'))
     467    newvar = onc.createVariable( latname, 'f4', ('nst'))
    468468    basicvardef(newvar, lonname, 'latitude', 'degrees_North' )
    469469    newvar[:] = stdesc[2]
     
    477477        heightname = 'height'
    478478
    479     newvar = objfile.createVariable( heightname, 'f4', ('nst'))
     479    newvar = onc.createVariable( heightname, 'f4', ('nst'))
    480480    basicvardef(newvar, heightname, 'height above sea level', 'm' )
    481481    newvar[:] = stdesc[3]
Note: See TracChangeset for help on using the changeset viewer.