comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Type conversion error: Unable to convert given STRING to Float.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Type conversion error: Unable to convert given STRING to Float. [message #76759] Tue, 05 July 2011 12:56 Go to previous message
Zac is currently offline  Zac
Messages: 3
Registered: July 2011
Junior Member
Here's the solution, convert the integer to a string before inserting
into the file name:

layr=strcompress(string(lay +1), /REMOVE_ALL)

Open_Device, /ps, /Color, filename=''+outdir+'/emissions_'+sim
+'_air_level'+layr+'_'+pol+'.ps'
tvmap, air_pl, lon, lat, BLACK=1, NColors=225, Bottom = 20, /coasts, $
Title='Layer '+layr+' Aircraft '+pol+' Emissions - '+simtitle,$
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Type conversion error: Unable to convert given STRING to Float.
Next Topic: North American Regional Reanalysis (NARR) projection

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:02:21 PDT 2025

Total time taken to generate the page: 0.00518 seconds