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

Home » Public Forums » archive » Error opening netCDF file
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: Error opening netCDF file [message #86952 is a reply to message #86950] Mon, 16 December 2013 18:46 Go to previous messageGo to previous message
dan.westervelt is currently offline  dan.westervelt
Messages: 4
Registered: December 2013
Junior Member
Thanks for your response!

Someone has posted the code here: http://coco.atmos.washington.edu/ion_script/tools/ncdf_read. pro

They do indeed call NCDF_CLOSE, it looks like.

I'm running in interactive mode (with the IDL prompt). Would the STOP really do anything in that case? I am able to print variables from the IDL prompt right after the code crashes. The only odd thing I found was the value of result_meteo = -1 and thus result_meteo.netrad_toa is non-existent.

Thanks for the tip on the asterisks - didn't know that!

On Monday, December 16, 2013 7:47:47 PM UTC-5, Phillip Bitzer wrote:
> Weird. I don't have ncdf_read (and am denied access when I try to clone the git repo), but do they close the file (NCDF_CLOSE) when finished reading it in? I seem to recall coming across something similar where this was the problem.
>
>
>
> Perhaps setting some sort of debug "STOP" might help:
>
> IF N_TAGS(result_meteo) EQ 0 THEN STOP ELSE net_rad_85=result_meteo.netrad_toa
>
>
>
> (Notice I've gotten rid of the (*, *) on the LHS - see http://www.idlcoyote.com/code_tips/asterisk.html)
>
>
>
> When it stops, you might be able to look around and find if something has gone screwy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PNG output quality degraded after RHEL6 patch
Next Topic: Issue with long integer arrays

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

Current Time: Wed Oct 08 15:12:34 PDT 2025

Total time taken to generate the page: 0.00349 seconds