<div dir="ltr">Dear NCL-experts,<div><br></div><div>I trying to run my script (attached in this email). There are two issues that I would like to address and ask for help.</div><div> </div><div><b>[1] The script runs but the output time dimension is incorrect when only one-time step satisfies the conditions. For cases with multiple time steps satisfying the conditions, the output is ok. Notice the time is 0 from the ncdump below. Any ideas how to solve this issue?</b></div><div><br></div><div>Here's the ncdump of the output netcdf file when only one time-step satisfies the coditions:</div><div>dimensions:</div><div><br>        time = UNLIMITED ; // (0 currently)<br>   latitude = 280 ;<br>      longitude = 360 ;<br>variables:<br> float rain(latitude, longitude) ;<br>             rain:time = 116. ;<br>            rain:level_description = "Earth surface" ;<br>          rain:missing_value = -99.9f ;<br>         rain:_FillValue = -99.9f ;<br>            rain:units = "mm/day" ;<br>             rain:long_name = "daily precipitation analysis interpolated onto 0.25deg grids [mm/day]" ;<br>  double latitude(latitude) ;<br>           latitude:axis = "Y" ;<br>               latitude:units = "degrees_north" ;<br>          latitude:long_name = "Latitude" ;<br>           latitude:standard_name = "latitude" ;<br>       double longitude(longitude) ;<br>         longitude:axis = "X" ;<br>              longitude:units = "degrees_east" ;<br>          longitude:long_name = "Longitude" ;<br>         longitude:standard_name = "longitude" ;<br><br>// global attributes:<br>            :creation_date = "Thu Aug 29 18:28:59 JST 2019" ;<br>           :Conventions = "None" ;<br>             :source_file = "Daily Aphrodite Rainfall" ;<br>         :title = "rain_stretch equal rain_threshold=0" ;<br>}<br></div><div><b><br></b></div><div><b>[2] One part of the script save the dates into a text file. Is there a way to save the output file as YYYY-MM-DD separated by a dash (-) instead of YYYYMMDD?</b></div><div><br></div><div>I'll appreciate any help about these.</div><div><br></div><div>Sincerely,</div><div><br></div><div>Lyndz</div><div><b><br></b></div></div>