[Thread Prev][Thread Next][Index]

Re: [las_users] Plot title for insitu-data from mysql database



 Dear LAS users,

I found an more or less easy way to create a time range, data set and constraint labels on the insitu-plots in LAS 7.1. I just added some lines of code to

las.v7.1/JavaSource/resources/ferret/scripts/xy_insitu_poly.jnl

after the ferret_plot_title line:
LABEL/NOUSER `($ppl$xlen)/2`, `-1*($ppl$yorg)/2`, 0, 0, 0.14, ($ferret_plot_title)

! show constraint
IF ($constraint_0_lhs"0|*>1") THEN
LABEL/NOUSER 0, `($ppl$ylen)+0.9`, -1, 0, 0.12, ($constraint_0_lhs): ($constraint_0_rhs)
ENDIF
! show time range
LABEL/NOUSER 0, `($ppl$ylen)+0.6`, -1, 0, 0.12, Date: ($region_0_t_lo) - ($region_0_t_hi)
! show data set name
LABEL/NOUSER `($ppl$xlen)`, `($ppl$ylen)+0.3`, +1, 0, 0.1, DATA SET: ($data_0_dataset_name)

I hope this will also help someone else!

Regards,
Remon

On 08/23/2010 05:45 PM, Roland Schweitzer wrote:
Hi Remon,

In theory it's just a matter of modifying the scripts that create the plots for these products to add or move the labels around. In practice it can get complicated to handle all varying sizes and corner cases.

Our LAS script expert is out this week, but we'll make sure she has some advice for you upon her return.

Roland

PS. We are planning an overhaul of the in-situ products before the next release.



Remon Sadikni wrote:
 Dear LAS users,

I just managed to import some insitu data from a MySQL database and it is working great. Now I would like to know if I can add a title to the plot? I want to show some information about the temporal section, the depth and the dataset name, like on the other "not-mysql-plots".

Thank you very much,
Remon



--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Remon Sadikni

 University of Hamburg / KlimaCampus Hamburg
 Center for Integrated Climate System Analysis and Prediction - CliSAP
 Grindelberg 5 / D-20144 Hamburg / Germany

 phone: +49-40-42838-7581
 email: remon.sadikni@xxxxxxx
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



[Thread Prev][Thread Next][Index]


Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement