<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">oh, I am not familiar to pkg/flt, sorry</div><div class="">others please pitch in with a better answer</div><div class=""><br class=""></div><div class="">if I had to do this, I would use the routines:</div><div class=""><div class=""><a href="https://github.com/MITgcm/MITgcm/blob/master/utils/matlab/cs_grid/read_cs/readbin.m" class="">https://github.com/MITgcm/MITgcm/blob/master/utils/matlab/cs_grid/read_cs/readbin.m</a></div><div class=""><a href="https://github.com/MITgcm/MITgcm/blob/master/utils/matlab/cs_grid/read_cs/writebin.m" class="">https://github.com/MITgcm/MITgcm/blob/master/utils/matlab/cs_grid/read_cs/writebin.m</a></div><div class="">and try to read/write as follows:</div><div class=""><br class=""></div><div class="">field9=readbin('pickup_flt.ckptA.001.001.data’,[96 9],1,’real*8’,8);</div><div class=""><div>% modify field9 as needed</div><div>writebin('pickup_flt.ckptA.001.001.data’,field9,1,’real*8’,8);</div><div><br class=""></div><div>why are you using tiled pickup files?</div><div>are you working on an old cluster with separate disks?</div><div>or is this a pkg/flt requirement?</div><div>if you use globalfiles or singlecpuio options,</div><div>you would get a single pickup file per time easier to work with</div><div><br class=""></div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On May 11, 2020, at 5:18 PM, Paola Cessi <<a href="mailto:pcessi@ucsd.edu" class="">pcessi@ucsd.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div class="">
<div class="" style="word-wrap:break-word">Hi Dimitri,
<div class=""><br class="">
</div>
<div class="">I am using matlab. These are pickups files from the flt package, so I am not sure they are the same as the regular MITgcm pickups. They are written and read with the mdsio package.</div>
<div class=""><br class="">
</div>
<div class="" style="orphans:2; widows:2">I _think_ that what I need to change is the 9th entry of the “arr" array, i.e. arr(9) written/read by the routines
<span class="x_final-path" style="background-color:rgb(255,255,255); color:rgb(36,41,46)">
mdsio_wr_rec_rl.F</span><span class="" style="color:rgb(88,96,105); background-color:rgb(255,255,255)">/</span><span class="" style="background-color:rgb(255,255,255); color:rgb(36,41,46)">mdsio_rd_rec_rl.F. That said, I don’t understand how to locate this
 variable given the .meta file (attached)</span><span class="" style="font-size:16px; background-color:rgb(255,255,255); color:rgb(36,41,46)">.</span></div>
<div class="" style="orphans:2; widows:2"><span class="" style="font-size:16px; background-color:rgb(255,255,255); color:rgb(36,41,46)"><br class="">
</span></div>
<div class="" style="orphans:2; widows:2"><font color="#24292e" class=""><span class="" style="background-color:rgb(255,255,255)">Many thanks,</span></font></div>
<div class="" style="orphans:2; widows:2"><span class="" style="orphans:2; widows:2; background-color:rgb(255,255,255)"><font color="#24292e" class=""><br class="">
</font></span></div>
<div class="" style="orphans:2; widows:2"></div>
</div>
<div class="" style="word-wrap:break-word">
<div class="" style="orphans:2; widows:2"></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div class="" style="word-wrap:break-word">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
Paola<br class="">
<br class="">
<span class="" style="font-size:12px">----------------------------------------------<br class="">
Paola Cessi   <br class="">
Scripps Institution of Oceanography  <br class="">
9500 Gilman Drive #0213               <br class="">
La Jolla, CA 92093-0213<br class="">
USA               <br class="">
Tel: +1 858 534 0622   Fax: +1 858 534 8045<br class="">
e-mail: <a href="mailto:pcessi@ucsd.edu" class="">pcessi@ucsd.edu</a>     Web:  <a href="http://www-pord.ucsd.edu/~pcessi" class="">http://www-pord.ucsd.edu/~pcessi</a><br class="">
<br class="">
Delivery address (Fed-Ex, DHL, UPS, etc.):<br class="">
Paola Cessi<br class="">
University of California San Diego<br class="">
Keck Center - Room 366<br class="">
8851 Shellback Way<br class="">
La Jolla, CA 92093-0213<br class="">
USA</span></div>
<div class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<span class="" style="font-size:12px"><br class="">
</span></div>
<br class="x_Apple-interchange-newline">
</div>
<br class="x_Apple-interchange-newline">
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On May 11, 2020, at 4:41 PM, Dimitris Menemenlis <<a href="mailto:dmenemenlis@gmail.com" class="">dmenemenlis@gmail.com</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hi Paola, do you use matlab or python?
<div class=""><br class="">
</div>
<div class="">If matlab and if noone answers with a generic answer, please send your pickup*.meta file and let me know which variable you want to replace and I will send you two lines of matlab code (and two small scripts) that will read and write the desired
 variable from and to the pickup file.</div>
<div class=""><br class="">
</div>
<div class="">Cheers, Dimitris<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On May 11, 2020, at 3:39 PM, Paola Cessi <<a href="mailto:pcessi@ucsd.edu" class="">pcessi@ucsd.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word">I need to change one entry in the pick-up files. Is there a simple sample program to read a pickup file change, one entry and write it again with the entry changed?
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
<div class="">
<div class="" style="word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
Paola<br class="">
<br class="">
<span class="" style="font-size:12px">----------------------------------------------<br class="">
Paola Cessi   <br class="">
Scripps Institution of Oceanography  <br class="">
9500 Gilman Drive #0213               <br class="">
La Jolla, CA 92093-0213<br class="">
USA               <br class="">
Tel: +1 858 534 0622   Fax: +1 858 534 8045<br class="">
e-mail: <a href="mailto:pcessi@ucsd.edu" class="">pcessi@ucsd.edu</a>     Web:  <a href="http://www-pord.ucsd.edu/~pcessi" class="">http://www-pord.ucsd.edu/~pcessi</a><br class="">
<br class="">
Delivery address (Fed-Ex, DHL, UPS, etc.):<br class="">
Paola Cessi<br class="">
University of California San Diego<br class="">
Keck Center - Room 366<br class="">
8851 Shellback Way<br class="">
La Jolla, CA 92093-0213<br class="">
USA</span></div>
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-size:12px"><br class="">
</span></div>
<br class="x_Apple-interchange-newline">
</div>
<br class="x_Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
MITgcm-support mailing list<br class="">
<a href="mailto:MITgcm-support@mitgcm.org" class="">MITgcm-support@mitgcm.org</a><br class="">
<a href="https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!QoirxRdRyr4vnrPbSnaKY7tFkekGeHWD65KRYp5_8wt09DuCmWRzUfDbDwwgxw$" class="">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
MITgcm-support mailing list<br class="">
<a href="mailto:MITgcm-support@mitgcm.org" class="">MITgcm-support@mitgcm.org</a><br class="">
<a href="https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!QoirxRdRyr4vnrPbSnaKY7tFkekGeHWD65KRYp5_8wt09DuCmWRzUfDbDwwgxw$" class="">https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!QoirxRdRyr4vnrPbSnaKY7tFkekGeHWD65KRYp5_8wt09DuCmWRzUfDbDwwgxw$</a>
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>

<span id="cid:A67B3B945F96DE459CC6DF640BA7E845@ad.jpl"><pickup_flt.ckptA.001.001.meta></span></div></blockquote></div><br class=""></div></div></body></html>