Extract co located CTU information in HM HEVC - hevc

How we can extract information of co located CTU in HM software?
I need CTU partitioning information of co located CTU when I encode current CTU.

Does it have to be during encoding? Because it is easier while decoding.

Related

Solutions to Import an IMS Hierarchial ASCII file into SQL/ACCESS

I have a large ASCII dataset (2.7gb) which I believe is in an IMS hierarchial format. I'm unsure how to access the data to get it into a usable database, I would guess SQL but am open to other solutions. This is the "Layout" that came with the database if its at all helpful...
If you do not have a programming background You are in big trouble !!!. Excel MsAccess will not help you much.
So the answer is:
Hire Some programmers with Cobol / Cobol Conversion experience !!!
UIC-MN-H10-SEGMENT
The Cobol Copybook tells you the format of the file. The format of UIC-MN-H10-SEGMENT is
2 byte segment id (10 ???)
4 byte year
2 Byte Month
4 byte average injection pressure etc
This is a multi-record file.
Tools that you might be able to use
RecordEditor might be able to display the File (Size might be a problem). Also the RecordEditor will take a bit of getting used to
Cobol e.g. GNU Cobol will need Cobol programmers
Java / JRecord -needs java programmers
If it only a single record (unlikely), Cobol2Csv
To give a more meaning full answer, please supply the Cobol copybook in text format and some sample data
So you are missing some key information here. You would actually want the IMS Database Descriptor (DBD) file in addition to the layout you pasted. The IMS DBD file will describe the structure of the database. An IMS database can have many segments (aka tables) in it which the DBD will describe in addition to other information such as the size of those tables.
That actual records will be stored in a flat file (probably the 2.7gb ASCII file you mentioned) in a depth first format. So let's say you had two segments A and B where B is a child of A. Your flat file might look like this A1,B1,B2,B3,A2,B4,B5 where B1, B2, and B3 are children of A1 and B4 and B5 are children of A2. The reason this matter is because your layout information only provides an overlay for a specific segment structure.
So if your database had more than the one segment UIMNH10, you won't know where in the ASCII file to apply your starting point for the layout.
Now let's make a HUGE assumption here that your database only has one segment UIMNH10. In that case your ASCII file would look like: A1, A2, A3, A4. That's pretty straight forward as you would apply your layout over the data repeatedly.
Luckily your data structures are pretty straight forward as it's all character data. You would interpret PIC X(n) as a character string of length n. Similarly, for PIC 9(n) which would be a numeric character string of length n.
Assuming your sample data starts with: AA201805...
RRC-H10-SEGMENT-ID is 'AA' because it's PIC X(2)
MN-H10-CENTURY is '20' because it's PIC 9(2)
MN-H10-YEAR is '18' because it's PIC 9(2)
MN-H10-MONTH is '05' because it's PIC 9(2)
You would do this until you reach the end of your layout and then start again at the beginning for your next record. This is also making an ASSUMPTION that the layout definition MATCHES the length of your record.
Your best bet is to work with your IMS database administrator to confirm these assumptions but once you get an idea of your starting points you should be able to map the data yourself or write a quick program to do it for you. There are some other alternatives as well but that would assume some back end setup for things like SQL support to read and dump the data into a csv file format for Excel.

How can I find the spatial reference system of a .las file?

How can I read the .las header file to determine what spatial reference system (i.e projection system, datum, etc) that a LiDAR point cloud is using?
The best answer can be found in the ASPRS specifications for what should be included in an LAS header. Look for the LASF_Projection portion of the file.
The projection information for the point data is required for all
data. The projection information will be placed in the Variable Length
Records. Placing the projection information within the Variable Length
Records allows for any projection to be defined including custom
projections. The GeoTIFF specification is the model for
representing the projection information, and the format is explicitly
defined by this specification.
GeoKeyDirectoryTag Record: (mandatory)
User ID: LASF_Projection
Record ID: 34735
This record contains the key values that define the coordinate system.
The answer for Erica is correct but partially (is based on the 1.2 las version), as in the new version of the .las format (1.4) there are quite important changes on the OORDINATE REFERENCE SYSTEM (CRS) REPRESENTATION:
Take a look at this:
http://www.asprs.org/a/society/committees/standards/LAS_1_4_r13.pdf

How to convert BIC & IBAN to account and sortcode

Now that SEPA requirements are getting people used to BIC & IBAN, there are legacy system that cannot cope with this new data. Is there an algorithm or tool available for converting BIC & IBAN back to sort code and account?
Here is an example:
from this website.
Wikipedia has a list of IBAN formats by country, so it seems at least possible.
However, there is no complete algorithm for it - being a software developer, you can derive an algorithm from that input. Note that other countries might follow in the future, so you can expect more work (and hopefully not more exceptional cases of sort codes and accounts).
Regarding the tool or library, that's off-topic here on StackOverflow, but you might want to ask on Software Recommendations, though. Note that they have different requirements on how to ask questions, so you might want to read the tour first. Don't forget to mention the programming language.
Well, a quick search pointed me at this page: http://www.business.hsbc.co.uk/1/2/international-business/iban-bic.
Looks to me like you can just extract appropriate substrings. Although, a bit more searching seems to indicate that the format may vary a bit depending on the country.
Both sort code and account number are present inside a United Kingdom or Ireland IBAN.
You can simply substring like, PHP Examples:
$iban = "GB04BARC20474473160944";
$sort = substr($iban,8,6);
$account = substr($iban,14,8);
print "SortCode:" . $sort;
print "AccountNumber:" . $account;
The IBAN Calculator webservice has an API which digs up bank and branch information and so on. Also does check digit validation on the iban and sort/account.
But for simple extracting of the sort/account the substring is sufficient.

How to batch extract images from a PDF

TL/DR Version: How do I extract the image out of the Type B file below. Note that there are around 600 such files so I would prefer some sort of batch operation.
Type A Type B
Details: I'm redesigning my company's online catalog an need top extract the design images from ~2000 PDFs which either Type A (where I can export the images using Acrobat XI Tools - Document Processing - Extract All Images) or of Type B.
I don't know how these were designed or the cause for the difference (the PDF creation was contracted out to some now defunct company 2 yrs ago).
As noted above I can batch process (Acrobat XI Action Wizard) all Type A files but that still leaves me with ~600 Type B files for which I am clueless.
Any ideas?
This can be done with pdfimages (poppler utils):
http://cgit.freedesktop.org/poppler/poppler/tree/utils

Adding custom data to GapMinder

Does anyone have any experience adding their own data to GapMinder, the really cool software that Hans Rosling uses in his TED talks? I have an array od objects in JSON that would be easy to show in moving bubbles. This would be really cool.
I can see that my Ubuntu box has what looks like data in /opt/Gapminder Desktop/share/assets/graphs/world, but I would need to figure out:
How to add a measure to a graph
How to add a data series
How to set the time range of the data
Identify the measures to follow at each time step
and so on.
Just for the record: if you want to use Gapminder with your own dataset, you have to convert your data in a format suitable to Gapminder. More specifically, looking in the assets/graphs/world, you will have to:
Edit the file overview.xml, which contains the tree structure of all the indicators (just copy/paste an entry and specify your own data);
Convert your data copying the structure of the xml files in that directory (this is the tricky part): you can specify some metadata in the preamble, and then specify your own data series, with something like:
<t1 m="i20,50.0,99.0,1992" d="90.0, ... ,50.0, ..."/> where i20 is the country id, which is followed by the minima and maxima of the series, and the year it refers to.
In my humble opinion, Gapminder is a great app but it definitely needs more work on integration with other datasets. Way better to use Google Motion Chart as you did, or MooGraph (site and doc), which is unfortunately not as great as Gapminder.
#Stefano
the information you provided is very valuable. Is somewhere available a detailed specification of the XML files containing the data?
Anyway, just to enrich your response, I also found that:
overview.xml file
The link between Nations and their IDs is in this file
The structure of the menus for the selection of the indicators is also in the same file (at the bottom) under the section <indicatorCategorization>
The structure of the datafile XML
For each line the year represents the first year of the serie, and then the values follow one per year, comma separated.
Grazie,
Max
I ended up using the google motion chart API. I ended up with this.